nvmem: sunxi_sid: Support SID on H6
authorYangtao Li <tiny.windzz@gmail.com>
Sat, 13 Apr 2019 10:33:05 +0000 (11:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2019 17:43:13 +0000 (19:43 +0200)
Add support for H6's SID controller. It supports 4K-bit
EFUSE, bigger than before.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/sunxi_sid.c

index 7013f9cc43c7a42c8f4f4e4e15c86d6615cb6937..a079a80ddf2cc75cff1a2fa984b54562b0a52025 100644 (file)
@@ -188,6 +188,11 @@ static const struct sunxi_sid_cfg sun50i_a64_cfg = {
        .size = 0x100,
 };
 
+static const struct sunxi_sid_cfg sun50i_h6_cfg = {
+       .value_offset = 0x200,
+       .size = 0x200,
+};
+
 static const struct of_device_id sunxi_sid_of_match[] = {
        { .compatible = "allwinner,sun4i-a10-sid", .data = &sun4i_a10_cfg },
        { .compatible = "allwinner,sun7i-a20-sid", .data = &sun7i_a20_cfg },
@@ -195,6 +200,7 @@ static const struct of_device_id sunxi_sid_of_match[] = {
        { .compatible = "allwinner,sun8i-h3-sid", .data = &sun8i_h3_cfg },
        { .compatible = "allwinner,sun50i-a64-sid", .data = &sun50i_a64_cfg },
        { .compatible = "allwinner,sun50i-h5-sid", .data = &sun50i_a64_cfg },
+       { .compatible = "allwinner,sun50i-h6-sid", .data = &sun50i_h6_cfg },
        {/* sentinel */},
 };
 MODULE_DEVICE_TABLE(of, sunxi_sid_of_match);