board-ti8168evm.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Code for TI8168/TI8148 EVM.
  3. *
  4. * Copyright (C) 2010 Texas Instruments, Inc. - http://www.ti.com/
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation version 2.
  9. *
  10. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  11. * kind, whether express or implied; without even the implied warranty
  12. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #include <linux/kernel.h>
  16. #include <linux/init.h>
  17. #include <mach/hardware.h>
  18. #include <asm/mach-types.h>
  19. #include <asm/mach/arch.h>
  20. #include <asm/mach/map.h>
  21. #include <plat/irqs.h>
  22. #include <plat/board.h>
  23. #include "common.h"
  24. #include <plat/usb.h>
  25. static struct omap_musb_board_data musb_board_data = {
  26. .set_phy_power = ti81xx_musb_phy_power,
  27. .interface_type = MUSB_INTERFACE_ULPI,
  28. .mode = MUSB_OTG,
  29. .power = 500,
  30. };
  31. static struct omap_board_config_kernel ti81xx_evm_config[] __initdata = {
  32. };
  33. static void __init ti81xx_evm_init(void)
  34. {
  35. omap_serial_init();
  36. omap_sdrc_init(NULL, NULL);
  37. omap_board_config = ti81xx_evm_config;
  38. omap_board_config_size = ARRAY_SIZE(ti81xx_evm_config);
  39. usb_musb_init(&musb_board_data);
  40. }
  41. MACHINE_START(TI8168EVM, "ti8168evm")
  42. /* Maintainer: Texas Instruments */
  43. .atag_offset = 0x100,
  44. .map_io = ti81xx_map_io,
  45. .init_early = ti81xx_init_early,
  46. .init_irq = ti81xx_init_irq,
  47. .timer = &omap3_timer,
  48. .init_machine = ti81xx_evm_init,
  49. .restart = omap_prcm_restart,
  50. MACHINE_END
  51. MACHINE_START(TI8148EVM, "ti8148evm")
  52. /* Maintainer: Texas Instruments */
  53. .atag_offset = 0x100,
  54. .map_io = ti81xx_map_io,
  55. .init_early = ti81xx_init_early,
  56. .init_irq = ti81xx_init_irq,
  57. .timer = &omap3_timer,
  58. .init_machine = ti81xx_evm_init,
  59. .restart = omap_prcm_restart,
  60. MACHINE_END