diff options
Diffstat (limited to 'arch/arm/mach-at91/setup.c')
-rw-r--r-- | arch/arm/mach-at91/setup.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c index 094b3459c288..f7ca97b7291e 100644 --- a/arch/arm/mach-at91/setup.c +++ b/arch/arm/mach-at91/setup.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/pm.h> | 11 | #include <linux/pm.h> |
12 | #include <linux/of_address.h> | 12 | #include <linux/of_address.h> |
13 | #include <linux/pinctrl/machine.h> | 13 | #include <linux/pinctrl/machine.h> |
14 | #include <linux/clk/at91_pmc.h> | ||
14 | 15 | ||
15 | #include <asm/system_misc.h> | 16 | #include <asm/system_misc.h> |
16 | #include <asm/mach/map.h> | 17 | #include <asm/mach/map.h> |
@@ -18,7 +19,6 @@ | |||
18 | #include <mach/hardware.h> | 19 | #include <mach/hardware.h> |
19 | #include <mach/cpu.h> | 20 | #include <mach/cpu.h> |
20 | #include <mach/at91_dbgu.h> | 21 | #include <mach/at91_dbgu.h> |
21 | #include <mach/at91_pmc.h> | ||
22 | 22 | ||
23 | #include "at91_shdwc.h" | 23 | #include "at91_shdwc.h" |
24 | #include "soc.h" | 24 | #include "soc.h" |
@@ -81,7 +81,7 @@ void __init at91_init_sram(int bank, unsigned long base, unsigned int length) | |||
81 | 81 | ||
82 | desc->pfn = __phys_to_pfn(base); | 82 | desc->pfn = __phys_to_pfn(base); |
83 | desc->length = length; | 83 | desc->length = length; |
84 | desc->type = MT_MEMORY_NONCACHED; | 84 | desc->type = MT_MEMORY_RWX_NONCACHED; |
85 | 85 | ||
86 | pr_info("AT91: sram at 0x%lx of 0x%x mapped at 0x%lx\n", | 86 | pr_info("AT91: sram at 0x%lx of 0x%x mapped at 0x%lx\n", |
87 | base, length, desc->virtual); | 87 | base, length, desc->virtual); |
@@ -233,6 +233,9 @@ static void __init soc_detect(u32 dbgu_base) | |||
233 | case ARCH_EXID_SAMA5D35: | 233 | case ARCH_EXID_SAMA5D35: |
234 | at91_soc_initdata.subtype = AT91_SOC_SAMA5D35; | 234 | at91_soc_initdata.subtype = AT91_SOC_SAMA5D35; |
235 | break; | 235 | break; |
236 | case ARCH_EXID_SAMA5D36: | ||
237 | at91_soc_initdata.subtype = AT91_SOC_SAMA5D36; | ||
238 | break; | ||
236 | } | 239 | } |
237 | } | 240 | } |
238 | } | 241 | } |
@@ -275,6 +278,7 @@ static const char *soc_subtype_name[] = { | |||
275 | [AT91_SOC_SAMA5D33] = "sama5d33", | 278 | [AT91_SOC_SAMA5D33] = "sama5d33", |
276 | [AT91_SOC_SAMA5D34] = "sama5d34", | 279 | [AT91_SOC_SAMA5D34] = "sama5d34", |
277 | [AT91_SOC_SAMA5D35] = "sama5d35", | 280 | [AT91_SOC_SAMA5D35] = "sama5d35", |
281 | [AT91_SOC_SAMA5D36] = "sama5d36", | ||
278 | [AT91_SOC_SUBTYPE_NONE] = "None", | 282 | [AT91_SOC_SUBTYPE_NONE] = "None", |
279 | [AT91_SOC_SUBTYPE_UNKNOWN] = "Unknown", | 283 | [AT91_SOC_SUBTYPE_UNKNOWN] = "Unknown", |
280 | }; | 284 | }; |
@@ -491,7 +495,8 @@ void __init at91rm9200_dt_initialize(void) | |||
491 | at91_dt_clock_init(); | 495 | at91_dt_clock_init(); |
492 | 496 | ||
493 | /* Register the processor-specific clocks */ | 497 | /* Register the processor-specific clocks */ |
494 | at91_boot_soc.register_clocks(); | 498 | if (at91_boot_soc.register_clocks) |
499 | at91_boot_soc.register_clocks(); | ||
495 | 500 | ||
496 | at91_boot_soc.init(); | 501 | at91_boot_soc.init(); |
497 | } | 502 | } |
@@ -506,7 +511,8 @@ void __init at91_dt_initialize(void) | |||
506 | at91_dt_clock_init(); | 511 | at91_dt_clock_init(); |
507 | 512 | ||
508 | /* Register the processor-specific clocks */ | 513 | /* Register the processor-specific clocks */ |
509 | at91_boot_soc.register_clocks(); | 514 | if (at91_boot_soc.register_clocks) |
515 | at91_boot_soc.register_clocks(); | ||
510 | 516 | ||
511 | if (at91_boot_soc.init) | 517 | if (at91_boot_soc.init) |
512 | at91_boot_soc.init(); | 518 | at91_boot_soc.init(); |