HI all:
I am using the M6Y2C-512F4GLI-T SOM board, the link is https://www.zlg.cn/index.php/ipc/ipc/product/id/238.html
I use the MX6_PAD_SD1_CMD as GPIO2_IO16 (output use, low level default)
and MX6_PAD_SD1_DATA0 as GPIO2_IO18 (output use, low level default)
I found that when the mpu (power on) or (reset), this two pin output the high level.
I want them output the low level by default,
so I edit the int board_init(void) function,
add the function:
1) gpio_request()
2) gpio_direction_output()
it work fine, However, there is still a two-second delay from system power-on or reboot.
In other words, there will be a high level output for two seconds.
Thanks.
Solved! Go to Solution.
Hello,
You may find these registers in the processor reference manual, which is the i.MX6ULL.
32.6.95 SW_MUX_CTL_PAD_SD1_CMD SW MUX Control Register (IOMUXC_SW_MUX_CTL_PAD_SD1_CMD)
Address: 20E_0000h base + 1BCh offset = 20E_01BCh
32.6.241 SW_PAD_CTL_PAD_SD1_CMD SW PAD Control Register (IOMUXC_SW_PAD_CTL_PAD_SD1_CMD)
Address: 20E_0000h base + 448h offset = 20E_0448h
Saludos,
Aldo.
Hello,
You may find these registers in the processor reference manual, which is the i.MX6ULL.
32.6.95 SW_MUX_CTL_PAD_SD1_CMD SW MUX Control Register (IOMUXC_SW_MUX_CTL_PAD_SD1_CMD)
Address: 20E_0000h base + 1BCh offset = 20E_01BCh
32.6.241 SW_PAD_CTL_PAD_SD1_CMD SW PAD Control Register (IOMUXC_SW_PAD_CTL_PAD_SD1_CMD)
Address: 20E_0000h base + 448h offset = 20E_0448h
Saludos,
Aldo.
Thanks for your reply @AldoG!
I have add this code to the imximage.cfg:
I have add this code to the imximage.cfg, but there still have a high level output for two seconds.