board/emcraft/imx8m_som/spl.c : set IMU INT as an input

parent f882d5a5
......@@ -192,9 +192,11 @@ int board_mmc_init(bd_t *bis)
#ifdef CONFIG_POWER
#define PWR_EN IMX_GPIO_NR(1, 8)
#define HAPTIC_nEN IMX_GPIO_NR(5, 4)
#define IMU_INT IMX_GPIO_NR(3, 19)
static iomux_v3_cfg_t const pwr_en_pads[] = {
IMX8MQ_PAD_GPIO1_IO08__GPIO1_IO8 | MUX_PAD_CTRL(PAD_CTL_DSE6 | PAD_CTL_FSEL1),
IMX8MQ_PAD_SPDIF_RX__GPIO5_IO4 | MUX_PAD_CTRL(PAD_CTL_DSE6 | PAD_CTL_FSEL1),
IMX8MQ_PAD_SAI5_RXFS__GPIO3_IO19 | MUX_PAD_CTRL(PAD_CTL_FSEL1),
};
/*
......@@ -282,6 +284,10 @@ int power_init_board(void)
imx_iomux_v3_setup_multiple_pads(pwr_en_pads, ARRAY_SIZE(pwr_en_pads));
/* set IMU_INT as input */
gpio_request(IMU_INT, "imu_int");
gpio_direction_input(IMU_INT);
gpio_request(PWR_EN, "pwr_en");
gpio_direction_output(PWR_EN, 1);
......
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