bd366ab485
Use the config switch CONFIG_DEBUG_SPI_FLASH on compiler level rather then on preprocessor level to ensure that the code is compiled even if the switch is not selected. In addition the following two changes are introduced: 1. Prepend the debug messages with 'SPI:' to make the output more meaningful. 2. Change the address mask from 0xffff to 0x3ff and remove the subtraction of the constant value 0xf020 in order to print only the register offset within the SPI controller and avoid the visibility of any fragments from SPI base address. 3. Switch to uint8_t and friends instead of u8 to sync up with other code in the same file. Change-Id: Iaf46f29a775039007a402fe862839df06a4cbfaa Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/16499 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@chromium.org> |
||
---|---|---|
.. | ||
acpi | ||
bootblock | ||
fsp | ||
include/soc | ||
romstage | ||
acpi.c | ||
chip.c | ||
chip.h | ||
cpu.c | ||
gfx.c | ||
gpio.c | ||
i2c.c | ||
iosf.c | ||
Kconfig | ||
lpe.c | ||
lpss.c | ||
Makefile.inc | ||
memmap.c | ||
northcluster.c | ||
nvm.c | ||
placeholders.c | ||
pmutil.c | ||
ramstage.c | ||
reset.c | ||
smihandler.c | ||
smm.c | ||
southcluster.c | ||
spi.c | ||
tsc_freq.c |