aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/setup.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-02-28 00:57:51 -0500
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-03-15 11:30:05 -0400
commit2b11ea5bf2fe4b79f9388d2eaf5d84713eb44a4c (patch)
tree706fb6d2d0782d09ec47b6138390d3c14853eb78 /arch/arm/mach-at91/setup.c
parent8bf7ec6508cdd6e068d42b9acee1ea439543ebe7 (diff)
ARM: at91/dt: add specific DT soc init
This will allow to have static Device mapping and DT probe mapping for the System Controller. Temporary keep the call to ioremap_registers() until we have the binding for the SDRAM/DDR Controller. Temporary keep the main clock hardcoded to 12MHz until we have the binding for the PMC. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Rob Herring <rob.herring@calxeda.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/setup.c')
-rw-r--r--arch/arm/mach-at91/setup.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c
index 372396c2ecb..c0bd5a62569 100644
--- a/arch/arm/mach-at91/setup.c
+++ b/arch/arm/mach-at91/setup.c
@@ -9,6 +9,7 @@
9#include <linux/io.h> 9#include <linux/io.h>
10#include <linux/mm.h> 10#include <linux/mm.h>
11#include <linux/pm.h> 11#include <linux/pm.h>
12#include <linux/of_address.h>
12 13
13#include <asm/mach/map.h> 14#include <asm/mach/map.h>
14 15
@@ -285,6 +286,23 @@ void __init at91_ioremap_matrix(u32 base_addr)
285 panic("Impossible to ioremap at91_matrix_base\n"); 286 panic("Impossible to ioremap at91_matrix_base\n");
286} 287}
287 288
289#if defined(CONFIG_OF)
290void __init at91_dt_initialize(void)
291{
292 /* temporary until have the ramc binding*/
293 at91_boot_soc.ioremap_registers();
294
295 /* temporary until have the pmc binding */
296 /* Init clock subsystem */
297 at91_clock_init(12000000);
298
299 /* Register the processor-specific clocks */
300 at91_boot_soc.register_clocks();
301
302 at91_boot_soc.init();
303}
304#endif
305
288void __init at91_initialize(unsigned long main_clock) 306void __init at91_initialize(unsigned long main_clock)
289{ 307{
290 at91_boot_soc.ioremap_registers(); 308 at91_boot_soc.ioremap_registers();