e330.c 1.9 KB

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