board-ti8168evm.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 <asm/mach-types.h>
  18. #include <asm/mach/arch.h>
  19. #include <asm/mach/map.h>
  20. #include "common.h"
  21. #include <plat/usb.h>
  22. static struct omap_musb_board_data musb_board_data = {
  23. .set_phy_power = ti81xx_musb_phy_power,
  24. .interface_type = MUSB_INTERFACE_ULPI,
  25. .mode = MUSB_OTG,
  26. .power = 500,
  27. };
  28. static void __init ti81xx_evm_init(void)
  29. {
  30. omap_serial_init();
  31. omap_sdrc_init(NULL, NULL);
  32. usb_musb_init(&musb_board_data);
  33. }
  34. MACHINE_START(TI8168EVM, "ti8168evm")
  35. /* Maintainer: Texas Instruments */
  36. .atag_offset = 0x100,
  37. .map_io = ti81xx_map_io,
  38. .init_early = ti81xx_init_early,
  39. .init_irq = ti81xx_init_irq,
  40. .timer = &omap3_timer,
  41. .init_machine = ti81xx_evm_init,
  42. .init_late = ti81xx_init_late,
  43. .restart = omap_prcm_restart,
  44. MACHINE_END
  45. MACHINE_START(TI8148EVM, "ti8148evm")
  46. /* Maintainer: Texas Instruments */
  47. .atag_offset = 0x100,
  48. .map_io = ti81xx_map_io,
  49. .init_early = ti81xx_init_early,
  50. .init_irq = ti81xx_init_irq,
  51. .timer = &omap3_timer,
  52. .init_machine = ti81xx_evm_init,
  53. .init_late = ti81xx_init_late,
  54. .restart = omap_prcm_restart,
  55. MACHINE_END