espi: Add support for debug helper to print slave capabilities
This change adds a Kconfig option to enable eSPI debugging that pulls in a helper function to print slave capabilities. BUG=b:153675913 Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: I8ff250fe85dfa9370bf93ce3c7e2de5c069bf9e9 Reviewed-on: https://review.coreboot.org/c/coreboot/+/41254 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
470f627c2b
commit
5cc41f2a6b
4 changed files with 111 additions and 0 deletions
|
|
@ -229,6 +229,12 @@
|
|||
#define ESPI_VW_SIGNAL_HIGH(x) (ESPI_VW_VALID(x) | ESPI_VW_VALUE(1, x))
|
||||
#define ESPI_VW_SIGNAL_LOW(x) (ESPI_VW_VALID(x) | ESPI_VW_VALUE(0, x))
|
||||
|
||||
#if CONFIG(ESPI_DEBUG)
|
||||
void espi_show_slave_general_configuration(uint32_t config);
|
||||
#else
|
||||
static void espi_show_slave_general_configuration(uint32_t config) {}
|
||||
#endif
|
||||
|
||||
static inline bool espi_slave_supports_quad_io(uint32_t gen_caps)
|
||||
{
|
||||
uint32_t mode = gen_caps & ESPI_SLAVE_IO_MODE_SUPP_MASK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue