e350.c 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * Hardware definitions for the Toshiba e350 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 <linux/clk.h>
  15. #include <linux/platform_device.h>
  16. #include <linux/mfd/t7l66xb.h>
  17. #include <asm/setup.h>
  18. #include <asm/mach/arch.h>
  19. #include <asm/mach-types.h>
  20. #include <mach/irqs.h>
  21. #include <mach/pxa25x.h>
  22. #include <mach/eseries-gpio.h>
  23. #include <mach/udc.h>
  24. #include "generic.h"
  25. #include "eseries.h"
  26. #include "clock.h"
  27. /* -------------------- e350 t7l66xb parameters -------------------- */
  28. static struct t7l66xb_platform_data e350_t7l66xb_info = {
  29. .irq_base = IRQ_BOARD_START,
  30. .enable = &eseries_tmio_enable,
  31. .suspend = &eseries_tmio_suspend,
  32. .resume = &eseries_tmio_resume,
  33. };
  34. static struct platform_device e350_t7l66xb_device = {
  35. .name = "t7l66xb",
  36. .id = -1,
  37. .dev = {
  38. .platform_data = &e350_t7l66xb_info,
  39. },
  40. .num_resources = 2,
  41. .resource = eseries_tmio_resources,
  42. };
  43. /* ---------------------------------------------------------- */
  44. static struct platform_device *devices[] __initdata = {
  45. &e350_t7l66xb_device,
  46. };
  47. static void __init e350_init(void)
  48. {
  49. eseries_register_clks();
  50. eseries_get_tmio_gpios();
  51. platform_add_devices(devices, ARRAY_SIZE(devices));
  52. pxa_set_udc_info(&e7xx_udc_mach_info);
  53. }
  54. MACHINE_START(E350, "Toshiba e350")
  55. /* Maintainer: Ian Molton (spyro@f2s.com) */
  56. .phys_io = 0x40000000,
  57. .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
  58. .boot_params = 0xa0000100,
  59. .map_io = pxa_map_io,
  60. .init_irq = pxa25x_init_irq,
  61. .fixup = eseries_fixup,
  62. .init_machine = e350_init,
  63. .timer = &pxa_timer,
  64. MACHINE_END