aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2014-03-12 05:43:42 -0400
committerNicolas Ferre <nicolas.ferre@atmel.com>2014-03-12 06:30:54 -0400
commit72a3fe972935875a1cbf9614ac0dfa58f967dc45 (patch)
treeafa0126446e665b22dba9991e97d20f042dda15b /arch
parent2db5a93d21788e3e4a0746115992f267a93ba201 (diff)
ARM: at91: prepare common clk transition for sam9rl SoCs
This patch encloses sam9rl old clk registration in #if defined(CONFIG_OLD_CLK_AT91)/#endif sections. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Boris BREZILLON <b.brezillon.dev@gmail.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-at91/at91sam9rl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91sam9rl.c b/arch/arm/mach-at91/at91sam9rl.c
index 4b6eb2df601a..a11983fbaabf 100644
--- a/arch/arm/mach-at91/at91sam9rl.c
+++ b/arch/arm/mach-at91/at91sam9rl.c
@@ -25,13 +25,14 @@
25#include "at91_rstc.h" 25#include "at91_rstc.h"
26#include "soc.h" 26#include "soc.h"
27#include "generic.h" 27#include "generic.h"
28#include "clock.h"
29#include "sam9_smc.h" 28#include "sam9_smc.h"
30#include "pm.h" 29#include "pm.h"
31 30
32/* -------------------------------------------------------------------- 31/* --------------------------------------------------------------------
33 * Clocks 32 * Clocks
34 * -------------------------------------------------------------------- */ 33 * -------------------------------------------------------------------- */
34#if defined(CONFIG_OLD_CLK_AT91)
35#include "clock.h"
35 36
36/* 37/*
37 * The peripheral clocks. 38 * The peripheral clocks.
@@ -255,6 +256,7 @@ static void __init at91sam9rl_register_clocks(void)
255 clk_register(&pck0); 256 clk_register(&pck0);
256 clk_register(&pck1); 257 clk_register(&pck1);
257} 258}
259#endif
258 260
259/* -------------------------------------------------------------------- 261/* --------------------------------------------------------------------
260 * GPIO 262 * GPIO
@@ -367,6 +369,8 @@ AT91_SOC_START(at91sam9rl)
367 .default_irq_priority = at91sam9rl_default_irq_priority, 369 .default_irq_priority = at91sam9rl_default_irq_priority,
368 .extern_irq = (1 << AT91SAM9RL_ID_IRQ0), 370 .extern_irq = (1 << AT91SAM9RL_ID_IRQ0),
369 .ioremap_registers = at91sam9rl_ioremap_registers, 371 .ioremap_registers = at91sam9rl_ioremap_registers,
372#if defined(CONFIG_OLD_CLK_AT91)
370 .register_clocks = at91sam9rl_register_clocks, 373 .register_clocks = at91sam9rl_register_clocks,
374#endif
371 .init = at91sam9rl_initialize, 375 .init = at91sam9rl_initialize,
372AT91_SOC_END 376AT91_SOC_END