]> git.baikalelectronics.ru Git - kernel.git/commitdiff
soc: sunxi: sram: Fix debugfs info for A64 SRAM C
authorSamuel Holland <samuel@sholland.org>
Mon, 15 Aug 2022 04:12:43 +0000 (23:12 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Oct 2022 08:37:44 +0000 (10:37 +0200)
[ Upstream commit 2894e5a8e2c5b5c02359128090e322f36714b510 ]

The labels were backward with respect to the register values. The SRAM
is mapped to the CPU when the register value is 1.

Fixes: 921171568a61 ("drivers: soc: sunxi: add support for A64 and its SRAM C")
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20220815041248.53268-7-samuel@sholland.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/sunxi/sunxi_sram.c

index 08fe49b766bd2055769b1cb381c838230afeef61..33139c7817c20940b8d427904e40913407b68eb3 100644 (file)
@@ -78,8 +78,8 @@ static struct sunxi_sram_desc sun4i_a10_sram_d = {
 
 static struct sunxi_sram_desc sun50i_a64_sram_c = {
        .data   = SUNXI_SRAM_DATA("C", 0x4, 24, 1,
-                                 SUNXI_SRAM_MAP(0, 1, "cpu"),
-                                 SUNXI_SRAM_MAP(1, 0, "de2")),
+                                 SUNXI_SRAM_MAP(1, 0, "cpu"),
+                                 SUNXI_SRAM_MAP(0, 1, "de2")),
 };
 
 static const struct of_device_id sunxi_sram_dt_ids[] = {