]> git.baikalelectronics.ru Git - uboot.git/commitdiff
kmcoge5ne: Move BFTIC3 CONFIG references to their usage
authorTom Rini <trini@konsulko.com>
Sat, 25 Jun 2022 15:02:48 +0000 (11:02 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 7 Jul 2022 18:01:09 +0000 (14:01 -0400)
We only reference CONFIG_SYS_BFTIC3_BASE in one location.  Move the
comment to where we reference it, and use the value directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Holger Brunck <holger.brunck@hitachienergy.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
board/keymile/km83xx/km83xx.c
include/configs/kmcoge5ne.h

index ecc8c786b6b8482a18da1d9ad51229955d2476b2..8a0b1758566358fdd588e27cea8b6aff0a701bec 100644 (file)
@@ -102,8 +102,10 @@ int misc_init_r(void)
 int last_stage_init(void)
 {
 #if defined(CONFIG_TARGET_KMCOGE5NE)
-       struct bfticu_iomap *base =
-               (struct bfticu_iomap *)CONFIG_SYS_BFTIC3_BASE;
+       /*
+        * BFTIC3 on the local bus CS4
+        */
+       struct bfticu_iomap *base = (struct bfticu_iomap *)0xB0000000;
        u8 dip_switch = in_8((u8 *)&(base->mswitch)) & BFTICU_DIPSWITCH_MASK;
 
        if (dip_switch != 0) {
index 8f4685c271c61ef5f8fab63a43ca60d143a9a299..b9d20c9c8eb9938ef379559b561f70958918708f 100644 (file)
        CSCONFIG_ROW_BIT_13 | \
        CSCONFIG_COL_BIT_10)
 
-/*
- * BFTIC3 on the local bus CS4
- */
-#define CONFIG_SYS_BFTIC3_BASE                 0xB0000000
-#define CONFIG_SYS_BFTIC3_SIZE                 256
-
 /* enable POST tests */
 #define CONFIG_POST (CONFIG_SYS_POST_MEMORY|CONFIG_SYS_POST_MEM_REGIONS)
 #define CONFIG_POST_EXTERNAL_WORD_FUNCS /* use own functions, not generic */