beagle.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  1. /*
  2. * (C) Copyright 2004-2011
  3. * Texas Instruments, <www.ti.com>
  4. *
  5. * Author :
  6. * Sunil Kumar <sunilsaini05@gmail.com>
  7. * Shashi Ranjan <shashiranjanmca05@gmail.com>
  8. *
  9. * Derived from Beagle Board and 3430 SDP code by
  10. * Richard Woodruff <r-woodruff2@ti.com>
  11. * Syed Mohammed Khasim <khasim@ti.com>
  12. *
  13. *
  14. * SPDX-License-Identifier: GPL-2.0+
  15. */
  16. #include <common.h>
  17. #ifdef CONFIG_STATUS_LED
  18. #include <status_led.h>
  19. #endif
  20. #include <twl4030.h>
  21. #include <linux/mtd/nand.h>
  22. #include <asm/io.h>
  23. #include <asm/arch/mmc_host_def.h>
  24. #include <asm/arch/mux.h>
  25. #include <asm/arch/mem.h>
  26. #include <asm/arch/sys_proto.h>
  27. #include <asm/gpio.h>
  28. #include <asm/mach-types.h>
  29. #include <asm/omap_musb.h>
  30. #include <asm/errno.h>
  31. #include <linux/usb/ch9.h>
  32. #include <linux/usb/gadget.h>
  33. #include <linux/usb/musb.h>
  34. #include "beagle.h"
  35. #include <command.h>
  36. #ifdef CONFIG_USB_EHCI
  37. #include <usb.h>
  38. #include <asm/ehci-omap.h>
  39. #endif
  40. #define TWL4030_I2C_BUS 0
  41. #define EXPANSION_EEPROM_I2C_BUS 1
  42. #define EXPANSION_EEPROM_I2C_ADDRESS 0x50
  43. #define TINCANTOOLS_ZIPPY 0x01000100
  44. #define TINCANTOOLS_ZIPPY2 0x02000100
  45. #define TINCANTOOLS_TRAINER 0x04000100
  46. #define TINCANTOOLS_SHOWDOG 0x03000100
  47. #define KBADC_BEAGLEFPGA 0x01000600
  48. #define LW_BEAGLETOUCH 0x01000700
  49. #define BRAINMUX_LCDOG 0x01000800
  50. #define BRAINMUX_LCDOGTOUCH 0x02000800
  51. #define BBTOYS_WIFI 0x01000B00
  52. #define BBTOYS_VGA 0x02000B00
  53. #define BBTOYS_LCD 0x03000B00
  54. #define BCT_BRETTL3 0x01000F00
  55. #define BCT_BRETTL4 0x02000F00
  56. #define LSR_COM6L_ADPT 0x01001300
  57. #define BEAGLE_NO_EEPROM 0xffffffff
  58. DECLARE_GLOBAL_DATA_PTR;
  59. static struct {
  60. unsigned int device_vendor;
  61. unsigned char revision;
  62. unsigned char content;
  63. char fab_revision[8];
  64. char env_var[16];
  65. char env_setting[64];
  66. } expansion_config;
  67. /*
  68. * Routine: board_init
  69. * Description: Early hardware init.
  70. */
  71. int board_init(void)
  72. {
  73. gpmc_init(); /* in SRAM or SDRAM, finish GPMC */
  74. /* board id for Linux */
  75. gd->bd->bi_arch_number = MACH_TYPE_OMAP3_BEAGLE;
  76. /* boot param addr */
  77. gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
  78. #if defined(CONFIG_STATUS_LED) && defined(STATUS_LED_BOOT)
  79. status_led_set (STATUS_LED_BOOT, STATUS_LED_ON);
  80. #endif
  81. return 0;
  82. }
  83. /*
  84. * Routine: get_board_revision
  85. * Description: Detect if we are running on a Beagle revision Ax/Bx,
  86. * C1/2/3, C4, xM Ax/Bx or xM Cx. This can be done by reading
  87. * the level of GPIO173, GPIO172 and GPIO171. This should
  88. * result in
  89. * GPIO173, GPIO172, GPIO171: 1 1 1 => Ax/Bx
  90. * GPIO173, GPIO172, GPIO171: 1 1 0 => C1/2/3
  91. * GPIO173, GPIO172, GPIO171: 1 0 1 => C4
  92. * GPIO173, GPIO172, GPIO171: 0 1 0 => xM Cx
  93. * GPIO173, GPIO172, GPIO171: 0 0 0 => xM Ax/Bx
  94. */
  95. static int get_board_revision(void)
  96. {
  97. int revision;
  98. if (!gpio_request(171, "") &&
  99. !gpio_request(172, "") &&
  100. !gpio_request(173, "")) {
  101. gpio_direction_input(171);
  102. gpio_direction_input(172);
  103. gpio_direction_input(173);
  104. revision = gpio_get_value(173) << 2 |
  105. gpio_get_value(172) << 1 |
  106. gpio_get_value(171);
  107. } else {
  108. printf("Error: unable to acquire board revision GPIOs\n");
  109. revision = -1;
  110. }
  111. return revision;
  112. }
  113. #ifdef CONFIG_SPL_BUILD
  114. /*
  115. * Routine: get_board_mem_timings
  116. * Description: If we use SPL then there is no x-loader nor config header
  117. * so we have to setup the DDR timings ourself on both banks.
  118. */
  119. void get_board_mem_timings(struct board_sdrc_timings *timings)
  120. {
  121. int pop_mfr, pop_id;
  122. /*
  123. * We need to identify what PoP memory is on the board so that
  124. * we know what timings to use. If we can't identify it then
  125. * we know it's an xM. To map the ID values please see nand_ids.c
  126. */
  127. identify_nand_chip(&pop_mfr, &pop_id);
  128. timings->mr = MICRON_V_MR_165;
  129. switch (get_board_revision()) {
  130. case REVISION_C4:
  131. if (pop_mfr == NAND_MFR_STMICRO && pop_id == 0xba) {
  132. /* 512MB DDR */
  133. timings->mcfg = NUMONYX_V_MCFG_165(512 << 20);
  134. timings->ctrla = NUMONYX_V_ACTIMA_165;
  135. timings->ctrlb = NUMONYX_V_ACTIMB_165;
  136. timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz;
  137. break;
  138. } else if (pop_mfr == NAND_MFR_MICRON && pop_id == 0xba) {
  139. /* Beagleboard Rev C4, 512MB Nand/256MB DDR*/
  140. timings->mcfg = MICRON_V_MCFG_165(128 << 20);
  141. timings->ctrla = MICRON_V_ACTIMA_165;
  142. timings->ctrlb = MICRON_V_ACTIMB_165;
  143. timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz;
  144. break;
  145. } else if (pop_mfr == NAND_MFR_MICRON && pop_id == 0xbc) {
  146. /* Beagleboard Rev C5, 256MB DDR */
  147. timings->mcfg = MICRON_V_MCFG_200(256 << 20);
  148. timings->ctrla = MICRON_V_ACTIMA_200;
  149. timings->ctrlb = MICRON_V_ACTIMB_200;
  150. timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_200MHz;
  151. break;
  152. }
  153. case REVISION_XM_AB:
  154. case REVISION_XM_C:
  155. if (pop_mfr == 0) {
  156. /* 256MB DDR */
  157. timings->mcfg = MICRON_V_MCFG_200(256 << 20);
  158. timings->ctrla = MICRON_V_ACTIMA_200;
  159. timings->ctrlb = MICRON_V_ACTIMB_200;
  160. timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_200MHz;
  161. } else {
  162. /* 512MB DDR */
  163. timings->mcfg = NUMONYX_V_MCFG_165(512 << 20);
  164. timings->ctrla = NUMONYX_V_ACTIMA_165;
  165. timings->ctrlb = NUMONYX_V_ACTIMB_165;
  166. timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz;
  167. }
  168. break;
  169. default:
  170. /* Assume 128MB and Micron/165MHz timings to be safe */
  171. timings->mcfg = MICRON_V_MCFG_165(128 << 20);
  172. timings->ctrla = MICRON_V_ACTIMA_165;
  173. timings->ctrlb = MICRON_V_ACTIMB_165;
  174. timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz;
  175. }
  176. }
  177. #endif
  178. /*
  179. * Routine: get_expansion_id
  180. * Description: This function checks for expansion board by checking I2C
  181. * bus 1 for the availability of an AT24C01B serial EEPROM.
  182. * returns the device_vendor field from the EEPROM
  183. */
  184. static unsigned int get_expansion_id(void)
  185. {
  186. i2c_set_bus_num(EXPANSION_EEPROM_I2C_BUS);
  187. /* return BEAGLE_NO_EEPROM if eeprom doesn't respond */
  188. if (i2c_probe(EXPANSION_EEPROM_I2C_ADDRESS) == 1) {
  189. i2c_set_bus_num(TWL4030_I2C_BUS);
  190. return BEAGLE_NO_EEPROM;
  191. }
  192. /* read configuration data */
  193. i2c_read(EXPANSION_EEPROM_I2C_ADDRESS, 0, 1, (u8 *)&expansion_config,
  194. sizeof(expansion_config));
  195. /* retry reading configuration data with 16bit addressing */
  196. if ((expansion_config.device_vendor == 0xFFFFFF00) ||
  197. (expansion_config.device_vendor == 0xFFFFFFFF)) {
  198. printf("EEPROM is blank or 8bit addressing failed: retrying with 16bit:\n");
  199. i2c_read(EXPANSION_EEPROM_I2C_ADDRESS, 0, 2, (u8 *)&expansion_config,
  200. sizeof(expansion_config));
  201. }
  202. i2c_set_bus_num(TWL4030_I2C_BUS);
  203. return expansion_config.device_vendor;
  204. }
  205. #ifdef CONFIG_VIDEO_OMAP3
  206. /*
  207. * Configure DSS to display background color on DVID
  208. * Configure VENC to display color bar on S-Video
  209. */
  210. static void beagle_display_init(void)
  211. {
  212. omap3_dss_venc_config(&venc_config_std_tv, VENC_HEIGHT, VENC_WIDTH);
  213. switch (get_board_revision()) {
  214. case REVISION_AXBX:
  215. case REVISION_CX:
  216. case REVISION_C4:
  217. omap3_dss_panel_config(&dvid_cfg);
  218. break;
  219. case REVISION_XM_AB:
  220. case REVISION_XM_C:
  221. default:
  222. omap3_dss_panel_config(&dvid_cfg_xm);
  223. break;
  224. }
  225. }
  226. /*
  227. * Enable DVI power
  228. */
  229. static void beagle_dvi_pup(void)
  230. {
  231. uchar val;
  232. switch (get_board_revision()) {
  233. case REVISION_AXBX:
  234. case REVISION_CX:
  235. case REVISION_C4:
  236. gpio_request(170, "");
  237. gpio_direction_output(170, 0);
  238. gpio_set_value(170, 1);
  239. break;
  240. case REVISION_XM_AB:
  241. case REVISION_XM_C:
  242. default:
  243. #define GPIODATADIR1 (TWL4030_BASEADD_GPIO+3)
  244. #define GPIODATAOUT1 (TWL4030_BASEADD_GPIO+6)
  245. i2c_read(TWL4030_CHIP_GPIO, GPIODATADIR1, 1, &val, 1);
  246. val |= 4;
  247. i2c_write(TWL4030_CHIP_GPIO, GPIODATADIR1, 1, &val, 1);
  248. i2c_read(TWL4030_CHIP_GPIO, GPIODATAOUT1, 1, &val, 1);
  249. val |= 4;
  250. i2c_write(TWL4030_CHIP_GPIO, GPIODATAOUT1, 1, &val, 1);
  251. break;
  252. }
  253. }
  254. #endif
  255. #ifdef CONFIG_USB_MUSB_OMAP2PLUS
  256. static struct musb_hdrc_config musb_config = {
  257. .multipoint = 1,
  258. .dyn_fifo = 1,
  259. .num_eps = 16,
  260. .ram_bits = 12,
  261. };
  262. static struct omap_musb_board_data musb_board_data = {
  263. .interface_type = MUSB_INTERFACE_ULPI,
  264. };
  265. static struct musb_hdrc_platform_data musb_plat = {
  266. #if defined(CONFIG_MUSB_HOST)
  267. .mode = MUSB_HOST,
  268. #elif defined(CONFIG_MUSB_GADGET)
  269. .mode = MUSB_PERIPHERAL,
  270. #else
  271. #error "Please define either CONFIG_MUSB_HOST or CONFIG_MUSB_GADGET"
  272. #endif
  273. .config = &musb_config,
  274. .power = 100,
  275. .platform_ops = &omap2430_ops,
  276. .board_data = &musb_board_data,
  277. };
  278. #endif
  279. /*
  280. * Routine: misc_init_r
  281. * Description: Configure board specific parts
  282. */
  283. int misc_init_r(void)
  284. {
  285. struct gpio *gpio5_base = (struct gpio *)OMAP34XX_GPIO5_BASE;
  286. struct gpio *gpio6_base = (struct gpio *)OMAP34XX_GPIO6_BASE;
  287. struct control_prog_io *prog_io_base = (struct control_prog_io *)OMAP34XX_CTRL_BASE;
  288. bool generate_fake_mac = false;
  289. u32 value;
  290. /* Enable i2c2 pullup resisters */
  291. value = readl(&prog_io_base->io1);
  292. value &= ~(PRG_I2C2_PULLUPRESX);
  293. writel(value, &prog_io_base->io1);
  294. switch (get_board_revision()) {
  295. case REVISION_AXBX:
  296. printf("Beagle Rev Ax/Bx\n");
  297. setenv("beaglerev", "AxBx");
  298. break;
  299. case REVISION_CX:
  300. printf("Beagle Rev C1/C2/C3\n");
  301. setenv("beaglerev", "Cx");
  302. MUX_BEAGLE_C();
  303. break;
  304. case REVISION_C4:
  305. printf("Beagle Rev C4\n");
  306. setenv("beaglerev", "C4");
  307. MUX_BEAGLE_C();
  308. /* Set VAUX2 to 1.8V for EHCI PHY */
  309. twl4030_pmrecv_vsel_cfg(TWL4030_PM_RECEIVER_VAUX2_DEDICATED,
  310. TWL4030_PM_RECEIVER_VAUX2_VSEL_18,
  311. TWL4030_PM_RECEIVER_VAUX2_DEV_GRP,
  312. TWL4030_PM_RECEIVER_DEV_GRP_P1);
  313. break;
  314. case REVISION_XM_AB:
  315. printf("Beagle xM Rev A/B\n");
  316. setenv("beaglerev", "xMAB");
  317. MUX_BEAGLE_XM();
  318. /* Set VAUX2 to 1.8V for EHCI PHY */
  319. twl4030_pmrecv_vsel_cfg(TWL4030_PM_RECEIVER_VAUX2_DEDICATED,
  320. TWL4030_PM_RECEIVER_VAUX2_VSEL_18,
  321. TWL4030_PM_RECEIVER_VAUX2_DEV_GRP,
  322. TWL4030_PM_RECEIVER_DEV_GRP_P1);
  323. generate_fake_mac = true;
  324. break;
  325. case REVISION_XM_C:
  326. printf("Beagle xM Rev C\n");
  327. setenv("beaglerev", "xMC");
  328. MUX_BEAGLE_XM();
  329. /* Set VAUX2 to 1.8V for EHCI PHY */
  330. twl4030_pmrecv_vsel_cfg(TWL4030_PM_RECEIVER_VAUX2_DEDICATED,
  331. TWL4030_PM_RECEIVER_VAUX2_VSEL_18,
  332. TWL4030_PM_RECEIVER_VAUX2_DEV_GRP,
  333. TWL4030_PM_RECEIVER_DEV_GRP_P1);
  334. generate_fake_mac = true;
  335. break;
  336. default:
  337. printf("Beagle unknown 0x%02x\n", get_board_revision());
  338. MUX_BEAGLE_XM();
  339. /* Set VAUX2 to 1.8V for EHCI PHY */
  340. twl4030_pmrecv_vsel_cfg(TWL4030_PM_RECEIVER_VAUX2_DEDICATED,
  341. TWL4030_PM_RECEIVER_VAUX2_VSEL_18,
  342. TWL4030_PM_RECEIVER_VAUX2_DEV_GRP,
  343. TWL4030_PM_RECEIVER_DEV_GRP_P1);
  344. generate_fake_mac = true;
  345. }
  346. switch (get_expansion_id()) {
  347. case TINCANTOOLS_ZIPPY:
  348. printf("Recognized Tincantools Zippy board (rev %d %s)\n",
  349. expansion_config.revision,
  350. expansion_config.fab_revision);
  351. MUX_TINCANTOOLS_ZIPPY();
  352. setenv("buddy", "zippy");
  353. break;
  354. case TINCANTOOLS_ZIPPY2:
  355. printf("Recognized Tincantools Zippy2 board (rev %d %s)\n",
  356. expansion_config.revision,
  357. expansion_config.fab_revision);
  358. MUX_TINCANTOOLS_ZIPPY();
  359. setenv("buddy", "zippy2");
  360. break;
  361. case TINCANTOOLS_TRAINER:
  362. printf("Recognized Tincantools Trainer board (rev %d %s)\n",
  363. expansion_config.revision,
  364. expansion_config.fab_revision);
  365. MUX_TINCANTOOLS_ZIPPY();
  366. MUX_TINCANTOOLS_TRAINER();
  367. setenv("buddy", "trainer");
  368. break;
  369. case TINCANTOOLS_SHOWDOG:
  370. printf("Recognized Tincantools Showdow board (rev %d %s)\n",
  371. expansion_config.revision,
  372. expansion_config.fab_revision);
  373. /* Place holder for DSS2 definition for showdog lcd */
  374. setenv("defaultdisplay", "showdoglcd");
  375. setenv("buddy", "showdog");
  376. break;
  377. case KBADC_BEAGLEFPGA:
  378. printf("Recognized KBADC Beagle FPGA board\n");
  379. MUX_KBADC_BEAGLEFPGA();
  380. setenv("buddy", "beaglefpga");
  381. break;
  382. case LW_BEAGLETOUCH:
  383. printf("Recognized Liquidware BeagleTouch board\n");
  384. setenv("buddy", "beagletouch");
  385. break;
  386. case BRAINMUX_LCDOG:
  387. printf("Recognized Brainmux LCDog board\n");
  388. setenv("buddy", "lcdog");
  389. break;
  390. case BRAINMUX_LCDOGTOUCH:
  391. printf("Recognized Brainmux LCDog Touch board\n");
  392. setenv("buddy", "lcdogtouch");
  393. break;
  394. case BBTOYS_WIFI:
  395. printf("Recognized BeagleBoardToys WiFi board\n");
  396. MUX_BBTOYS_WIFI()
  397. setenv("buddy", "bbtoys-wifi");
  398. break;;
  399. case BBTOYS_VGA:
  400. printf("Recognized BeagleBoardToys VGA board\n");
  401. break;;
  402. case BBTOYS_LCD:
  403. printf("Recognized BeagleBoardToys LCD board\n");
  404. break;;
  405. case BCT_BRETTL3:
  406. printf("Recognized bct electronic GmbH brettl3 board\n");
  407. break;
  408. case BCT_BRETTL4:
  409. printf("Recognized bct electronic GmbH brettl4 board\n");
  410. break;
  411. case LSR_COM6L_ADPT:
  412. printf("Recognized LSR COM6L Adapter Board\n");
  413. MUX_BBTOYS_WIFI()
  414. setenv("buddy", "lsr-com6l-adpt");
  415. break;
  416. case BEAGLE_NO_EEPROM:
  417. printf("No EEPROM on expansion board\n");
  418. setenv("buddy", "none");
  419. break;
  420. default:
  421. printf("Unrecognized expansion board: %x\n",
  422. expansion_config.device_vendor);
  423. setenv("buddy", "unknown");
  424. }
  425. if (expansion_config.content == 1)
  426. setenv(expansion_config.env_var, expansion_config.env_setting);
  427. twl4030_power_init();
  428. switch (get_board_revision()) {
  429. case REVISION_XM_AB:
  430. twl4030_led_init(TWL4030_LED_LEDEN_LEDBON);
  431. break;
  432. default:
  433. twl4030_led_init(TWL4030_LED_LEDEN_LEDAON | TWL4030_LED_LEDEN_LEDBON);
  434. break;
  435. }
  436. /* Set GPIO states before they are made outputs */
  437. writel(GPIO23 | GPIO10 | GPIO8 | GPIO2 | GPIO1,
  438. &gpio6_base->setdataout);
  439. writel(GPIO31 | GPIO30 | GPIO29 | GPIO28 | GPIO22 | GPIO21 |
  440. GPIO15 | GPIO14 | GPIO13 | GPIO12, &gpio5_base->setdataout);
  441. /* Configure GPIOs to output */
  442. writel(~(GPIO23 | GPIO10 | GPIO8 | GPIO2 | GPIO1), &gpio6_base->oe);
  443. writel(~(GPIO31 | GPIO30 | GPIO29 | GPIO28 | GPIO22 | GPIO21 |
  444. GPIO15 | GPIO14 | GPIO13 | GPIO12), &gpio5_base->oe);
  445. dieid_num_r();
  446. #ifdef CONFIG_VIDEO_OMAP3
  447. beagle_dvi_pup();
  448. beagle_display_init();
  449. omap3_dss_enable();
  450. #endif
  451. #ifdef CONFIG_USB_MUSB_OMAP2PLUS
  452. musb_register(&musb_plat, &musb_board_data, (void *)MUSB_BASE);
  453. #endif
  454. if (generate_fake_mac) {
  455. u32 id[4];
  456. get_dieid(id);
  457. usb_fake_mac_from_die_id(id);
  458. }
  459. return 0;
  460. }
  461. /*
  462. * Routine: set_muxconf_regs
  463. * Description: Setting up the configuration Mux registers specific to the
  464. * hardware. Many pins need to be moved from protect to primary
  465. * mode.
  466. */
  467. void set_muxconf_regs(void)
  468. {
  469. MUX_BEAGLE();
  470. }
  471. #if defined(CONFIG_GENERIC_MMC) && !defined(CONFIG_SPL_BUILD)
  472. int board_mmc_init(bd_t *bis)
  473. {
  474. return omap_mmc_init(0, 0, 0, -1, -1);
  475. }
  476. #endif
  477. #if defined(CONFIG_USB_EHCI) && !defined(CONFIG_SPL_BUILD)
  478. /* Call usb_stop() before starting the kernel */
  479. void show_boot_progress(int val)
  480. {
  481. if (val == BOOTSTAGE_ID_RUN_OS)
  482. usb_stop();
  483. }
  484. static struct omap_usbhs_board_data usbhs_bdata = {
  485. .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY,
  486. .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY,
  487. .port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED
  488. };
  489. int ehci_hcd_init(int index, enum usb_init_type init,
  490. struct ehci_hccr **hccr, struct ehci_hcor **hcor)
  491. {
  492. return omap_ehci_hcd_init(index, &usbhs_bdata, hccr, hcor);
  493. }
  494. int ehci_hcd_stop(int index)
  495. {
  496. return omap_ehci_hcd_stop();
  497. }
  498. #endif /* CONFIG_USB_EHCI */
  499. #if defined(CONFIG_USB_ETHER) && defined(CONFIG_MUSB_GADGET)
  500. int board_eth_init(bd_t *bis)
  501. {
  502. return usb_eth_initialize(bis);
  503. }
  504. #endif