diff options
author | David Huang <david.huang@quanta.corp-partner.google.com> | 2020-07-02 16:31:50 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-07 03:25:48 +0000 |
commit | 1c517d0908ebf272adf176515fc82c4ac5a8647d (patch) | |
tree | f886ad16c358a356052b34a683340773eff41f98 /board/terrador/board.c | |
parent | 032533b3baa78e4c5bf86f4811ecd31083373ad0 (diff) | |
download | chrome-ec-1c517d0908ebf272adf176515fc82c4ac5a8647d.tar.gz |
Terrador: remove fan related function.
Terrador is fan less, remove fan function.
BUG=b:151978872
BRANCH=master
TEST=make buildall success.
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Change-Id: Iebb74fac4ae60d20ce16073df6539df544ba7fc0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2279151
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/terrador/board.c')
-rw-r--r-- | board/terrador/board.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/board/terrador/board.c b/board/terrador/board.c index aa66a66a4c..9d53cdcea7 100644 --- a/board/terrador/board.c +++ b/board/terrador/board.c @@ -81,47 +81,6 @@ __override bool board_is_tbt_usb4_port(int port) } /******************************************************************************/ -/* Physical fans. These are logically separate from pwm_channels. */ - -const struct fan_conf fan_conf_0 = { - .flags = FAN_USE_RPM_MODE, - .ch = MFT_CH_0, /* Use MFT id to control fan */ - .pgood_gpio = -1, - .enable_gpio = GPIO_EN_PP5000_FAN, -}; - -/* - * Fan specs from datasheet: - * Max speed 5900 rpm (+/- 7%), minimum duty cycle 30%. - * Minimum speed not specified by RPM. Set minimum RPM to max speed (with - * margin) x 30%. - * 5900 x 1.07 x 0.30 = 1894, round up to 1900 - */ -const struct fan_rpm fan_rpm_0 = { - .rpm_min = 1900, - .rpm_start = 1900, - .rpm_max = 5900, -}; - -const struct fan_t fans[FAN_CH_COUNT] = { - [FAN_CH_0] = { - .conf = &fan_conf_0, - .rpm = &fan_rpm_0, - }, -}; - -/******************************************************************************/ -/* MFT channels. These are logically separate from pwm_channels. */ -const struct mft_t mft_channels[] = { - [MFT_CH_0] = { - .module = NPCX_MFT_MODULE_1, - .clk_src = TCKC_LFCLK, - .pwm_id = PWM_CH_FAN, - }, -}; -BUILD_ASSERT(ARRAY_SIZE(mft_channels) == MFT_CH_COUNT); - -/******************************************************************************/ /* I2C port map configuration */ const struct i2c_port_t i2c_ports[] = { { @@ -195,11 +154,6 @@ const struct pwm_t pwm_channels[] = { */ .freq = 4800, }, - [PWM_CH_FAN] = { - .channel = 5, - .flags = PWM_CONFIG_OPEN_DRAIN, - .freq = 25000 - }, [PWM_CH_KBLIGHT] = { .channel = 3, .flags = 0, |