[PATCH 2/5] rockchip: sdram: remove redundant configuration checks
Aaron Griffith
aargri at gmail.com
Mon Dec 29 01:05:24 CET 2025
The new config option that enables this code guarantees
ROCKCHIP_EXTERNAL_TPL, and is implied by these four SoC configs,
making these checks redundant.
Signed-off-by: Aaron Griffith <aargri at gmail.com>
---
arch/arm/mach-rockchip/sdram.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/arch/arm/mach-rockchip/sdram.c b/arch/arm/mach-rockchip/sdram.c
index f549baaa8e7e0664029f37de012dd22dfe92b07f..2f39928bcbda2936fb4f079bbb72fa13f80af6c0 100644
--- a/arch/arm/mach-rockchip/sdram.c
+++ b/arch/arm/mach-rockchip/sdram.c
@@ -109,15 +109,6 @@ static int rockchip_dram_init_banksize(void)
u32 calc_hash;
u8 i, j;
- if (!IS_ENABLED(CONFIG_ROCKCHIP_RK3588) &&
- !IS_ENABLED(CONFIG_ROCKCHIP_RK3576) &&
- !IS_ENABLED(CONFIG_ROCKCHIP_RK3568) &&
- !IS_ENABLED(CONFIG_ROCKCHIP_RK3528))
- return -ENOTSUPP;
-
- if (!IS_ENABLED(CONFIG_ROCKCHIP_EXTERNAL_TPL))
- return -ENOTSUPP;
-
/* Find DDR_MEM tag */
while (addr < (u32 *)ATAGS_PHYS_END) {
tag_h = (const struct tag_header *)addr;
--
2.47.3
More information about the U-Boot
mailing list