42 lines
1.3 KiB
Diff
42 lines
1.3 KiB
Diff
From 4623efd8d12b8f7527b23abd96c03a2e86222c3b Mon Sep 17 00:00:00 2001
|
|
From: Jernej Skrabec <jernej.skrabec@gmail.com>
|
|
Date: Sat, 16 Oct 2021 21:26:41 +0200
|
|
Subject: [PATCH 041/101] drv:soc: sunxi: sram: Add SRAM C1 H616 handling
|
|
|
|
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
|
|
---
|
|
drivers/soc/sunxi/sunxi_sram.c | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c
|
|
index 42833e33a..7b1f35d0e 100644
|
|
--- a/drivers/soc/sunxi/sunxi_sram.c
|
|
+++ b/drivers/soc/sunxi/sunxi_sram.c
|
|
@@ -70,6 +70,12 @@ static struct sunxi_sram_desc sun4i_a10_sram_c1 = {
|
|
SUNXI_SRAM_MAP(0x7fffffff, 1, "ve")),
|
|
};
|
|
|
|
+static struct sunxi_sram_desc sun50i_h616_sram_c1 = {
|
|
+ .data = SUNXI_SRAM_DATA("C1", 0x0, 0x0, 31,
|
|
+ SUNXI_SRAM_MAP(0x7fffffff, 0, "cpu"),
|
|
+ SUNXI_SRAM_MAP(0, 1, "ve")),
|
|
+};
|
|
+
|
|
static struct sunxi_sram_desc sun4i_a10_sram_d = {
|
|
.data = SUNXI_SRAM_DATA("D", 0x4, 0x0, 1,
|
|
SUNXI_SRAM_MAP(0, 0, "cpu"),
|
|
@@ -99,6 +105,10 @@ static const struct of_device_id sunxi_sram_dt_ids[] = {
|
|
.compatible = "allwinner,sun50i-a64-sram-c",
|
|
.data = &sun50i_a64_sram_c.data,
|
|
},
|
|
+ {
|
|
+ .compatible = "allwinner,sun50i-h616-sram-c1",
|
|
+ .data = &sun50i_h616_sram_c1.data,
|
|
+ },
|
|
{}
|
|
};
|
|
|
|
--
|
|
2.31.1
|
|
|