diff options
-rw-r--r-- | arch/arm/mach-ux500/db8500-regs.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-ux500/id.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-ux500/db8500-regs.h b/arch/arm/mach-ux500/db8500-regs.h index 1055c54caf78..27399553c841 100644 --- a/arch/arm/mach-ux500/db8500-regs.h +++ b/arch/arm/mach-ux500/db8500-regs.h | |||
@@ -183,7 +183,7 @@ | |||
183 | #define U8500_IO_VIRTUAL 0xf0000000 | 183 | #define U8500_IO_VIRTUAL 0xf0000000 |
184 | #define U8500_IO_PHYSICAL 0xa0000000 | 184 | #define U8500_IO_PHYSICAL 0xa0000000 |
185 | /* This is where we map in the ROM to check ASIC IDs */ | 185 | /* This is where we map in the ROM to check ASIC IDs */ |
186 | #define UX500_VIRT_ROM 0xf0000000 | 186 | #define UX500_VIRT_ROM IOMEM(0xf0000000) |
187 | 187 | ||
188 | /* This macro is used in assembly, so no cast */ | 188 | /* This macro is used in assembly, so no cast */ |
189 | #define IO_ADDRESS(x) \ | 189 | #define IO_ADDRESS(x) \ |
diff --git a/arch/arm/mach-ux500/id.c b/arch/arm/mach-ux500/id.c index 0d33d1a06955..392f2fdb37d0 100644 --- a/arch/arm/mach-ux500/id.c +++ b/arch/arm/mach-ux500/id.c | |||
@@ -21,11 +21,11 @@ | |||
21 | 21 | ||
22 | struct dbx500_asic_id dbx500_id; | 22 | struct dbx500_asic_id dbx500_id; |
23 | 23 | ||
24 | static unsigned int ux500_read_asicid(phys_addr_t addr) | 24 | static unsigned int __init ux500_read_asicid(phys_addr_t addr) |
25 | { | 25 | { |
26 | phys_addr_t base = addr & ~0xfff; | 26 | phys_addr_t base = addr & ~0xfff; |
27 | struct map_desc desc = { | 27 | struct map_desc desc = { |
28 | .virtual = UX500_VIRT_ROM, | 28 | .virtual = (unsigned long)UX500_VIRT_ROM, |
29 | .pfn = __phys_to_pfn(base), | 29 | .pfn = __phys_to_pfn(base), |
30 | .length = SZ_16K, | 30 | .length = SZ_16K, |
31 | .type = MT_DEVICE, | 31 | .type = MT_DEVICE, |
@@ -37,7 +37,7 @@ static unsigned int ux500_read_asicid(phys_addr_t addr) | |||
37 | local_flush_tlb_all(); | 37 | local_flush_tlb_all(); |
38 | flush_cache_all(); | 38 | flush_cache_all(); |
39 | 39 | ||
40 | return readl(IOMEM(UX500_VIRT_ROM + (addr & 0xfff))); | 40 | return readl(UX500_VIRT_ROM + (addr & 0xfff)); |
41 | } | 41 | } |
42 | 42 | ||
43 | static void ux500_print_soc_info(unsigned int asicid) | 43 | static void ux500_print_soc_info(unsigned int asicid) |