diff options
author | Stelian Pop <stelian@popies.net> | 2008-05-08 20:52:22 +0200 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-05-10 11:32:08 +0200 |
commit | d99a8ff66d8ae87e5c87590ed2e4ead629540607 (patch) | |
tree | 6e3c565276f32dbc6a43c2d521b3b8762868d0dc /cpu/arm926ejs | |
parent | 86c8c8a414988c50104a3b02c29f50af2be738c0 (diff) | |
download | u-boot-imx-d99a8ff66d8ae87e5c87590ed2e4ead629540607.zip u-boot-imx-d99a8ff66d8ae87e5c87590ed2e4ead629540607.tar.gz u-boot-imx-d99a8ff66d8ae87e5c87590ed2e4ead629540607.tar.bz2 |
AT91SAM9261EK support
This patch adds support for the AT91SAM9261 chip and the AT91SAM9261EK
board.
Signed-off-by: Stelian Pop <stelian@popies.net>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'cpu/arm926ejs')
-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; } |