From 75b154334d0e1273a4164fea87730c28d47109a5 Mon Sep 17 00:00:00 2001 From: Ege Mihmanli Date: Wed, 15 Nov 2017 17:19:58 -0800 Subject: google/gru: Add config for scarlet-derived boards There is merit in having new boards use the pinouts and controls in scarlet. This adds a config so new scarlet-derived boards can easily use scarlet structure without going through every file and adding new logic. TEST=Run "emerge-scarlet coreboot" Signed-off-by: egemih@chromium.org Change-Id: I5808f93f4563033ce93050e1eedb6eac2b52c3b3 Reviewed-on: https://review.coreboot.org/22517 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/mainboard/google/gru/pwm_regulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mainboard/google/gru/pwm_regulator.c') diff --git a/src/mainboard/google/gru/pwm_regulator.c b/src/mainboard/google/gru/pwm_regulator.c index 6a9f1714e8..3ea37cfebf 100644 --- a/src/mainboard/google/gru/pwm_regulator.c +++ b/src/mainboard/google/gru/pwm_regulator.c @@ -48,7 +48,7 @@ int pwm_design_voltage[][2] = { [PWM_REGULATOR_CENTERLOG] = {7994, 10499} }; -/* Applies for Scarlet */ +/* Applies for Scarlet-based boards. */ int scarlet_pwm_design_voltage[][2] = { [PWM_REGULATOR_GPU] = {7996, 10990}, [PWM_REGULATOR_BIG] = {8000, 12992}, @@ -63,7 +63,7 @@ int pwm_enum_to_pwm_number[] = { #else [PWM_REGULATOR_CENTERLOG] = -1, #endif -#if IS_ENABLED(CONFIG_BOARD_GOOGLE_SCARLET) +#if IS_ENABLED(CONFIG_GRU_BASEBOARD_SCARLET) [PWM_REGULATOR_BIG] = 3, #else [PWM_REGULATOR_BIG] = 1, @@ -85,7 +85,7 @@ void pwm_regulator_configure(enum pwm_regulator pwm, int millivolt) } else if (IS_ENABLED(CONFIG_BOARD_GOOGLE_KEVIN) && board_id() >= 6) { voltage_min = kevin6_pwm_design_voltage[pwm][0]; voltage_max = kevin6_pwm_design_voltage[pwm][1]; - } else if (IS_ENABLED(CONFIG_BOARD_GOOGLE_SCARLET)) { + } else if (IS_ENABLED(CONFIG_GRU_BASEBOARD_SCARLET)) { voltage_min = scarlet_pwm_design_voltage[pwm][0]; voltage_max = scarlet_pwm_design_voltage[pwm][1]; } -- cgit v1.2.3