Commit 11871890 authored by Linus Walleij's avatar Linus Walleij

mach-ux500: make PRCMU base address dynamic

This makes the PRCMU base address be selected at runtime for U8500
and U5500 instead of being compiled-in.
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 9f3c645c
...@@ -188,6 +188,8 @@ void __init u5500_map_io(void) ...@@ -188,6 +188,8 @@ void __init u5500_map_io(void)
ux500_map_io(); ux500_map_io();
iotable_init(u5500_io_desc, ARRAY_SIZE(u5500_io_desc)); iotable_init(u5500_io_desc, ARRAY_SIZE(u5500_io_desc));
_PRCMU_BASE = __io_address(U5500_PRCMU_BASE);
} }
static int usb_db5500_rx_dma_cfg[] = { static int usb_db5500_rx_dma_cfg[] = {
......
...@@ -87,6 +87,8 @@ void __init u8500_map_io(void) ...@@ -87,6 +87,8 @@ void __init u8500_map_io(void)
iotable_init(u8500_v1_io_desc, ARRAY_SIZE(u8500_v1_io_desc)); iotable_init(u8500_v1_io_desc, ARRAY_SIZE(u8500_v1_io_desc));
else if (cpu_is_u8500v2()) else if (cpu_is_u8500v2())
iotable_init(u8500_v2_io_desc, ARRAY_SIZE(u8500_v2_io_desc)); iotable_init(u8500_v2_io_desc, ARRAY_SIZE(u8500_v2_io_desc));
_PRCMU_BASE = __io_address(U8500_PRCMU_BASE);
} }
static struct resource db8500_pmu_resources[] = { static struct resource db8500_pmu_resources[] = {
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#include "clock.h" #include "clock.h"
void __iomem *_PRCMU_BASE;
#ifdef CONFIG_CACHE_L2X0 #ifdef CONFIG_CACHE_L2X0
static void __iomem *l2x0_base; static void __iomem *l2x0_base;
#endif #endif
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <mach/id.h> #include <mach/id.h>
extern void __iomem *_PRCMU_BASE;
#define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x) #define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x)
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#define _PRCMU_BASE IO_ADDRESS(U8500_PRCMU_BASE)
#define PRCM_ARM_PLLDIVPS (_PRCMU_BASE + 0x118) #define PRCM_ARM_PLLDIVPS (_PRCMU_BASE + 0x118)
#define PRCM_ARM_CHGCLKREQ (_PRCMU_BASE + 0x114) #define PRCM_ARM_CHGCLKREQ (_PRCMU_BASE + 0x114)
#define PRCM_PLLARM_ENABLE (_PRCMU_BASE + 0x98) #define PRCM_PLLARM_ENABLE (_PRCMU_BASE + 0x98)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment