summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-12-28 16:14:03 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2018-11-29 10:49:36 +0100
commit75abf4f9e22ba2e1b1673e2d0e72c926ab6578f2 (patch)
tree7e74881fe9602bb4d929066fd411b9c3b2179dcb
parentd58fa8f3247edc18bdbf716fa9a45bcf5fce9cb8 (diff)
apalis-imx8: remove unused GPIOs
Remove GPIOs used on the validation board but not required on Apalis iMX8. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 9a8a826591c490c0a11c4baeef31c73f482c0438) (cherry picked from commit adf5a30588c4352fc78c59b0d0c04fd43c6dad25) (cherry picked from commit b0cabfcfd6d5abd3f1a9d429acf3f44d5c76bb1d)
-rw-r--r--board/toradex/apalis-imx8/apalis-imx8.c26
1 files changed, 4 insertions, 22 deletions
diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis-imx8/apalis-imx8.c
index 5cf7b09f69..d653539936 100644
--- a/board/toradex/apalis-imx8/apalis-imx8.c
+++ b/board/toradex/apalis-imx8/apalis-imx8.c
@@ -227,36 +227,18 @@ int board_mmc_getcd(struct mmc *mmc)
#ifdef CONFIG_MXC_GPIO
-#define LVDS_ENABLE IMX_GPIO_NR(1, 6)
-#define MIPI_ENABLE IMX_GPIO_NR(1, 7)
-#define DEBUG_LED IMX_GPIO_NR(2, 15)
-#define IOEXP_RESET IMX_GPIO_NR(1, 12)
+#define BKL1_GPIO IMX_GPIO_NR(1, 10)
static iomux_cfg_t board_gpios[] = {
- SC_P_LVDS0_I2C0_SCL | MUX_MODE_ALT(3) | MUX_PAD_CTRL(GPIO_PAD_CTRL),
- SC_P_LVDS0_I2C0_SDA | MUX_MODE_ALT(3) | MUX_PAD_CTRL(GPIO_PAD_CTRL),
- SC_P_LVDS1_I2C0_SCL | MUX_MODE_ALT(3) | MUX_PAD_CTRL(GPIO_PAD_CTRL),
- SC_P_SPDIF0_TX | MUX_MODE_ALT(3) | MUX_PAD_CTRL(GPIO_PAD_CTRL),
+ SC_P_LVDS1_GPIO00 | MUX_MODE_ALT(3) | MUX_PAD_CTRL(GPIO_PAD_CTRL),
};
static void board_gpio_init(void)
{
imx8_iomux_setup_multiple_pads(board_gpios, ARRAY_SIZE(board_gpios));
- gpio_request(DEBUG_LED, "debug_led");
- gpio_direction_output(DEBUG_LED, 1);
-
- /* enable i2c port expander assert reset line */
- gpio_request(IOEXP_RESET, "ioexp_rst");
- gpio_direction_output(IOEXP_RESET, 1);
-
- /* enable LVDS SAS boards */
- gpio_request(LVDS_ENABLE, "lvds_enable");
- gpio_direction_output(LVDS_ENABLE, 1);
-
- /* enable MIPI SAS boards */
- gpio_request(MIPI_ENABLE, "mipi_enable");
- gpio_direction_output(MIPI_ENABLE, 1);
+ gpio_request(BKL1_GPIO, "BKL1_GPIO");
+ gpio_direction_output(BKL1_GPIO, 1);
}
#endif