diff options
author | Ege Mihmanli <egemih@google.com> | 2017-11-15 17:19:58 -0800 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2017-11-20 18:56:45 +0000 |
commit | 75b154334d0e1273a4164fea87730c28d47109a5 (patch) | |
tree | 788a7631dd35041a8caff2407f98bca5c1a644c8 /src/mainboard/google/gru/pwm_regulator.c | |
parent | 21573e9f4e6c5ec1c5ab7da265f42642f832394b (diff) |
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) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/mainboard/google/gru/pwm_regulator.c')
-rw-r--r-- | src/mainboard/google/gru/pwm_regulator.c | 6 |
1 files changed, 3 insertions, 3 deletions
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]; } |