[PoC 141/241] global: Migrate CONFIG_PCIE_IMX_PERST_GPIO to CFG
Tom Rini
trini at konsulko.com
Sun Nov 20 15:07:31 CET 2022
Signed-off-by: Tom Rini <trini at konsulko.com>
---
drivers/pci/pcie_imx.c | 12 ++++++------
include/configs/mx6sabresd.h | 2 +-
include/configs/mx6sxsabresd.h | 2 +-
include/configs/novena.h | 2 +-
include/configs/tbs2910.h | 2 +-
include/configs/vining_2000.h | 2 +-
scripts/config_whitelist.txt | 2 +-
7 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/drivers/pci/pcie_imx.c b/drivers/pci/pcie_imx.c
index 46ac01713ff7..902507aaae38 100644
--- a/drivers/pci/pcie_imx.c
+++ b/drivers/pci/pcie_imx.c
@@ -566,7 +566,7 @@ int imx6_pcie_toggle_reset(struct gpio_desc *gpio, bool active_high)
* do self-initialisation.
*
* In case your #PERST pin is connected to a plain GPIO pin of the
- * CPU, you can define CONFIG_PCIE_IMX_PERST_GPIO in your board's
+ * CPU, you can define CFG_PCIE_IMX_PERST_GPIO in your board's
* configuration file and the condition below will handle the rest
* of the reset toggling.
*
@@ -578,13 +578,13 @@ int imx6_pcie_toggle_reset(struct gpio_desc *gpio, bool active_high)
* Linux at all in the first place since it's in some non-reset
* state due to being previously used in U-Boot.
*/
-#ifdef CONFIG_PCIE_IMX_PERST_GPIO
- gpio_request(CONFIG_PCIE_IMX_PERST_GPIO, "pcie_reset");
- gpio_direction_output(CONFIG_PCIE_IMX_PERST_GPIO, 0);
+#ifdef CFG_PCIE_IMX_PERST_GPIO
+ gpio_request(CFG_PCIE_IMX_PERST_GPIO, "pcie_reset");
+ gpio_direction_output(CFG_PCIE_IMX_PERST_GPIO, 0);
mdelay(20);
- gpio_set_value(CONFIG_PCIE_IMX_PERST_GPIO, 1);
+ gpio_set_value(CFG_PCIE_IMX_PERST_GPIO, 1);
mdelay(20);
- gpio_free(CONFIG_PCIE_IMX_PERST_GPIO);
+ gpio_free(CFG_PCIE_IMX_PERST_GPIO);
#else
if (dm_gpio_is_valid(gpio)) {
/* Assert PERST# for 20ms then de-assert */
diff --git a/include/configs/mx6sabresd.h b/include/configs/mx6sabresd.h
index 2b028e3aa2b1..116a9c6abcf3 100644
--- a/include/configs/mx6sabresd.h
+++ b/include/configs/mx6sabresd.h
@@ -20,7 +20,7 @@
#define CFG_SYS_FSL_USDHC_NUM 3
#ifdef CONFIG_CMD_PCI
-#define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(7, 12)
+#define CFG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(7, 12)
#define CONFIG_PCIE_IMX_POWER_GPIO IMX_GPIO_NR(3, 19)
#endif
diff --git a/include/configs/mx6sxsabresd.h b/include/configs/mx6sxsabresd.h
index 8b02c3b63101..85e5cfbb58db 100644
--- a/include/configs/mx6sxsabresd.h
+++ b/include/configs/mx6sxsabresd.h
@@ -123,7 +123,7 @@
#endif
#ifdef CONFIG_CMD_PCI
-#define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(2, 0)
+#define CFG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(2, 0)
#define CONFIG_PCIE_IMX_POWER_GPIO IMX_GPIO_NR(2, 1)
#endif
diff --git a/include/configs/novena.h b/include/configs/novena.h
index 5176c6d1c48c..1c695159dd8b 100644
--- a/include/configs/novena.h
+++ b/include/configs/novena.h
@@ -45,7 +45,7 @@
/* PCI express */
#ifdef CONFIG_CMD_PCI
-#define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(3, 29)
+#define CFG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(3, 29)
#define CONFIG_PCIE_IMX_POWER_GPIO IMX_GPIO_NR(7, 12)
#endif
diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h
index 1e22ecfdc556..7debc90205a8 100644
--- a/include/configs/tbs2910.h
+++ b/include/configs/tbs2910.h
@@ -22,7 +22,7 @@
/* PCI */
#ifdef CONFIG_CMD_PCI
-#define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(7, 12)
+#define CFG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(7, 12)
#endif
/* USB */
diff --git a/include/configs/vining_2000.h b/include/configs/vining_2000.h
index 6db68c1e7001..7bfc22c043fe 100644
--- a/include/configs/vining_2000.h
+++ b/include/configs/vining_2000.h
@@ -40,7 +40,7 @@
#define CFG_MXC_USB_FLAGS 0
#ifdef CONFIG_CMD_PCI
-#define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(4, 6)
+#define CFG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(4, 6)
#endif
#define CFG_IMX6_PWM_PER_CLK 66000000
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index cb85e39ad2cd..392756572f81 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -150,7 +150,7 @@ CFG_NUM_DSP_CPUS
CFG_ODROID_REV_AIN
CFG_OTHBOOTARGS
CFG_OVERWRITE_ETHADDR_ONCE
-CONFIG_PCIE_IMX_PERST_GPIO
+CFG_PCIE_IMX_PERST_GPIO
CONFIG_PCIE_IMX_POWER_GPIO
CONFIG_PEN_ADDR_BIG_ENDIAN
CONFIG_PHY_BASE_ADR
--
2.25.1
More information about the U-Boot
mailing list