board-zoom3.c 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * Copyright (C) 2009 Texas Instruments Inc.
  3. *
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #include <linux/kernel.h>
  10. #include <linux/init.h>
  11. #include <linux/platform_device.h>
  12. #include <linux/input.h>
  13. #include <linux/gpio.h>
  14. #include <asm/mach-types.h>
  15. #include <asm/mach/arch.h>
  16. #include <mach/board-zoom.h>
  17. #include <plat/common.h>
  18. #include <plat/board.h>
  19. #include <plat/usb.h>
  20. #include "mux.h"
  21. #include "sdram-hynix-h8mbx00u0mer-0em.h"
  22. static void __init omap_zoom_map_io(void)
  23. {
  24. omap2_set_globals_36xx();
  25. omap34xx_map_common_io();
  26. }
  27. static struct omap_board_config_kernel zoom_config[] __initdata = {
  28. };
  29. static void __init omap_zoom_init_irq(void)
  30. {
  31. omap_board_config = zoom_config;
  32. omap_board_config_size = ARRAY_SIZE(zoom_config);
  33. omap2_init_common_hw(h8mbx00u0mer0em_sdrc_params,
  34. h8mbx00u0mer0em_sdrc_params);
  35. omap_init_irq();
  36. omap_gpio_init();
  37. }
  38. #ifdef CONFIG_OMAP_MUX
  39. static struct omap_board_mux board_mux[] __initdata = {
  40. { .reg_offset = OMAP_MUX_TERMINATOR },
  41. };
  42. #else
  43. #define board_mux NULL
  44. #endif
  45. static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = {
  46. .port_mode[0] = EHCI_HCD_OMAP_MODE_UNKNOWN,
  47. .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY,
  48. .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN,
  49. .phy_reset = true,
  50. .reset_gpio_port[0] = -EINVAL,
  51. .reset_gpio_port[1] = 64,
  52. .reset_gpio_port[2] = -EINVAL,
  53. };
  54. static void __init omap_zoom_init(void)
  55. {
  56. omap3_mux_init(board_mux, OMAP_PACKAGE_CBP);
  57. zoom_peripherals_init();
  58. zoom_debugboard_init();
  59. omap_mux_init_gpio(64, OMAP_PIN_OUTPUT);
  60. usb_ehci_init(&ehci_pdata);
  61. }
  62. MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board")
  63. .phys_io = 0x48000000,
  64. .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
  65. .boot_params = 0x80000100,
  66. .map_io = omap_zoom_map_io,
  67. .init_irq = omap_zoom_init_irq,
  68. .init_machine = omap_zoom_init,
  69. .timer = &omap_timer,
  70. MACHINE_END