board-palmte.c 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. * linux/arch/arm/mach-omap1/board-palmte.c
  3. *
  4. * Modified from board-generic.c
  5. *
  6. * Support for the Palm Tungsten E PDA.
  7. *
  8. * Original version : Laurent Gonzalez
  9. *
  10. * Maintainters : http://palmtelinux.sf.net
  11. * palmtelinux-developpers@lists.sf.net
  12. *
  13. * This program is free software; you can redistribute it and/or modify
  14. * it under the terms of the GNU General Public License version 2 as
  15. * published by the Free Software Foundation.
  16. */
  17. #include <linux/kernel.h>
  18. #include <linux/init.h>
  19. #include <linux/platform_device.h>
  20. #include <linux/notifier.h>
  21. #include <linux/clk.h>
  22. #include <asm/hardware.h>
  23. #include <asm/mach-types.h>
  24. #include <asm/mach/arch.h>
  25. #include <asm/mach/map.h>
  26. #include <asm/arch/gpio.h>
  27. #include <asm/arch/mux.h>
  28. #include <asm/arch/usb.h>
  29. #include <asm/arch/board.h>
  30. #include <asm/arch/common.h>
  31. static void __init omap_generic_init_irq(void)
  32. {
  33. omap_init_irq();
  34. }
  35. static struct omap_usb_config palmte_usb_config __initdata = {
  36. .register_dev = 1,
  37. .hmc_mode = 0,
  38. .pins[0] = 3,
  39. };
  40. static struct omap_mmc_config palmte_mmc_config __initdata = {
  41. .mmc [0] = {
  42. .enabled = 1,
  43. .wire4 = 1,
  44. .wp_pin = OMAP_MPUIO(3),
  45. .power_pin = -1,
  46. .switch_pin = -1,
  47. },
  48. };
  49. static struct omap_lcd_config palmte_lcd_config __initdata = {
  50. .panel_name = "palmte",
  51. .ctrl_name = "internal",
  52. };
  53. static struct omap_board_config_kernel palmte_config[] = {
  54. { OMAP_TAG_USB, &palmte_usb_config },
  55. { OMAP_TAG_MMC, &palmte_mmc_config },
  56. { OMAP_TAG_LCD, &palmte_lcd_config },
  57. };
  58. static void __init omap_generic_init(void)
  59. {
  60. omap_board_config = palmte_config;
  61. omap_board_config_size = ARRAY_SIZE(palmte_config);
  62. }
  63. static void __init omap_generic_map_io(void)
  64. {
  65. omap_map_common_io();
  66. }
  67. MACHINE_START(OMAP_PALMTE, "OMAP310 based Palm Tungsten E")
  68. .phys_io = 0xfff00000,
  69. .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc,
  70. .boot_params = 0x10000100,
  71. .map_io = omap_generic_map_io,
  72. .init_irq = omap_generic_init_irq,
  73. .init_machine = omap_generic_init,
  74. .timer = &omap_timer,
  75. MACHINE_END