summaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorIcenowy Zheng <icenowy@aosc.xyz>2016-12-20 02:03:36 +0800
committerJagan Teki <jagan@amarulasolutions.com>2016-12-20 16:08:50 +0100
commit65d2d4f239b3f0dfb195b8ccb9e076d6eeeebd37 (patch)
tree5509f90ba199daa8980829e232979b7b089515a9 /arch/arm/include
parent4cf5c5f1e60e6541630ae829b5fa2db704c268f0 (diff)
downloadu-boot-imx-65d2d4f239b3f0dfb195b8ccb9e076d6eeeebd37.zip
u-boot-imx-65d2d4f239b3f0dfb195b8ccb9e076d6eeeebd37.tar.gz
u-boot-imx-65d2d4f239b3f0dfb195b8ccb9e076d6eeeebd37.tar.bz2
sunxi: fix SID read on H3
H3 SID controller has some bug, which makes the initial SID value at SUNXI_SID_BASE wrong when boot. Change the SID retrieve code to call the SID Controller directly on H3, which can get the correct value, and also fix the SID value at SUNXI_SID_BASE, so that it can be used by further operations. Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/arch-sunxi/cpu_sun4i.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h b/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h
index 7232f6d..3c85222 100644
--- a/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h
+++ b/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h
@@ -97,6 +97,7 @@
#if defined(CONFIG_MACH_SUN8I_A83T) || defined(CONFIG_MACH_SUN8I_H3) || \
defined(CONFIG_MACH_SUN50I)
/* SID address space starts at 0x01c1400, but e-fuse is at offset 0x200 */
+#define SUNXI_SIDC_BASE 0x01c14000
#define SUNXI_SID_BASE 0x01c14200
#else
#define SUNXI_SID_BASE 0x01c23800