rockchip: misc: read cpuid either from efuse or otp
authorHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Wed, 25 Sep 2019 18:21:21 +0000 (20:21 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Sun, 17 Nov 2019 09:23:18 +0000 (17:23 +0800)
commite61350a5f5f711fc4427bb1303c54d853db941e0
treef77e3bde0f5a5192337f1740cea2b445fc95357e
parenta907dc3f25fa90becb4202c7cf973b4fc5abaa1b
rockchip: misc: read cpuid either from efuse or otp

Newer Rockchip socs use a different ip block to handle one-time-
programmable memory, so depending on what got enabled get the cpuid
from either source.

Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/misc.c