diff options
Diffstat (limited to 'board/it83xx_evb/board.c')
-rw-r--r-- | board/it83xx_evb/board.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/board/it83xx_evb/board.c b/board/it83xx_evb/board.c index cd0b9ff1e4..8bc2740beb 100644 --- a/board/it83xx_evb/board.c +++ b/board/it83xx_evb/board.c @@ -106,19 +106,21 @@ const struct pwm_t pwm_channels[] = { BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT); -const struct fan_t fans[] = { - {.flags = FAN_USE_RPM_MODE, - .rpm_min = 1500, - .rpm_start = 1500, - .rpm_max = 6500, - /* - * index of pwm_channels, not pwm output channel. - * pwm output channel is member "channel" of pwm_t. - */ - .ch = 0, - .pgood_gpio = -1, - .enable_gpio = -1, - }, +const struct fan_conf fan_conf_0 = { + .flags = FAN_USE_RPM_MODE, + .ch = 0, /* Use MFT id to control fan */ + .pgood_gpio = -1, + .enable_gpio = -1, +}; + +const struct fan_rpm fan_rpm_0 = { + .rpm_min = 1500, + .rpm_start = 1500, + .rpm_max = 6500, +}; + +struct fan_t fans[] = { + { .conf = &fan_conf_0, .rpm = &fan_rpm_0, }, }; BUILD_ASSERT(ARRAY_SIZE(fans) == CONFIG_FANS); |