]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
global: Migrate CONFIG_ENV_SROM_BANK to CFG
authorTom Rini <trini@konsulko.com>
Sun, 4 Dec 2022 15:03:46 +0000 (10:03 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 23 Dec 2022 15:07:04 +0000 (10:07 -0500)
Perform a simple rename of CONFIG_ENV_SROM_BANK to CFG_ENV_SROM_BANK

Signed-off-by: Tom Rini <trini@konsulko.com>
board/samsung/smdkc100/smdkc100.c
board/samsung/smdkv310/smdkv310.c
include/configs/exynos5-common.h
include/configs/smdkc100.h
include/configs/smdkv310.h

index b944e44c1ac44d18545419a4ccf20b548e9b550b..4f46911b0b4d928f830b6afce9db94c9d282859d 100644 (file)
@@ -25,16 +25,16 @@ static void smc9115_pre_init(void)
        u32 smc_bw_conf, smc_bc_conf;
 
        /* gpio configuration GPK0CON */
-       gpio_cfg_pin(S5PC100_GPIO_K00 + CONFIG_ENV_SROM_BANK, S5P_GPIO_FUNC(2));
+       gpio_cfg_pin(S5PC100_GPIO_K00 + CFG_ENV_SROM_BANK, S5P_GPIO_FUNC(2));
 
        /* Ethernet needs bus width of 16 bits */
-       smc_bw_conf = SMC_DATA16_WIDTH(CONFIG_ENV_SROM_BANK);
+       smc_bw_conf = SMC_DATA16_WIDTH(CFG_ENV_SROM_BANK);
        smc_bc_conf = SMC_BC_TACS(0x0) | SMC_BC_TCOS(0x4) | SMC_BC_TACC(0xe)
                        | SMC_BC_TCOH(0x1) | SMC_BC_TAH(0x4)
                        | SMC_BC_TACP(0x6) | SMC_BC_PMC(0x0);
 
        /* Select and configure the SROMC bank */
-       s5p_config_sromc(CONFIG_ENV_SROM_BANK, smc_bw_conf, smc_bc_conf);
+       s5p_config_sromc(CFG_ENV_SROM_BANK, smc_bw_conf, smc_bc_conf);
 }
 
 int board_init(void)
index bb61ba1f81c63d87b22a2648c4ee4a90914ad2ec..47483a26a622dc215e62d939019f67f03fc789ce 100644 (file)
@@ -24,17 +24,17 @@ static void smc9115_pre_init(void)
        u32 smc_bw_conf, smc_bc_conf;
 
        /* gpio configuration GPK0CON */
-       gpio_cfg_pin(EXYNOS4_GPIO_Y00 + CONFIG_ENV_SROM_BANK, S5P_GPIO_FUNC(2));
+       gpio_cfg_pin(EXYNOS4_GPIO_Y00 + CFG_ENV_SROM_BANK, S5P_GPIO_FUNC(2));
 
        /* Ethernet needs bus width of 16 bits */
-       smc_bw_conf = SROMC_DATA16_WIDTH(CONFIG_ENV_SROM_BANK);
+       smc_bw_conf = SROMC_DATA16_WIDTH(CFG_ENV_SROM_BANK);
        smc_bc_conf = SROMC_BC_TACS(0x0F) | SROMC_BC_TCOS(0x0F)
                        | SROMC_BC_TACC(0x0F) | SROMC_BC_TCOH(0x0F)
                        | SROMC_BC_TAH(0x0F)  | SROMC_BC_TACP(0x0F)
                        | SROMC_BC_PMC(0x0F);
 
        /* Select and configure the SROMC bank */
-       s5p_config_sromc(CONFIG_ENV_SROM_BANK, smc_bw_conf, smc_bc_conf);
+       s5p_config_sromc(CFG_ENV_SROM_BANK, smc_bw_conf, smc_bc_conf);
 }
 
 int board_init(void)
index 8e277ce7ff26eef2d417750205d7e83a19e15566..43ea34db7b6aebe9bdd2b015cbc4dd16c3898d43 100644 (file)
@@ -48,7 +48,7 @@
 
 /* Ethernet Controllor Driver */
 #ifdef CONFIG_CMD_NET
-#define CONFIG_ENV_SROM_BANK           1
+#define CFG_ENV_SROM_BANK              1
 #endif /*CONFIG_CMD_NET*/
 
 /* Enable Time Command */
index ffa1a1fcb0efa799f20fd4745f2db6c93cf817cc..ccb7ec38d033e82c1c72d58a908967030ed87295 100644 (file)
@@ -94,7 +94,7 @@
  * Ethernet Contoller driver
  */
 #ifdef CONFIG_CMD_NET
-#define CONFIG_ENV_SROM_BANK   3       /* Select SROM Bank-3 for Ethernet*/
+#define CFG_ENV_SROM_BANK   3       /* Select SROM Bank-3 for Ethernet*/
 #endif /* CONFIG_CMD_NET */
 
 #endif /* __CONFIG_H */
index 38de1fa9849fd5454e57f41b163a642c27a55d95..f0604195ad9420c902d0523dd008a464abc2e644 100644 (file)
@@ -36,7 +36,7 @@
 
 /* Ethernet Controllor Driver */
 #ifdef CONFIG_CMD_NET
-#define CONFIG_ENV_SROM_BANK           1
+#define CFG_ENV_SROM_BANK              1
 #endif /*CONFIG_CMD_NET*/
 
 #endif /* __CONFIG_H */