• Theodor-Adrian Stana's avatar
    Fixed flash-write RSR issues and reset SDB-CONFIG file · c3f90208
    Theodor-Adrian Stana authored
    The issue was due to a bug in gpio_in, which was doing an AND with
    the value of GPIO_SPI_MISO, which was set to the pin offset, instead
    of what it was set in the include/syscon.h file.
    
    When I copied the gpio functions from include/syscon.h, I overlooked
    the fact that the pins for the gpio functions there are set using
    wbgen macros that actually perform the shifting, and I simply copied
    the functions and redefined the GPIO_SPI_MISO macros as offsets.
    
    The issue has been fixed by redefining the gpio_in function as an
    AND with the value (1 << PIN_NR). This fixes everything.
    Signed-off-by: Theodor-Adrian Stana's avatarTheodor Stana <t.stana@cern.ch>
    c3f90208
Name
Last commit
Last update
arch/lm32 Loading commit data...
boards/arria Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
include Loading commit data...
ipc Loading commit data...
lib Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ 674acb42
scripts Loading commit data...
sdb-lib Loading commit data...
shell Loading commit data...
softpll Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
check-error.c Loading commit data...
revision.c Loading commit data...
wrc_main.c Loading commit data...
wrc_ptp.h Loading commit data...
wrc_ptp_noposix.c Loading commit data...
wrs_main.c Loading commit data...