From 75abf4f9e22ba2e1b1673e2d0e72c926ab6578f2 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 28 Dec 2017 16:14:03 +0100 Subject: apalis-imx8: remove unused GPIOs Remove GPIOs used on the validation board but not required on Apalis iMX8. Signed-off-by: Stefan Agner (cherry picked from commit 9a8a826591c490c0a11c4baeef31c73f482c0438) (cherry picked from commit adf5a30588c4352fc78c59b0d0c04fd43c6dad25) (cherry picked from commit b0cabfcfd6d5abd3f1a9d429acf3f44d5c76bb1d) --- board/toradex/apalis-imx8/apalis-imx8.c | 26 ++++---------------------- 1 file 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 -- cgit v1.2.3