OpenNuvoton / NUC970_U-Boot_v2016.11

U-Boot v2016.11 for NUC970, N9H30, and NUC980
29 stars 45 forks source link

a problem in gpio_get_value() function! #3

Closed liuning587 closed 6 years ago

liuning587 commented 6 years ago

Hi, the GPIOX_DATAIN register is readonly, why write 0 or 1 to DATAIN register when dir is IN mode? image

/**

yachen commented 6 years ago

Hi,

That line has no effect. Please pull d24f231, this patch remove dummy code in GPIO driver.

Sincerely,

Yi-An Chen

liuning587 commented 6 years ago

I see the change. But I think it is necessary to change the kernel gpio driver. NUC970_Linux_Kernel/drivers/gpio/gpio-nuc970.c

yachen commented 6 years ago

Hi @liuning587,

Please pull commit 0a6a3d0 to remove those code in Linux GPIO driver. Thanks.

Sincerely,

Yi-An Chen