e400.c 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 <mach/udc.h>
  22. #include "generic.h"
  23. #include "eseries.h"
  24. /* ------------------------ E400 LCD definitions ------------------------ */
  25. static struct pxafb_mode_info e400_pxafb_mode_info = {
  26. .pixclock = 140703,
  27. .xres = 240,
  28. .yres = 320,
  29. .bpp = 16,
  30. .hsync_len = 4,
  31. .left_margin = 28,
  32. .right_margin = 8,
  33. .vsync_len = 3,
  34. .upper_margin = 5,
  35. .lower_margin = 6,
  36. .sync = 0,
  37. };
  38. static struct pxafb_mach_info e400_pxafb_mach_info = {
  39. .modes = &e400_pxafb_mode_info,
  40. .num_modes = 1,
  41. .lccr0 = LCCR0_Color | LCCR0_Sngl | LCCR0_Act,
  42. .lccr3 = 0,
  43. .pxafb_backlight_power = NULL,
  44. };
  45. /* ------------------------ E400 MFP config ----------------------------- */
  46. static unsigned long e400_pin_config[] __initdata = {
  47. /* Chip selects */
  48. GPIO15_nCS_1, /* CS1 - Flash */
  49. GPIO80_nCS_4, /* CS4 - TMIO */
  50. /* Clocks */
  51. GPIO12_32KHz,
  52. /* BTUART */
  53. GPIO42_BTUART_RXD,
  54. GPIO43_BTUART_TXD,
  55. GPIO44_BTUART_CTS,
  56. GPIO45_GPIO, /* Used by TMIO for #SUSPEND */
  57. /* wakeup */
  58. GPIO0_GPIO | WAKEUP_ON_EDGE_RISE,
  59. };
  60. /* ---------------------------------------------------------------------- */
  61. static void __init e400_init(void)
  62. {
  63. pxa2xx_mfp_config(ARRAY_AND_SIZE(e400_pin_config));
  64. set_pxa_fb_info(&e400_pxafb_mach_info);
  65. pxa_set_udc_info(&e7xx_udc_mach_info);
  66. }
  67. MACHINE_START(E400, "Toshiba e400")
  68. /* Maintainer: Ian Molton (spyro@f2s.com) */
  69. .phys_io = 0x40000000,
  70. .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
  71. .boot_params = 0xa0000100,
  72. .map_io = pxa_map_io,
  73. .init_irq = pxa25x_init_irq,
  74. .fixup = eseries_fixup,
  75. .init_machine = e400_init,
  76. .timer = &pxa_timer,
  77. MACHINE_END