global: Migrate CONFIG_PCIE_IMX_POWER_GPIO to CFG
authorTom Rini <trini@konsulko.com>
Sun, 4 Dec 2022 15:13:26 +0000 (10:13 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 23 Dec 2022 15:14:51 +0000 (10:14 -0500)
Perform a simple rename of CONFIG_PCIE_IMX_POWER_GPIO to CFG_PCIE_IMX_POWER_GPIO

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/pci/pcie_imx.c
include/configs/mx6sabresd.h
include/configs/mx6sxsabresd.h
include/configs/novena.h

index 902507a..da48466 100644 (file)
@@ -534,13 +534,13 @@ static int imx6_pcie_init_phy(void)
 
 int imx6_pcie_toggle_power(struct udevice *vpcie)
 {
-#ifdef CONFIG_PCIE_IMX_POWER_GPIO
-       gpio_request(CONFIG_PCIE_IMX_POWER_GPIO, "pcie_power");
-       gpio_direction_output(CONFIG_PCIE_IMX_POWER_GPIO, 0);
+#ifdef CFG_PCIE_IMX_POWER_GPIO
+       gpio_request(CFG_PCIE_IMX_POWER_GPIO, "pcie_power");
+       gpio_direction_output(CFG_PCIE_IMX_POWER_GPIO, 0);
        mdelay(20);
-       gpio_set_value(CONFIG_PCIE_IMX_POWER_GPIO, 1);
+       gpio_set_value(CFG_PCIE_IMX_POWER_GPIO, 1);
        mdelay(20);
-       gpio_free(CONFIG_PCIE_IMX_POWER_GPIO);
+       gpio_free(CFG_PCIE_IMX_POWER_GPIO);
 #endif
 
 #if CONFIG_IS_ENABLED(DM_REGULATOR)
index 116a9c6..1aa8a56 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifdef CONFIG_CMD_PCI
 #define CFG_PCIE_IMX_PERST_GPIO        IMX_GPIO_NR(7, 12)
-#define CONFIG_PCIE_IMX_POWER_GPIO     IMX_GPIO_NR(3, 19)
+#define CFG_PCIE_IMX_POWER_GPIO        IMX_GPIO_NR(3, 19)
 #endif
 
 /* PMIC */
index 85e5cfb..fe0ad34 100644 (file)
 
 #ifdef CONFIG_CMD_PCI
 #define CFG_PCIE_IMX_PERST_GPIO        IMX_GPIO_NR(2, 0)
-#define CONFIG_PCIE_IMX_POWER_GPIO     IMX_GPIO_NR(2, 1)
+#define CFG_PCIE_IMX_POWER_GPIO        IMX_GPIO_NR(2, 1)
 #endif
 
 #define MXS_LCDIF_BASE MX6SX_LCDIF1_BASE_ADDR
index 6f4353e..5e8b7fa 100644 (file)
@@ -42,7 +42,7 @@
 /* PCI express */
 #ifdef CONFIG_CMD_PCI
 #define CFG_PCIE_IMX_PERST_GPIO        IMX_GPIO_NR(3, 29)
-#define CONFIG_PCIE_IMX_POWER_GPIO     IMX_GPIO_NR(7, 12)
+#define CFG_PCIE_IMX_POWER_GPIO        IMX_GPIO_NR(7, 12)
 #endif
 
 /* PMIC */