diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-04-09 16:38:12 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-04-10 11:19:38 -0700 |
commit | a649f52d5f690a9f8dd2242a3ce85f5d0ff1f318 (patch) | |
tree | b59f17665584634809b1789ae880e5a1c0a2fe58 /chip/lm4/system.c | |
parent | d6ce2852aed7ca0b7a06e06cee008c0f3778c932 (diff) | |
download | chrome-ec-a649f52d5f690a9f8dd2242a3ce85f5d0ff1f318.tar.gz |
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 <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/47700
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'chip/lm4/system.c')
-rw-r--r-- | chip/lm4/system.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++); |