diff options
author | Olof Johansson <olof@lixom.net> | 2013-05-31 22:39:49 -0700 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-05-31 22:39:49 -0700 |
commit | 92ce4cc63d5eb31fb1b2650d97d6d4c5fa47b793 (patch) | |
tree | 9d8d74e4bc1c82d42e2136d43f57189d6fb5f640 /arch/arm/mach-kirkwood/common.c | |
parent | e4aa937ec75df0eea0bee03bffa3303ad36c986b (diff) | |
parent | 0e2ee0c0610ec211a9f0ebf3088cbf4da422ebf8 (diff) | |
download | linux-92ce4cc63d5eb31fb1b2650d97d6d4c5fa47b793.tar.bz2 |
Merge tag 'soc-3.11-2' of git://git.infradead.org/users/jcooper/linux into next/soc
From Jason Cooper, mvebu soc changes for v3.11
Signed-off-by: Olof Johansson <olof@lixom.net>
* tag 'soc-3.11-2' of git://git.infradead.org/users/jcooper/linux:
arm: kirkwood: Instantiate cpufreq driver
arm: kirkwood: use the default of match table
Diffstat (limited to 'arch/arm/mach-kirkwood/common.c')
-rw-r--r-- | arch/arm/mach-kirkwood/common.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index f38922897563..56250e638d9b 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c @@ -598,6 +598,29 @@ void __init kirkwood_audio_init(void) } /***************************************************************************** + * CPU Frequency + ****************************************************************************/ +static struct resource kirkwood_cpufreq_resources[] = { + [0] = { + .start = CPU_CONTROL_PHYS, + .end = CPU_CONTROL_PHYS + 3, + .flags = IORESOURCE_MEM, + }, +}; + +static struct platform_device kirkwood_cpufreq_device = { + .name = "kirkwood-cpufreq", + .id = -1, + .num_resources = ARRAY_SIZE(kirkwood_cpufreq_resources), + .resource = kirkwood_cpufreq_resources, +}; + +void __init kirkwood_cpufreq_init(void) +{ + platform_device_register(&kirkwood_cpufreq_device); +} + +/***************************************************************************** * General ****************************************************************************/ /* |