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

soc: sunxi: sram: add entry for a523

The A523 has two Ethernet controllers. So in the system controller
address space, there are two registers for Ethernet clock delays,
one for each controller.

Add a new entry for the A523 system controller that allows access to
the second register.

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20250908181059.1785605-4-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>

+8
+8
drivers/soc/sunxi/sunxi_sram.c
··· 310 310 .has_ths_offset = true, 311 311 }; 312 312 313 + static const struct sunxi_sramc_variant sun55i_a523_sramc_variant = { 314 + .num_emac_clocks = 2, 315 + }; 316 + 313 317 #define SUNXI_SRAM_THS_OFFSET_REG 0x0 314 318 #define SUNXI_SRAM_EMAC_CLOCK_REG 0x30 315 319 #define SUNXI_SYS_LDO_CTRL_REG 0x150 ··· 433 429 { 434 430 .compatible = "allwinner,sun50i-h616-system-control", 435 431 .data = &sun50i_h616_sramc_variant, 432 + }, 433 + { 434 + .compatible = "allwinner,sun55i-a523-system-control", 435 + .data = &sun55i_a523_sramc_variant, 436 436 }, 437 437 { }, 438 438 };