From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Jernej Skrabec Date: Sat, 16 Oct 2021 21:26:41 +0200 Subject: drv:soc: sunxi: sram: Add SRAM C1 H616 handling Signed-off-by: Jernej Skrabec --- 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 4458b2e0562b..9e65d8dfe355 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, + }, {} }; -- Armbian