diff options
Diffstat (limited to 'arch/arm/mach-mvebu/board-v7.c')
-rw-r--r-- | arch/arm/mach-mvebu/board-v7.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-mvebu/board-v7.c b/arch/arm/mach-mvebu/board-v7.c index f244622ffc00..6478626e3ff6 100644 --- a/arch/arm/mach-mvebu/board-v7.c +++ b/arch/arm/mach-mvebu/board-v7.c | |||
@@ -34,14 +34,14 @@ | |||
34 | #include "coherency.h" | 34 | #include "coherency.h" |
35 | #include "mvebu-soc-id.h" | 35 | #include "mvebu-soc-id.h" |
36 | 36 | ||
37 | static void __iomem *scu_base; | ||
38 | |||
37 | /* | 39 | /* |
38 | * Enables the SCU when available. Obviously, this is only useful on | 40 | * Enables the SCU when available. Obviously, this is only useful on |
39 | * Cortex-A based SOCs, not on PJ4B based ones. | 41 | * Cortex-A based SOCs, not on PJ4B based ones. |
40 | */ | 42 | */ |
41 | static void __init mvebu_scu_enable(void) | 43 | static void __init mvebu_scu_enable(void) |
42 | { | 44 | { |
43 | void __iomem *scu_base; | ||
44 | |||
45 | struct device_node *np = | 45 | struct device_node *np = |
46 | of_find_compatible_node(NULL, NULL, "arm,cortex-a9-scu"); | 46 | of_find_compatible_node(NULL, NULL, "arm,cortex-a9-scu"); |
47 | if (np) { | 47 | if (np) { |
@@ -51,6 +51,11 @@ static void __init mvebu_scu_enable(void) | |||
51 | } | 51 | } |
52 | } | 52 | } |
53 | 53 | ||
54 | void __iomem *mvebu_get_scu_base(void) | ||
55 | { | ||
56 | return scu_base; | ||
57 | } | ||
58 | |||
54 | /* | 59 | /* |
55 | * Early versions of Armada 375 SoC have a bug where the BootROM | 60 | * Early versions of Armada 375 SoC have a bug where the BootROM |
56 | * leaves an external data abort pending. The kernel is hit by this | 61 | * leaves an external data abort pending. The kernel is hit by this |