diff options
author | Furquan Shaikh <furquan@google.com> | 2020-05-11 12:11:27 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-05-12 20:05:34 +0000 |
commit | 5cc41f2a6b6aeca1500fe9f55af5858d1c7e4e38 (patch) | |
tree | 9a4099537f7d9e72ff68aedcf99e4141b581fac3 /src/include | |
parent | 470f627c2bbfda9ff7e42801fa93b5205e0ba654 (diff) |
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>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/espi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/espi.h b/src/include/espi.h index f0ae37383a..7503af79ec 100644 --- a/src/include/espi.h +++ b/src/include/espi.h @@ -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; |