imx8m_som/spl.c : turn off the haptic motor

parent 8c2e4f9c
......@@ -191,8 +191,10 @@ 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)
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),
};
/*
......@@ -282,6 +284,11 @@ int power_init_board(void)
gpio_request(PWR_EN, "pwr_en");
gpio_direction_output(PWR_EN, 1);
/* disable the haptic motor */
gpio_request(HAPTIC_nEN, "haptic_en");
gpio_direction_output(HAPTIC_nEN, 1);
udelay(500);
rv = 0;
......
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