Commit cd355a5f authored by Ye Li's avatar Ye Li Committed by Jason Liu
Browse files

MLK-16021 imx8qxp_arm2: Enable base board 1.8v power



Setup the BB_PWR_EN GPIO to high to enable the 1.8v power on base board.
Signed-off-by: default avatarYe Li <ye.li@nxp.com>
parent 42ea0cff
......@@ -462,10 +462,12 @@ void board_fspi_init(void)
#define DEBUG_LED IMX_GPIO_NR(3, 23)
#define IOEXP_RESET IMX_GPIO_NR(0, 19)
#define BB_PWR_EN IMX_GPIO_NR(5, 9)
static iomux_cfg_t board_gpios[] = {
SC_P_QSPI0B_SS0_B | MUX_MODE_ALT(4) | MUX_PAD_CTRL(GPIO_PAD_CTRL),
SC_P_MCLK_IN0 | MUX_MODE_ALT(4) | MUX_PAD_CTRL(GPIO_PAD_CTRL),
SC_P_ENET0_REFCLK_125M_25M | MUX_MODE_ALT(4) | MUX_PAD_CTRL(GPIO_PAD_CTRL),
};
static void setup_gpio(void)
......@@ -496,6 +498,10 @@ 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 base board 1.8V power */
gpio_request(BB_PWR_EN, "bb_pwr_en");
gpio_direction_output(BB_PWR_EN, 1);
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment