e350.c 1.9 KB

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