public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] sunxi: Support SID e-fuses on A83T and H3
@ 2016-01-27  8:34 Chen-Yu Tsai
  2016-01-27  8:34 ` [U-Boot] [PATCH] sunxi: Add support for Cubietruck Plus Chen-Yu Tsai
  2016-03-16 13:10 ` [U-Boot] sunxi: Support SID e-fuses on A83T and H3 Hans de Goede
  0 siblings, 2 replies; 6+ messages in thread
From: Chen-Yu Tsai @ 2016-01-27  8:34 UTC (permalink / raw)
  To: u-boot

On the A83T and H3, the SID block is at a different address.
Furthurmore, the e-fuses are at an offset of 0x200 within the
hardware's address space.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
 arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h b/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h
index 0cdefdc..f797649 100644
--- a/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h
+++ b/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h
@@ -74,7 +74,14 @@
 #define SUNXI_AD_DA_BASE		0x01c22c00
 #define SUNXI_KEYPAD_BASE		0x01c23000
 #define SUNXI_TZPC_BASE			0x01c23400
+
+#if defined(CONFIG_MACH_SUN8I_A83T) || defined(CONFIG_MACH_SUN8I_H3)
+/* SID address space starts at 0x01c1400, but e-fuse is at offset 0x200 */
+#define SUNXI_SID_BASE			0x01c14200
+#else
 #define SUNXI_SID_BASE			0x01c23800
+#endif
+
 #define SUNXI_SJTAG_BASE		0x01c23c00
 
 #define SUNXI_TP_BASE			0x01c25000
-- 
2.7.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-03-20 13:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-27  8:34 [U-Boot] [PATCH] sunxi: Support SID e-fuses on A83T and H3 Chen-Yu Tsai
2016-01-27  8:34 ` [U-Boot] [PATCH] sunxi: Add support for Cubietruck Plus Chen-Yu Tsai
2016-03-19 22:43   ` Dennis Gilmore
2016-03-19 23:34     ` Dennis Gilmore
2016-03-20 13:47     ` [U-Boot] [linux-sunxi] " Hans de Goede
2016-03-16 13:10 ` [U-Boot] sunxi: Support SID e-fuses on A83T and H3 Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox