diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-05-24 12:56:53 +0200 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-05-24 12:56:53 +0200 |
commit | 42fd5f87b1613d3039f57e93c16f760a768d3e84 (patch) | |
tree | 9dd0252fca37dbdb1148ce7fd44dc5c9dd8a6b34 /cpu/arm926ejs/at91sam9/usb.c | |
parent | 2c8d41969b47eb0b973912830c58689b2ba0e50a (diff) | |
parent | 54694a91428f6c3280fe1ee0923488a1e7e8dbc4 (diff) | |
download | u-boot-imx-42fd5f87b1613d3039f57e93c16f760a768d3e84.zip u-boot-imx-42fd5f87b1613d3039f57e93c16f760a768d3e84.tar.gz u-boot-imx-42fd5f87b1613d3039f57e93c16f760a768d3e84.tar.bz2 |
Merging Stelian Pop AT91 patches
Merge branch 'testing-V2'
Conflicts:
board/atmel/at91cap9adk/Makefile
Fixing copyright
board/atmel/at91sam9260ek/Makefile
Fixing copyright
board/atmel/at91sam9260ek/u-boot.lds
Delete no more needed ld script
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'cpu/arm926ejs/at91sam9/usb.c')
-rw-r--r-- | cpu/arm926ejs/at91sam9/usb.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpu/arm926ejs/at91sam9/usb.c b/cpu/arm926ejs/at91sam9/usb.c index 441349d..2a92f73 100644 --- a/cpu/arm926ejs/at91sam9/usb.c +++ b/cpu/arm926ejs/at91sam9/usb.c @@ -33,7 +33,11 @@ int usb_cpu_init(void) { /* Enable USB host clock. */ at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_UHP); +#ifdef CONFIG_AT91SAM9261 + at91_sys_write(AT91_PMC_SCER, AT91_PMC_UHP | AT91_PMC_HCK0); +#else at91_sys_write(AT91_PMC_SCER, AT91_PMC_UHP); +#endif return 0; } @@ -42,7 +46,11 @@ int usb_cpu_stop(void) { /* Disable USB host clock. */ at91_sys_write(AT91_PMC_PCDR, 1 << AT91_ID_UHP); +#ifdef CONFIG_AT91SAM9261 + at91_sys_write(AT91_PMC_SCDR, AT91_PMC_UHP | AT91_PMC_HCK0); +#else at91_sys_write(AT91_PMC_SCDR, AT91_PMC_UHP); +#endif return 0; } |