[PATCH] ram: renesas: dbsc: Use macro in renesas_dbsc5_board_config channel count
Marek Vasut
marek.vasut+renesas at mailbox.org
Tue Mar 17 01:33:54 CET 2026
Use DRAM_CH_CNT macro in renesas_dbsc5_board_config channel count.
The macro is defined in the same file a few lines above. This way,
the maximum channel count in the structure and the macro can not
diverge.
Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
---
Cc: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
Cc: Tom Rini <trini at konsulko.com>
Cc: u-boot at lists.denx.de
---
include/dbsc5.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/dbsc5.h b/include/dbsc5.h
index cec937d89e7..b9b8703141a 100644
--- a/include/dbsc5.h
+++ b/include/dbsc5.h
@@ -50,7 +50,7 @@ struct renesas_dbsc5_board_config {
u8 bdcfg_dm_swap[SLICE_CNT];
/* SoC ckeX([1][0]) -> MEM csY */
u8 bdcfg_cs_swap;
- } ch[4];
+ } ch[DRAM_CH_CNT];
};
#endif /* __INCLUDE_DBSC5_H__ */
--
2.51.0
More information about the U-Boot
mailing list