diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2017-12-28 16:14:03 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2019-01-30 18:05:14 +0100 |
commit | 7d011b2762a335dc9af2aeacc28f72eea39cd898 (patch) | |
tree | d67e31f98db8fa9ccd247aec53e088d22ed946a2 /board | |
parent | 528b445a0b7ce82072fd28dd11c940fbc091972f (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)
(cherry picked from commit 75abf4f9e22ba2e1b1673e2d0e72c926ab6578f2)
Diffstat (limited to 'board')
-rw-r--r-- | board/toradex/apalis-imx8/apalis-imx8.c | 26 |
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 5cf7b09f695..d653539936a 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 |