diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-12-06 15:17:33 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-12-16 20:28:32 +0000 |
commit | 05bd0cdec7a3132fda3127c3c9daeed0ebae0dae (patch) | |
tree | 37720df1bbd03c8590a33212dfd147eab7b5430e /power | |
parent | 33ea7aa4739390c2cce578ac8310f0d7b5b3679c (diff) | |
download | chrome-ec-05bd0cdec7a3132fda3127c3c9daeed0ebae0dae.tar.gz |
Rename mixed-case config constants
This renames constants used in compiler conditionals to uppercase.
BOARD_foo
CHIP_foo
CHIP_FAMILY_foo
CHIP_VARIANT_foo
CORE_foo
Mixed-case constants are still defined by the makefile, but are now no
longer used. I will make one more pass in a week or so to catch any
that are part of someone else's CL, since otherwise this change might
silently merge correctly but result in incorrect compilation. Then I
will remove defining the mixed-case constants.
BUG=chromium:322144
BRANCH=none
TEST=Build all boards. Also, "git grep 'BOARD_[a-z]'" should return no
results (similarly for CHIP, CORE, etc.)
Change-Id: I6418412e9f7ec604a35c2d426d12475dd83e7076
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/179206
Reviewed-by: Vic Yang <victoryang@chromium.org>
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'power')
-rw-r--r-- | power/gaia.c | 10 | ||||
-rw-r--r-- | power/tegra.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/power/gaia.c b/power/gaia.c index e51eab25e0..b928a00719 100644 --- a/power/gaia.c +++ b/power/gaia.c @@ -43,7 +43,7 @@ #define CPRINTF(format, args...) cprintf(CC_CHIPSET, format, ## args) /* Time necessary for the 5V and 3.3V regulator outputs to stabilize */ -#ifdef BOARD_pit +#ifdef BOARD_PIT #define DELAY_5V_SETUP (2 * MSEC) #define DELAY_3V_SETUP (2 * MSEC) #else @@ -168,7 +168,7 @@ static int wait_in_signal(enum gpio_signal signal, int value, int timeout) */ static void set_pmic_pwrok(int asserted) { -#ifdef BOARD_pit +#ifdef BOARD_PIT /* Signal is active-high */ gpio_set_level(GPIO_PMIC_PWRON, asserted); #else @@ -320,7 +320,7 @@ static int gaia_power_init(void) auto_power_on = 1; } -#ifdef BOARD_pit +#ifdef BOARD_PIT /* * Force the AP into reset unless we're doing a sysjump. Otherwise a * suspended AP may still be in a strange state from the last reboot, @@ -408,7 +408,7 @@ void chipset_force_shutdown(void) gpio_set_level(GPIO_EN_PP5000, 0); #endif -#ifdef BOARD_pit +#ifdef BOARD_PIT /* * Force the AP into reset. Otherwise it will hold XPSHOLD for a long * time if it's in a low power state. See crosbug.com/p/22233. @@ -479,7 +479,7 @@ static int power_on(void) usleep(DELAY_5V_SETUP); #endif -#ifdef BOARD_pit +#ifdef BOARD_PIT /* * 3.3V rail must come up right after 5V, because it sources power to * various buck supplies. diff --git a/power/tegra.c b/power/tegra.c index f2f38e123b..c808b494d6 100644 --- a/power/tegra.c +++ b/power/tegra.c @@ -521,7 +521,7 @@ static int react_to_xpshold(unsigned int timeout_us) /* wait for Power button release */ wait_in_signal(GPIO_SOC1V8_XPSHOLD, 1, timeout_us); -#ifdef BOARD_nyan +#ifdef BOARD_NYAN /* * nyan's GPIO_SOC1V8_XPSHOLD will go low for about 20ms after initial * high. Wait XPSHOLD_DEBOUNCE time, then check the signal again. |