Hi,
This has probably been answered before. We have an i.MX6D where we have to invert a GPIO polarity on bootup.
Currently it has a direction of 'in' (direction) and a value of '1'. We need it to, by default, have a value of '0'.
Changing the direction probably won't be needed until later when we need to toggle the value at runtime.
We have to do this at the time the bootloader (u-boot) initializes the processor. Doing this via the OS is not an option.
In imx6q-pinfunc.h should I change the input_val from 0x0 to 0x1
#define MX6QDL_PAD_DISP0_DAT17__GPIO5_IO11 0x1b4 0x4c8 0x000 0x5 0x0
And is there anything I have to change in the dts file? (like 0x80000000 to 0xC0000000)
MX6QDL_PAD_DISP0_DAT17__GPIO5_IO11 0x80000000
Regards,
Glen