diff options
author | Oliver Brown <oliver.brown@nxp.com> | 2017-08-15 22:09:17 -0500 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2017-11-03 02:37:09 +0800 |
commit | d2a18d73075a380ab24e722e8d70de692a030758 (patch) | |
tree | 0f570b655f498e7266eb4ab0682aa957ee94a62d /board | |
parent | c8dac8ea2f07c4fb358b824365a1d345bab017fc (diff) |
MLK-16195: Add support for Mini SAS display boards
Added GPIOs to enable the Mini SAS display boards at startup.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/imx8qm_arm2/imx8qm_arm2.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/freescale/imx8qm_arm2/imx8qm_arm2.c b/board/freescale/imx8qm_arm2/imx8qm_arm2.c index 0c60ff01f7..113bf71a52 100644 --- a/board/freescale/imx8qm_arm2/imx8qm_arm2.c +++ b/board/freescale/imx8qm_arm2/imx8qm_arm2.c @@ -386,10 +386,14 @@ static int setup_fec(int ind) #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) 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), }; @@ -404,6 +408,14 @@ static void board_gpio_init(void) /* 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); } #endif |