diff options
| -rw-r--r-- | Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt | 1 | ||||
| -rw-r--r-- | drivers/nvmem/sunxi_sid.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt b/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt index ef06d061913c..6ea0836939ee 100644 --- a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt +++ b/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt | |||
| @@ -5,6 +5,7 @@ Required properties: | |||
| 5 | "allwinner,sun4i-a10-sid" | 5 | "allwinner,sun4i-a10-sid" |
| 6 | "allwinner,sun7i-a20-sid" | 6 | "allwinner,sun7i-a20-sid" |
| 7 | "allwinner,sun8i-h3-sid" | 7 | "allwinner,sun8i-h3-sid" |
| 8 | "allwinner,sun50i-a64-sid" | ||
| 8 | 9 | ||
| 9 | - reg: Should contain registers location and length | 10 | - reg: Should contain registers location and length |
| 10 | 11 | ||
diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index 1c3b5cf89212..99bd54d85fcb 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c | |||
| @@ -198,10 +198,16 @@ static const struct sunxi_sid_cfg sun8i_h3_cfg = { | |||
| 198 | .need_register_readout = true, | 198 | .need_register_readout = true, |
| 199 | }; | 199 | }; |
| 200 | 200 | ||
| 201 | static const struct sunxi_sid_cfg sun50i_a64_cfg = { | ||
| 202 | .value_offset = 0x200, | ||
| 203 | .size = 0x100, | ||
| 204 | }; | ||
| 205 | |||
| 201 | static const struct of_device_id sunxi_sid_of_match[] = { | 206 | static const struct of_device_id sunxi_sid_of_match[] = { |
| 202 | { .compatible = "allwinner,sun4i-a10-sid", .data = &sun4i_a10_cfg }, | 207 | { .compatible = "allwinner,sun4i-a10-sid", .data = &sun4i_a10_cfg }, |
| 203 | { .compatible = "allwinner,sun7i-a20-sid", .data = &sun7i_a20_cfg }, | 208 | { .compatible = "allwinner,sun7i-a20-sid", .data = &sun7i_a20_cfg }, |
| 204 | { .compatible = "allwinner,sun8i-h3-sid", .data = &sun8i_h3_cfg }, | 209 | { .compatible = "allwinner,sun8i-h3-sid", .data = &sun8i_h3_cfg }, |
| 210 | { .compatible = "allwinner,sun50i-a64-sid", .data = &sun50i_a64_cfg }, | ||
| 205 | {/* sentinel */}, | 211 | {/* sentinel */}, |
| 206 | }; | 212 | }; |
| 207 | MODULE_DEVICE_TABLE(of, sunxi_sid_of_match); | 213 | MODULE_DEVICE_TABLE(of, sunxi_sid_of_match); |
