
28 Aug
2024
28 Aug
'24
3:24 p.m.
On 8/28/24 3:09 PM, Tomas Paukrt wrote:
The PSR register works correctly for GPIO pins in input mode, but always returns 0 for GPIO pins in output mode unless the SION bit is set.
The DR register should be used for GPIO pins in output mode to allow correct getting of previously set output value.
Please note that the Linux gpio-mxc driver and the NXP U-Boot mxc_gpio driver already use the DR register for all GPIO pins in output mode:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i... https://github.com/nxp-imx/uboot-imx/commit/4afc3f90943c6b117f79b66d2cd04e64...
Signed-off-by: Tomas Paukrt tomaspaukrt@email.cz
Changelog is missing, what changed since V3 of this patch ?