summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2013-04-15 19:45:10 -0700
committerGabe Black <gabeblack@chromium.org>2013-04-16 11:10:54 +0200
commitacb9d4459973627f3b082dafb3f184a56a5d4219 (patch)
treed3ef7f94ec523c7fb655a52feb4c7f2f94e0696b /src
parent88beef0a8e58c1b0404f2f91707fcdba7b113471 (diff)
snow: Fix the name of some constants in romstage.c.
These names were inherited from chromeos.c where they've already been fixed. Change-Id: I7ad57b979b7b8f42f6bd68d1ecf887caba3fa3f1 Signed-off-by: Gabe Black <gabeblack@chromium.org> Reviewed-on: http://review.coreboot.org/3095 Reviewed-by: David Hendricks <dhendrix@chromium.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/snow/romstage.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mainboard/google/snow/romstage.c b/src/mainboard/google/snow/romstage.c
index dda4e7ca60..96e93dae5d 100644
--- a/src/mainboard/google/snow/romstage.c
+++ b/src/mainboard/google/snow/romstage.c
@@ -127,8 +127,8 @@ static void chromeos_gpios(void)
enum {
WP_GPIO = 6,
- FORCE_RECOVERY_MODE = 0,
- LID_OPEN = 5
+ RECMODE_GPIO = 0,
+ LID_GPIO = 5
};
gpio_pt1 = (struct exynos5_gpio_part1 *)EXYNOS5_GPIO_PART1_BASE;
@@ -137,12 +137,11 @@ static void chromeos_gpios(void)
s5p_gpio_direction_input(&gpio_pt1->d1, WP_GPIO);
s5p_gpio_set_pull(&gpio_pt1->d1, WP_GPIO, EXYNOS_GPIO_PULL_NONE);
- s5p_gpio_direction_input(&gpio_pt1->y1, FORCE_RECOVERY_MODE);
- s5p_gpio_set_pull(&gpio_pt1->y1, FORCE_RECOVERY_MODE,
- EXYNOS_GPIO_PULL_NONE);
+ s5p_gpio_direction_input(&gpio_pt1->y1, RECMODE_GPIO);
+ s5p_gpio_set_pull(&gpio_pt1->y1, RECMODE_GPIO, EXYNOS_GPIO_PULL_NONE);
- s5p_gpio_direction_input(&gpio_pt2->x3, LID_OPEN);
- s5p_gpio_set_pull(&gpio_pt2->x3, LID_OPEN, EXYNOS_GPIO_PULL_NONE);
+ s5p_gpio_direction_input(&gpio_pt2->x3, LID_GPIO);
+ s5p_gpio_set_pull(&gpio_pt2->x3, LID_GPIO, EXYNOS_GPIO_PULL_NONE);
}
void main(void)