Hi Professionals! We met a problem and hope you can help with analysis.
Question :
-1) I set AM1810 GP3[0] as GPIO port which played a role of "input".
In the code file "/linux-2.6.33-rt29-psp03.30.00.02/arch/arm/mach-davinci/da850.c", we modified as follows:
MUX_CFG(DA850, EMA_D_8, 8, 28, 15, 8, false)
const short da850_evm_user_dp_pins[] __initdata = {DA850_EMA_D_8, -1};
In the code file "/linux-2.6.33-rt29-psp03.30.00.02/arch/arm/mach-davinci/board-da850-evm.c", we modified as follows:
da8xx_pinmux_setup(da850_evm_user_dp_pins);
In the drive module for our system, I set as follows:
gpio_direction_input(3*16);//GP3.0input
data = gpio_get_value(3*16);
BUT, gpio_get_value is always 0, whatever GP3.0 high level or low level.
-2) I set AM1810 GP5[10] as GPIO port which played a role of "output". It was used to control LED and worked successfully. If I tried to read this port, gpio_get_value(5*16+10) kept 0.
-3) Thus seems we could conclude that for this GPIO port we defined, it is written-only, cannot be read.
But why?
Thank you!
Best regards!