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.
/*
* Device Configuration Data (DCD)
*
* Each entry must have the format:
* Addr-type Address Value
*
* where:
* Addr-type register length (1,2 or 4 bytes)
* Address absolute address of the register
* value value to be stored in the register
*/
This is part of the description in the imximage.cfg file.
So I want to modify this file, And add something like this type:
DATA 4 Address(MUX_CTL_PAD_SD1_CMD_ADDRESS) value(MUX_CTL_PAD_SD1_CMD_VALUE)
AND I have already get the register value generate by the software which named Config_Tools_for_i.MX_v14_x64.exe
this is the register value:
#define BOARD_INITPINS_IOMUXC_SW_MUX_CTL_PAD_SD1_CMD_VALUE 0x00000015 /*!< Register name: IOMUXC_SW_MUX_CTL_PAD_SD1_CMD */
#define BOARD_INITPINS_IOMUXC_SW_PAD_CTL_PAD_SD1_CMD_VALUE 0x000010B0 /*!< Register name: IOMUXC_SW_PAD_CTL_PAD_SD1_CMD */
Can anyone tell me how to get the absolute address of the register or where to.
Thanks.