beagle.c 15 KB

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