[PATCH 095/149] global: Migrate CONFIG_PCIE_IMX_POWER_GPIO to CFG
Tom Rini
trini at konsulko.com
Sun Dec 4 16:13:26 CET 2022
Perform a simple rename of CONFIG_PCIE_IMX_POWER_GPIO to CFG_PCIE_IMX_POWER_GPIO
Signed-off-by: Tom Rini <trini at konsulko.com>
---
drivers/pci/pcie_imx.c | 10 +++++-----
include/configs/mx6sabresd.h | 2 +-
include/configs/mx6sxsabresd.h | 2 +-
include/configs/novena.h | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/pci/pcie_imx.c b/drivers/pci/pcie_imx.c
index 902507aaae38..da48466480cb 100644
--- a/drivers/pci/pcie_imx.c
+++ b/drivers/pci/pcie_imx.c
@@ -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)
diff --git a/include/configs/mx6sabresd.h b/include/configs/mx6sabresd.h
index 116a9c6abcf3..1aa8a56cceb6 100644
--- a/include/configs/mx6sabresd.h
+++ b/include/configs/mx6sabresd.h
@@ -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 */
diff --git a/include/configs/mx6sxsabresd.h b/include/configs/mx6sxsabresd.h
index 85e5cfbb58db..fe0ad34ef9c1 100644
--- a/include/configs/mx6sxsabresd.h
+++ b/include/configs/mx6sxsabresd.h
@@ -124,7 +124,7 @@
#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
diff --git a/include/configs/novena.h b/include/configs/novena.h
index 6f4353e7df78..5e8b7fa62170 100644
--- a/include/configs/novena.h
+++ b/include/configs/novena.h
@@ -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 */
--
2.25.1
More information about the U-Boot
mailing list