summaryrefslogtreecommitdiff
path: root/board/toradex/apalis-imx8/apalis-imx8.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/toradex/apalis-imx8/apalis-imx8.c')
-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