i2S6UBY2: add gpio switch for SDIO WiFi module
This commit is contained in:
@ -829,6 +829,11 @@ struct display_info_t const displays[] = {{
|
||||
size_t display_count = ARRAY_SIZE(displays);
|
||||
#endif
|
||||
|
||||
static iomux_v3_cfg_t const wifi_pads[] = {
|
||||
MX6_PAD_CSI_DATA01__GPIO4_IO22 | MUX_PAD_CTRL(NO_PAD_CTRL),
|
||||
MX6_PAD_CSI_DATA03__GPIO4_IO24 | MUX_PAD_CTRL(NO_PAD_CTRL),
|
||||
};
|
||||
|
||||
int board_early_init_f(void)
|
||||
{
|
||||
setup_iomux_uart();
|
||||
@ -841,6 +846,13 @@ int board_init(void)
|
||||
/* Address of boot parameters */
|
||||
gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
|
||||
|
||||
/* WiFi WL_EN, active High */
|
||||
imx_iomux_v3_setup_multiple_pads(wifi_pads, ARRAY_SIZE(wifi_pads));
|
||||
gpio_direction_output(IMX_GPIO_NR(4, 22) , 1);
|
||||
|
||||
/* WiFi PWR_EN, active Low */
|
||||
gpio_direction_output(IMX_GPIO_NR(4, 24) , 0);
|
||||
|
||||
#ifdef CONFIG_SYS_I2C_MXC
|
||||
setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user