]> git.sur5r.net Git - u-boot/commitdiff
sunxi: Add base address for GIC
authorChen-Yu Tsai <wens@csie.org>
Tue, 7 Jun 2016 02:54:33 +0000 (10:54 +0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 20 Jun 2016 20:44:00 +0000 (22:44 +0200)
Instead of hardcoding the GIC addresses in the PSCI implementation,
provide a base address in the cpu header.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/cpu/armv7/sunxi/psci_sun6i.S
arch/arm/cpu/armv7/sunxi/psci_sun7i.S
arch/arm/include/asm/arch-sunxi/cpu_sun4i.h

index 9752550dea35f226015c016f992d17c5d8d5233f..95fdb0e58874a55d1619a352523f8c537379b6a8 100644 (file)
@@ -42,8 +42,8 @@
 
 #define        ONE_MS                  (CONFIG_TIMER_CLK_FREQ / 1000)
 #define        TEN_MS                  (10 * ONE_MS)
-#define        GICD_BASE               0x1c81000
-#define        GICC_BASE               0x1c82000
+#define        GICD_BASE               (SUNXI_GIC400_BASE +  0x1000)
+#define        GICC_BASE               (SUNXI_GIC400_BASE +  0x2000)
 
 .globl psci_fiq_enter
 psci_fiq_enter:
index ac8ebf888a4a65299dc64f6a0c5de6fd69dea4b8..87bbd725f0b3f14026bac15b0a00abe0c381baa3 100644 (file)
@@ -42,8 +42,8 @@
 
 #define        ONE_MS                  (CONFIG_TIMER_CLK_FREQ / 1000)
 #define        TEN_MS                  (10 * ONE_MS)
-#define        GICD_BASE               0x1c81000
-#define        GICC_BASE               0x1c82000
+#define        GICD_BASE               (SUNXI_GIC400_BASE +  0x1000)
+#define        GICC_BASE               (SUNXI_GIC400_BASE +  0x2000)
 
 .globl psci_fiq_enter
 psci_fiq_enter:
index 47e327e71f84026442b39f3fdf57e40538e3b5de..c5e9d88bab5c974ce040a5555fd676dbd0860f48 100644 (file)
 #define SUNXI_DRAM_PHY0_BASE           0x01c65000
 #define SUNXI_DRAM_PHY1_BASE           0x01c66000
 
+#define SUNXI_GIC400_BASE              0x01c80000
+
 /* module sram */
 #define SUNXI_SRAM_C_BASE              0x01d00000