e330.c 1.8 KB

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