]> git.sur5r.net Git - u-boot/commitdiff
sunxi: Add support for SID e-fuses on sun9i
authorChen-Yu Tsai <wens@csie.org>
Fri, 28 Oct 2016 10:21:35 +0000 (18:21 +0800)
committerHans de Goede <hdegoede@redhat.com>
Sun, 30 Oct 2016 10:38:04 +0000 (11:38 +0100)
The A80 has SID e-fuses. Like other newer SoCs, the actual e-fuses
are at an offset of 0x200 within the SID address space.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/include/asm/arch-sunxi/cpu_sun9i.h

index ba18a0f551ad8cc56e798566800deb1acff33ed9..c775bcc515a0a269dfc36b9ce8fa5f91a6aef3ce 100644 (file)
@@ -24,6 +24,8 @@
 #define SUNXI_TSC_BASE                 (REGS_AHB0_BASE + 0x4000)
 
 #define SUNXI_GTBUS_BASE               (REGS_AHB0_BASE + 0x9000)
+/* SID address space starts at 0x01ce000, but e-fuse is at offset 0x200 */
+#define SUNXI_SID_BASE                 (REGS_AHB0_BASE + 0xe200)
 
 #define SUNXI_MMC0_BASE                        (REGS_AHB0_BASE + 0x0f000)
 #define SUNXI_MMC1_BASE                        (REGS_AHB0_BASE + 0x10000)