Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: soc: sunxi: add support for A64 and its SRAM C

Allwinner A64's display engine claims the SRAM C section to work.

Add support for the A64 SRAM controller and the SRAM C section of it.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>

authored by

Icenowy Zheng and committed by
Chen-Yu Tsai
5e4fb642 8fed2ce9

+11
+11
drivers/soc/sunxi/sunxi_sram.c
··· 69 69 SUNXI_SRAM_MAP(1, 1, "usb-otg")), 70 70 }; 71 71 72 + static struct sunxi_sram_desc sun50i_a64_sram_c = { 73 + .data = SUNXI_SRAM_DATA("C", 0x4, 24, 1, 74 + SUNXI_SRAM_MAP(0, 1, "cpu"), 75 + SUNXI_SRAM_MAP(1, 0, "de2")), 76 + }; 77 + 72 78 static const struct of_device_id sunxi_sram_dt_ids[] = { 73 79 { 74 80 .compatible = "allwinner,sun4i-a10-sram-a3-a4", ··· 83 77 { 84 78 .compatible = "allwinner,sun4i-a10-sram-d", 85 79 .data = &sun4i_a10_sram_d.data, 80 + }, 81 + { 82 + .compatible = "allwinner,sun50i-a64-sram-c", 83 + .data = &sun50i_a64_sram_c.data, 86 84 }, 87 85 {} 88 86 }; ··· 305 295 306 296 static const struct of_device_id sunxi_sram_dt_match[] = { 307 297 { .compatible = "allwinner,sun4i-a10-sram-controller" }, 298 + { .compatible = "allwinner,sun50i-a64-sram-controller" }, 308 299 { }, 309 300 }; 310 301 MODULE_DEVICE_TABLE(of, sunxi_sram_dt_match);