diff options
author | Jeff Chase <jnchase@google.com> | 2020-02-10 12:19:36 -0500 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-12 19:38:25 +0000 |
commit | 50b268bc67c1c73d81eafaa46dc7cab75c335e41 (patch) | |
tree | d0e56bf47b2044b79260f2d327141fd540eb299f /board/fizz | |
parent | de22373b50ee01a77de5921564bb5bdc0d8c1e17 (diff) | |
download | chrome-ec-50b268bc67c1c73d81eafaa46dc7cab75c335e41.tar.gz |
Fizz: add fan table for excelsior
BUG=b:149103675
BRANCH=none
TEST=build, install, set OEM to 10, check fan speed, set min fan speed
Change-Id: I032c48c5d7696a482b0cf4083b88dcd4f341f434
Signed-off-by: Jeff Chase <jnchase@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2047931
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Ren Kuo <ren.kuo@quanta.corp-partner.google.com>
Reviewed-by: David Huang <David.Huang@quantatw.com>
Diffstat (limited to 'board/fizz')
-rw-r--r-- | board/fizz/board.c | 16 | ||||
-rw-r--r-- | board/fizz/board.h | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/board/fizz/board.c b/board/fizz/board.c index 8c149d31c8..91f386b3cf 100644 --- a/board/fizz/board.c +++ b/board/fizz/board.c @@ -618,10 +618,21 @@ static const struct fan_step fan_table2[] = { {.on = 87, .off = 81, .rpm = 3900}, {.on = 98, .off = 91, .rpm = 5000}, }; +static const struct fan_step fan_table3[] = { + {.on = 0, .off = 1, .rpm = 0}, + {.on = 36, .off = 22, .rpm = 2500}, + {.on = 54, .off = 49, .rpm = 3200}, + {.on = 61, .off = 56, .rpm = 3500}, + {.on = 68, .off = 63, .rpm = 3900}, + {.on = 75, .off = 69, .rpm = 4500}, + {.on = 82, .off = 76, .rpm = 5100}, + {.on = 92, .off = 85, .rpm = 5400}, +}; /* All fan tables must have the same number of levels */ #define NUM_FAN_LEVELS ARRAY_SIZE(fan_table0) BUILD_ASSERT(ARRAY_SIZE(fan_table1) == NUM_FAN_LEVELS); BUILD_ASSERT(ARRAY_SIZE(fan_table2) == NUM_FAN_LEVELS); +BUILD_ASSERT(ARRAY_SIZE(fan_table3) == NUM_FAN_LEVELS); static void setup_fan(void) { @@ -647,6 +658,10 @@ static void setup_fan(void) case OEM_JAX: fan_set_count(0); break; + case OEM_EXCELSIOR: + fans[FAN_CH_0].rpm = &fan_rpm_0; + fan_table = fan_table3; + break; } } @@ -713,6 +728,7 @@ static void setup_bj(void) case OEM_WUKONG_N: case OEM_WUKONG_A: case OEM_WUKONG_M: + case OEM_EXCELSIOR: bj = (BJ_ADAPTER_90W_MASK & BIT(sku)) ? BJ_90W_19V : BJ_65W_19V; break; diff --git a/board/fizz/board.h b/board/fizz/board.h index d88d1ba65c..6c3dade457 100644 --- a/board/fizz/board.h +++ b/board/fizz/board.h @@ -231,6 +231,7 @@ enum OEM_ID { OEM_WUKONG_M = 5, OEM_BLEEMO = 6, OEM_JAX = 8, + OEM_EXCELSIOR = 10, /* Number of OEM IDs */ OEM_COUNT }; |