Add EM100 'hyper term' spi console support in ramstage & smm

Hardware / Coreboot - Martin Roth [google.com] - 5 October 2015 12:43 UTC

The EM100Pro allows the debug console to be sent over the SPI bus. This is not yet working in romstage due to the use of static variables in the SPI driver code. It is also not working on chipsets that have SPI write buffers of less than 10 characters due to the 9 byte command/header length specified by the EM100 protocol.

While this currently works only with the EM100, it seems like it would be useful on any logic analyzer with SPI debug - just filter on command bytes of 0x11.

Change-Id: Icd42ccd96cab0a10a4e70f4b02ecf9de8169564b

3a54318 Add EM100 'hyper term' spi console support in ramstage & smm
src/Kconfig | 1 +
src/console/Kconfig | 8 ++++
src/console/console.c | 3 ++
src/drivers/spi/Kconfig | 4 ++
src/drivers/spi/Makefile.inc | 5 +++
src/drivers/spi/spiconsole.c | 71 ++++++++++++++++++++++++++++++
src/include/console/spi.h | 72 +++++++++++++++++++++++++++++++
src/soc/intel/baytrail/Kconfig | 1 +
src/soc/intel/braswell/Kconfig | 1 +
src/soc/intel/broadwell/Kconfig | 1 +
src/soc/intel/fsp_baytrail/Kconfig | 1 +
src/southbridge/intel/lynxpoint/Kconfig | 1 +
12 files changed, 169 insertions(+)

Upstream: review.coreboot.org


  • Share