board-ti8168evm.c 1.7 KB

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