Merge git://git.denx.de/u-boot-fsl-qoriq
[oweals/u-boot.git] / arch / arm / mach-rmobile / cpu_info-rcar.c
index b443611cbb33181530ca3ff4aa86f5730c0ba0bd..ccb7a32ac4386942153a47a0490cbf70a97f547b 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c
  *
  * Copyright (C) 2013,2014 Renesas Electronics Corporation
- *
- * SPDX-License-Identifier: GPL-2.0
  */
 #include <common.h>
 #include <asm/io.h>
@@ -75,7 +74,7 @@ static u32 rmobile_get_prr(void)
                hang();
        }
 
-       return readl(map->base);
+       return readl(map->ranges[0].start);
 }
 
 static const struct udevice_id renesas_prr_ids[] = {