console/spkmodem: Make it work for bootblock
This code was written in a romcc bootblock time. There is no reason why it would not work in bootblock now. Untested but expected to work. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I4113dc3208fe15305d1132136dd33417dd086bfb Reviewed-on: https://review.coreboot.org/c/coreboot/+/78935 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
This commit is contained in:
parent
91e6117c09
commit
d0cb97ef2e
|
@ -7,6 +7,7 @@ ramstage-y += i8259.c
|
||||||
ramstage-y += keyboard.c
|
ramstage-y += keyboard.c
|
||||||
ramstage-$(CONFIG_SPKMODEM) += spkmodem.c
|
ramstage-$(CONFIG_SPKMODEM) += spkmodem.c
|
||||||
romstage-$(CONFIG_SPKMODEM) += spkmodem.c
|
romstage-$(CONFIG_SPKMODEM) += spkmodem.c
|
||||||
|
bootblock-$(CONFIG_SPKMODEM) += spkmodem.c
|
||||||
|
|
||||||
all_x86-y += i8254.c
|
all_x86-y += i8254.c
|
||||||
smm-y += i8254.c
|
smm-y += i8254.c
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
void spkmodem_init(void);
|
void spkmodem_init(void);
|
||||||
void spkmodem_tx_byte(unsigned char c);
|
void spkmodem_tx_byte(unsigned char c);
|
||||||
|
|
||||||
#if CONFIG(SPKMODEM) && (ENV_ROMSTAGE || ENV_RAMSTAGE)
|
#if CONFIG(SPKMODEM) && (ENV_ROMSTAGE_OR_BEFORE || ENV_RAMSTAGE)
|
||||||
static inline void __spkmodem_init(void) { spkmodem_init(); }
|
static inline void __spkmodem_init(void) { spkmodem_init(); }
|
||||||
static inline void __spkmodem_tx_byte(u8 data) { spkmodem_tx_byte(data); }
|
static inline void __spkmodem_tx_byte(u8 data) { spkmodem_tx_byte(data); }
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue