Add DEBUG_TPM option to Debugging menu
instead of having to edit the source code of tpm.c Change-Id: I519d9ada14dd383e668a2da4219e5373a24c7c3d Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/757 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
7b67892be8
commit
dfb098d359
|
@ -862,6 +862,13 @@ config X86EMU_DEBUG_IO
|
||||||
|
|
||||||
If unsure, say N.
|
If unsure, say N.
|
||||||
|
|
||||||
|
config DEBUG_TPM
|
||||||
|
bool "Output verbose TPM debug messages"
|
||||||
|
default n
|
||||||
|
depends on TPM
|
||||||
|
help
|
||||||
|
This option enables additional TPM related debug messages.
|
||||||
|
|
||||||
config LLSHELL
|
config LLSHELL
|
||||||
bool "Built-in low-level shell"
|
bool "Built-in low-level shell"
|
||||||
default n
|
default n
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
* Infineon slb9635), so this driver provides access to locality 0 only.
|
* Infineon slb9635), so this driver provides access to locality 0 only.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* #define DEBUG */
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
|
@ -37,17 +36,11 @@
|
||||||
#include <pc80/tpm.h>
|
#include <pc80/tpm.h>
|
||||||
#include <cpu/x86/car.h>
|
#include <cpu/x86/car.h>
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
#define TPM_DEBUG_ON 1
|
|
||||||
#else
|
|
||||||
#define TPM_DEBUG_ON 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define PREFIX "lpc_tpm: "
|
#define PREFIX "lpc_tpm: "
|
||||||
|
|
||||||
/* coreboot wrapper for TPM driver (start) */
|
/* coreboot wrapper for TPM driver (start) */
|
||||||
#define TPM_DEBUG(fmt, args...) \
|
#define TPM_DEBUG(fmt, args...) \
|
||||||
if (TPM_DEBUG_ON) { \
|
if (CONFIG_DEBUG_TPM) { \
|
||||||
printk(BIOS_DEBUG, PREFIX); \
|
printk(BIOS_DEBUG, PREFIX); \
|
||||||
printk(BIOS_DEBUG, fmt , ##args); \
|
printk(BIOS_DEBUG, fmt , ##args); \
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue