]> git.ipfire.org Git - people/ms/u-boot.git/commit
sunxi: fix SID read on H3
authorIcenowy Zheng <icenowy@aosc.xyz>
Mon, 19 Dec 2016 18:03:36 +0000 (02:03 +0800)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 20 Dec 2016 15:08:50 +0000 (16:08 +0100)
commit65d2d4f239b3f0dfb195b8ccb9e076d6eeeebd37
tree5509f90ba199daa8980829e232979b7b089515a9
parent4cf5c5f1e60e6541630ae829b5fa2db704c268f0
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>
arch/arm/include/asm/arch-sunxi/cpu_sun4i.h
arch/arm/mach-sunxi/cpu_info.c