From dfb098d3592704f64087f2677a5d3dd7f7e5e422 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 17 Nov 2011 12:50:54 -0800 Subject: 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 Reviewed-on: http://review.coreboot.org/757 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/pc80/tpm.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/pc80/tpm.c') diff --git a/src/pc80/tpm.c b/src/pc80/tpm.c index 8e94303e71..17e1ed702d 100644 --- a/src/pc80/tpm.c +++ b/src/pc80/tpm.c @@ -27,7 +27,6 @@ * Infineon slb9635), so this driver provides access to locality 0 only. */ -/* #define DEBUG */ #include #include #include @@ -37,17 +36,11 @@ #include #include -#ifdef DEBUG -#define TPM_DEBUG_ON 1 -#else -#define TPM_DEBUG_ON 0 -#endif - #define PREFIX "lpc_tpm: " /* coreboot wrapper for TPM driver (start) */ #define TPM_DEBUG(fmt, args...) \ - if (TPM_DEBUG_ON) { \ + if (CONFIG_DEBUG_TPM) { \ printk(BIOS_DEBUG, PREFIX); \ printk(BIOS_DEBUG, fmt , ##args); \ } -- cgit v1.2.3