]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
ram: renesas: dbsc: Use macro in renesas_dbsc5_board_config channel count
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 17 Mar 2026 00:33:54 +0000 (01:33 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 8 Apr 2026 17:35:05 +0000 (19:35 +0200)
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@mailbox.org>
include/dbsc5.h

index cec937d89e778c4883b1d78f980267a0e89f34c8..b9b8703141a1faa67f496a4f2527d6b668423c7b 100644 (file)
@@ -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__ */