From a649f52d5f690a9f8dd2242a3ce85f5d0ff1f318 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Tue, 9 Apr 2013 16:38:12 -0700 Subject: Move REG16 and REG32 macros to common.h And use them for LM4 as well as STM32. Consistency is good. No functional changes, just moving/renaming code. BUG=chrome-os-partner:18343 BRANCH=none TEST=build all platforms Change-Id: I029a21fadb50726500255219dc38615874a369e7 Signed-off-by: Randall Spangler Reviewed-on: https://gerrit.chromium.org/gerrit/47700 Reviewed-by: Bill Richardson --- chip/lm4/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chip/lm4/system.c') diff --git a/chip/lm4/system.c b/chip/lm4/system.c index 130fc34367..8bd3235da9 100644 --- a/chip/lm4/system.c +++ b/chip/lm4/system.c @@ -448,7 +448,7 @@ const char *system_get_chip_name(void) const char *raw_chip_name = system_get_raw_chip_name(); char *p = str; - if (LM4REG(0x400fdff0)) { + if (LM4_TEST_MODE_ENABLED) { /* Debug mode is enabled. Postfix chip name. */ while (*raw_chip_name) *(p++) = *(raw_chip_name++); -- cgit v1.2.1