summaryrefslogtreecommitdiff
path: root/chip/stm32/i2c-stm32l.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-07-23 13:05:45 -0700
committerChromeBot <chrome-bot@google.com>2013-07-23 17:37:53 -0700
commitcb1f7306b34507b3d9481cd4327271b2227747b8 (patch)
treea6862df1fbcfa4432743de4cd9ae0f1b64e3c344 /chip/stm32/i2c-stm32l.c
parenta1699727a83758defb2e80deab59d34a18bfe581 (diff)
downloadchrome-ec-cb1f7306b34507b3d9481cd4327271b2227747b8.tar.gz
Clean up debug config options
All of these were defined on all but a few platforms, and those explicitly #undef them. So define them as enabled by default in config.h so the board.h files are cleaner. No functional changes; just rearranging/renaming config constants. BUG=chrome-os-partner:18343 BRANCH=none TEST=build all platforms; FEATURES=test emerge-falco chromeos-ec Change-Id: I1201a1472ae29641e9e219c2a0347691ca64cd28 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/63102 Reviewed-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'chip/stm32/i2c-stm32l.c')
-rw-r--r--chip/stm32/i2c-stm32l.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/chip/stm32/i2c-stm32l.c b/chip/stm32/i2c-stm32l.c
index 36f6817815..0f258c1ce6 100644
--- a/chip/stm32/i2c-stm32l.c
+++ b/chip/stm32/i2c-stm32l.c
@@ -18,8 +18,6 @@
#include "timer.h"
#include "util.h"
-/* #define CONFIG_DEBUG_I2C */
-
extern const struct i2c_port_t i2c_ports[I2C_PORTS_USED];
/* Console output macros */
@@ -42,7 +40,7 @@ extern const struct i2c_port_t i2c_ports[I2C_PORTS_USED];
*/
#define I2C_TX_TIMEOUT_MASTER (10 * MSEC)
-#ifdef CONFIG_DEBUG_I2C
+#ifdef CONFIG_I2C_DEBUG
static void dump_i2c_reg(int port, const char *what)
{
CPRINTF("[%T i2c CR1=%04x CR2=%04x SR1=%04x SR2=%04x %s]\n",