]> git.baikalelectronics.ru Git - uboot.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)
commit6bede08dc53b6e09ac4602b9ffef2c094893afaf
tree5509f90ba199daa8980829e232979b7b089515a9
parent3d54d3503468ac8f5f1e95dacc7b322bbddd51db
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