suniv: add new target
[openwrt/staging/wigyori.git] / target / linux / suniv / patches-5.4 / 0001-series.patch
1 Allwinner ARMv5 F1C100s has similar sram controller to sun4i A10
2 Add compatible strings for it.
3
4 Signed-off-by: Mesih Kilinc <mesihkilinc@gmail.com>
5 Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
6 ---
7 drivers/soc/sunxi/sunxi_sram.c | 8 ++++++++
8 1 file changed, 8 insertions(+)
9
10 diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c
11 index b4b0f34..27f0607 100644
12 --- a/drivers/soc/sunxi/sunxi_sram.c
13 +++ b/drivers/soc/sunxi/sunxi_sram.c
14 @@ -99,6 +99,10 @@ static const struct of_device_id sunxi_sram_dt_ids[] = {
15 .compatible = "allwinner,sun50i-a64-sram-c",
16 .data = &sun50i_a64_sram_c.data,
17 },
18 + {
19 + .compatible = "allwinner,suniv-f1c100s-sram-d",
20 + .data = &sun4i_a10_sram_d.data,
21 + },
22 {}
23 };
24
25 @@ -389,6 +393,10 @@ static const struct of_device_id sunxi_sram_dt_match[] = {
26 .compatible = "allwinner,sun50i-a64-system-control",
27 .data = &sun50i_a64_sramc_variant,
28 },
29 + {
30 + .compatible = "allwinner,suniv-f1c100s-system-control",
31 + .data = &sun4i_a10_sramc_variant,
32 + },
33 { },
34 };
35 MODULE_DEVICE_TABLE(of, sunxi_sram_dt_match);
36
37 Allwinner ARMv5 F1C100s has similar watchdog timer to sun6i A31.
38 Add compatible string for it.
39
40 Signed-off-by: Mesih Kilinc <mesihkilinc@gmail.com>
41 ---
42 drivers/watchdog/sunxi_wdt.c | 1 +
43 1 file changed, 1 insertion(+)
44
45 diff --git a/drivers/watchdog/sunxi_wdt.c b/drivers/watchdog/sunxi_wdt.c
46 index c6c7365..bc70742 100644
47 --- a/drivers/watchdog/sunxi_wdt.c
48 +++ b/drivers/watchdog/sunxi_wdt.c
49 @@ -227,6 +227,7 @@ static const struct sunxi_wdt_reg sun6i_wdt_reg = {
50 static const struct of_device_id sunxi_wdt_dt_ids[] = {
51 { .compatible = "allwinner,sun4i-a10-wdt", .data = &sun4i_wdt_reg },
52 { .compatible = "allwinner,sun6i-a31-wdt", .data = &sun6i_wdt_reg },
53 + { .compatible = "allwinner,suniv-f1c100s-wdt", .data = &sun6i_wdt_reg },
54 { /* sentinel */ }
55 };
56 MODULE_DEVICE_TABLE(of, sunxi_wdt_dt_ids);
57