nvmem: sunxi-sid: add support for H3's SID controller
authorIcenowy Zheng <icenowy@aosc.xyz>
Fri, 31 Mar 2017 12:44:48 +0000 (13:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 15:51:48 +0000 (17:51 +0200)
commit1a9636426b9f994d57dfe5a64e3f4644747a2e95
tree7f7b47253b29a169a9f21f82ee33f42822b71f74
parent4a72cda530f87ee0d96c4b79b9e1a865f7761659
nvmem: sunxi-sid: add support for H3's SID controller

The H3 SoC have a bigger SID controller, which has its direct read
address at 0x200 position in the SID block, not 0x0.

Also, H3 SID controller has some silicon bug that makes the direct read
value wrong at cold boot, add code to workaround the bug. (This bug has
already been fixed on A64 and later SoCs)

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt
drivers/nvmem/sunxi_sid.c