e400.c 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. * Hardware definitions for the Toshiba eseries PDAs
  3. *
  4. * Copyright (c) 2003 Ian Molton <spyro@f2s.com>
  5. *
  6. * This file is licensed under
  7. * the terms of the GNU General Public License version 2. This program
  8. * is licensed "as is" without any warranty of any kind, whether express
  9. * or implied.
  10. *
  11. */
  12. #include <linux/kernel.h>
  13. #include <linux/init.h>
  14. #include <asm/setup.h>
  15. #include <asm/mach/arch.h>
  16. #include <asm/mach-types.h>
  17. #include <mach/pxa-regs.h>
  18. #include <mach/mfp-pxa25x.h>
  19. #include <mach/hardware.h>
  20. #include <mach/pxafb.h>
  21. #include "generic.h"
  22. #include "eseries.h"
  23. /* ------------------------ E400 LCD definitions ------------------------ */
  24. static struct pxafb_mode_info e400_pxafb_mode_info = {
  25. .pixclock = 140703,
  26. .xres = 240,
  27. .yres = 320,
  28. .bpp = 16,
  29. .hsync_len = 4,
  30. .left_margin = 28,
  31. .right_margin = 8,
  32. .vsync_len = 3,
  33. .upper_margin = 5,
  34. .lower_margin = 6,
  35. .sync = 0,
  36. };
  37. static struct pxafb_mach_info e400_pxafb_mach_info = {
  38. .modes = &e400_pxafb_mode_info,
  39. .num_modes = 1,
  40. .lccr0 = LCCR0_Color | LCCR0_Sngl | LCCR0_Act,
  41. .lccr3 = 0,
  42. .pxafb_backlight_power = NULL,
  43. };
  44. /* ------------------------ E400 MFP config ----------------------------- */
  45. static unsigned long e400_pin_config[] __initdata = {
  46. /* Chip selects */
  47. GPIO15_nCS_1, /* CS1 - Flash */
  48. GPIO80_nCS_4, /* CS4 - TMIO */
  49. /* Clocks */
  50. GPIO12_32KHz,
  51. /* BTUART */
  52. GPIO42_BTUART_RXD,
  53. GPIO43_BTUART_TXD,
  54. GPIO44_BTUART_CTS,
  55. GPIO45_GPIO, /* Used by TMIO for #SUSPEND */
  56. /* wakeup */
  57. GPIO0_GPIO | WAKEUP_ON_EDGE_RISE,
  58. };
  59. /* ---------------------------------------------------------------------- */
  60. static void __init e400_init(void)
  61. {
  62. pxa2xx_mfp_config(ARRAY_AND_SIZE(e400_pin_config));
  63. set_pxa_fb_info(&e400_pxafb_mach_info);
  64. }
  65. MACHINE_START(E400, "Toshiba e400")
  66. /* Maintainer: Ian Molton (spyro@f2s.com) */
  67. .phys_io = 0x40000000,
  68. .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
  69. .boot_params = 0xa0000100,
  70. .map_io = pxa_map_io,
  71. .init_irq = pxa25x_init_irq,
  72. .fixup = eseries_fixup,
  73. .init_machine = e400_init,
  74. .timer = &pxa_timer,
  75. MACHINE_END