diff options
author | Sergey Matyukevich <geomatsi@gmail.com> | 2010-06-09 23:09:06 +0400 |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2010-06-30 21:37:36 +0200 |
commit | 64203c7b0f4568e5ece9fc1b25f763bed88d10b8 (patch) | |
tree | 6142a6723a07293297aee4c85dd9652a96a46677 /board/atmel/at91sam9m10g45ek | |
parent | 39ddd10b046fb791f47281ffb2100be01909ad72 (diff) | |
download | u-boot-imx-64203c7b0f4568e5ece9fc1b25f763bed88d10b8.zip u-boot-imx-64203c7b0f4568e5ece9fc1b25f763bed88d10b8.tar.gz u-boot-imx-64203c7b0f4568e5ece9fc1b25f763bed88d10b8.tar.bz2 |
USB OHCI support for at91sam9g45 SoC
Add USB OHCI support for at91sam9g45ekes/at91sam9m10g45ek boards.
Note that according to errata from Atmel, OHCI is not operational
on the first revision of at91sam9g45 chip. So this patch enables
OHCI support for later revisions.
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
Diffstat (limited to 'board/atmel/at91sam9m10g45ek')
-rw-r--r-- | board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c b/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c index edfb627..8fa0449 100644 --- a/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c +++ b/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c @@ -87,6 +87,16 @@ static void at91sam9m10g45ek_nand_hw_init(void) } #endif +#ifdef CONFIG_CMD_USB +static void at91sam9m10g45ek_usb_hw_init(void) +{ + at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9G45_ID_PIODE); + + at91_set_gpio_output(AT91_PIN_PD1, 0); + at91_set_gpio_output(AT91_PIN_PD3, 0); +} +#endif + #ifdef CONFIG_MACB static void at91sam9m10g45ek_macb_hw_init(void) { @@ -251,6 +261,9 @@ int board_init(void) #ifdef CONFIG_CMD_NAND at91sam9m10g45ek_nand_hw_init(); #endif +#ifdef CONFIG_CMD_USB + at91sam9m10g45ek_usb_hw_init(); +#endif #ifdef CONFIG_HAS_DATAFLASH at91_spi0_hw_init(1 << 0); #endif |