Skip to content
Snippets Groups Projects
Commit a1f67807 authored by Renato Frias's avatar Renato Frias Committed by Stefano Babic
Browse files

mx6qsabreauto: Add Port Expander reset


There are 3 IO expanders on the mx6qsabreauto all reset by the
same GPIO, just set it to high to use the IO.

Signed-off-by: default avatarRenato Frias <b13784@freescale.com>
Acked-by: default avatarStefano Babic <sbabic@denx.de>
parent 19578165
No related branches found
No related tags found
No related merge requests found
...@@ -119,6 +119,10 @@ iomux_v3_cfg_t const i2c3_pads[] = { ...@@ -119,6 +119,10 @@ iomux_v3_cfg_t const i2c3_pads[] = {
MX6_PAD_EIM_A24__GPIO_5_4 | MUX_PAD_CTRL(NO_PAD_CTRL), MX6_PAD_EIM_A24__GPIO_5_4 | MUX_PAD_CTRL(NO_PAD_CTRL),
}; };
iomux_v3_cfg_t const port_exp[] = {
MX6_PAD_SD2_DAT0__GPIO_1_15 | MUX_PAD_CTRL(NO_PAD_CTRL),
};
static void setup_iomux_enet(void) static void setup_iomux_enet(void)
{ {
imx_iomux_v3_setup_multiple_pads(enet_pads, ARRAY_SIZE(enet_pads)); imx_iomux_v3_setup_multiple_pads(enet_pads, ARRAY_SIZE(enet_pads));
...@@ -266,6 +270,9 @@ int board_init(void) ...@@ -266,6 +270,9 @@ int board_init(void)
imx_iomux_v3_setup_multiple_pads(i2c3_pads, ARRAY_SIZE(i2c3_pads)); imx_iomux_v3_setup_multiple_pads(i2c3_pads, ARRAY_SIZE(i2c3_pads));
setup_i2c(2, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info2); setup_i2c(2, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info2);
gpio_direction_output(IMX_GPIO_NR(1, 15), 1);
imx_iomux_v3_setup_multiple_pads(port_exp, ARRAY_SIZE(port_exp));
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment