diff options
author | Andrew Victor <andrew@sanpeople.com> | 2006-12-01 05:27:31 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-12-01 08:54:00 -0500 |
commit | d481f86449ccd66314b700c78b3a79168df80d02 (patch) | |
tree | 3971a2f5a987788e664e57e648a3d4b9c72c4859 /arch/arm/mach-at91rm9200/pm.c | |
parent | fcc63716a5ee93ec3d1043890e38753d53313b80 (diff) |
[ARM] 3959/1: AT91: Support for SAM9 USB and HCK clocks
The bits used to select the USB clocks are different on the SAM9's.
Add support for the HCK clocks on the AT91SAM9261.
Patch from Patrice Vilchez & Nicolas Ferre
Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91rm9200/pm.c')
-rw-r--r-- | arch/arm/mach-at91rm9200/pm.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/arch/arm/mach-at91rm9200/pm.c b/arch/arm/mach-at91rm9200/pm.c index 5b775fac1c6b..67aa5572a3ea 100644 --- a/arch/arm/mach-at91rm9200/pm.c +++ b/arch/arm/mach-at91rm9200/pm.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <asm/arch/at91_pmc.h> | 29 | #include <asm/arch/at91_pmc.h> |
30 | #include <asm/arch/at91rm9200_mc.h> | 30 | #include <asm/arch/at91rm9200_mc.h> |
31 | #include <asm/arch/gpio.h> | 31 | #include <asm/arch/gpio.h> |
32 | #include <asm/arch/cpu.h> | ||
32 | 33 | ||
33 | #include "generic.h" | 34 | #include "generic.h" |
34 | 35 | ||
@@ -70,9 +71,15 @@ static int at91_pm_verify_clocks(void) | |||
70 | scsr = at91_sys_read(AT91_PMC_SCSR); | 71 | scsr = at91_sys_read(AT91_PMC_SCSR); |
71 | 72 | ||
72 | /* USB must not be using PLLB */ | 73 | /* USB must not be using PLLB */ |
73 | if ((scsr & (AT91_PMC_UHP | AT91_PMC_UDP)) != 0) { | 74 | if (cpu_is_at91rm9200()) { |
74 | pr_debug("AT91: PM - Suspend-to-RAM with USB still active\n"); | 75 | if ((scsr & (AT91RM9200_PMC_UHP | AT91RM9200_PMC_UDP)) != 0) { |
75 | return 0; | 76 | pr_debug("AT91: PM - Suspend-to-RAM with USB still active\n"); |
77 | return 0; | ||
78 | } | ||
79 | } else if (cpu_is_at91sam9260()) { | ||
80 | #warning "Check SAM9260 USB clocks" | ||
81 | } else if (cpu_is_at91sam9261()) { | ||
82 | #warning "Check SAM9261 USB clocks" | ||
76 | } | 83 | } |
77 | 84 | ||
78 | #ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS | 85 | #ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS |