|
@@ -21,11 +21,11 @@
|
|
|
|
|
|
struct dbx500_asic_id dbx500_id;
|
|
|
|
|
|
-static unsigned int ux500_read_asicid(phys_addr_t addr)
|
|
|
+static unsigned int __init ux500_read_asicid(phys_addr_t addr)
|
|
|
{
|
|
|
phys_addr_t base = addr & ~0xfff;
|
|
|
struct map_desc desc = {
|
|
|
- .virtual = UX500_VIRT_ROM,
|
|
|
+ .virtual = (unsigned long)UX500_VIRT_ROM,
|
|
|
.pfn = __phys_to_pfn(base),
|
|
|
.length = SZ_16K,
|
|
|
.type = MT_DEVICE,
|
|
@@ -37,7 +37,7 @@ static unsigned int ux500_read_asicid(phys_addr_t addr)
|
|
|
local_flush_tlb_all();
|
|
|
flush_cache_all();
|
|
|
|
|
|
- return readl(IOMEM(UX500_VIRT_ROM + (addr & 0xfff)));
|
|
|
+ return readl(UX500_VIRT_ROM + (addr & 0xfff));
|
|
|
}
|
|
|
|
|
|
static void ux500_print_soc_info(unsigned int asicid)
|