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>
This commit is contained in:
committed by
Jagan Teki
parent
4cf5c5f1e6
commit
65d2d4f239
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user