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>
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <linux/io.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/pm.h>
|
||||
#include <linux/of_address.h>
|
||||
|
||||
#include <asm/mach/map.h>
|
||||
|
||||
@@ -285,6 +286,23 @@ void __init at91_ioremap_matrix(u32 base_addr)
|
||||
panic("Impossible to ioremap at91_matrix_base\n");
|
||||
}
|
||||
|
||||
#if defined(CONFIG_OF)
|
||||
void __init at91_dt_initialize(void)
|
||||
{
|
||||
/* temporary until have the ramc binding*/
|
||||
at91_boot_soc.ioremap_registers();
|
||||
|
||||
/* temporary until have the pmc binding */
|
||||
/* Init clock subsystem */
|
||||
at91_clock_init(12000000);
|
||||
|
||||
/* Register the processor-specific clocks */
|
||||
at91_boot_soc.register_clocks();
|
||||
|
||||
at91_boot_soc.init();
|
||||
}
|
||||
#endif
|
||||
|
||||
void __init at91_initialize(unsigned long main_clock)
|
||||
{
|
||||
at91_boot_soc.ioremap_registers();
|
||||
|
Reference in New Issue
Block a user