summaryrefslogtreecommitdiff
path: root/board/jinlon/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/jinlon/board.c')
-rw-r--r--board/jinlon/board.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/board/jinlon/board.c b/board/jinlon/board.c
index 55faaae736..4df25350a9 100644
--- a/board/jinlon/board.c
+++ b/board/jinlon/board.c
@@ -120,6 +120,8 @@ const struct pwm_t pwm_channels[] = {
[PWM_CH_KBLIGHT] = { .channel = 3, .flags = 0, .freq = 100 },
[PWM_CH_FAN] = {.channel = 5, .flags = PWM_CONFIG_OPEN_DRAIN,
.freq = 25000},
+ [PWM_CH_FAN2] = {.channel = 6, .flags = PWM_CONFIG_OPEN_DRAIN,
+ .freq = 25000},
};
BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
@@ -275,6 +277,13 @@ const struct fan_conf fan_conf_0 = {
.enable_gpio = GPIO_EN_PP5000_FAN,
};
+const struct fan_conf fan_conf_1 = {
+ .flags = FAN_USE_RPM_MODE,
+ .ch = MFT_CH_1, /* Use MFT id to control fan */
+ .pgood_gpio = -1,
+ .enable_gpio = -1,
+};
+
/* Default */
const struct fan_rpm fan_rpm_0 = {
.rpm_min = 3100,
@@ -282,14 +291,22 @@ const struct fan_rpm fan_rpm_0 = {
.rpm_max = 6900,
};
+const struct fan_rpm fan_rpm_1 = {
+ .rpm_min = 3100,
+ .rpm_start = 3100,
+ .rpm_max = 6900,
+};
+
const struct fan_t fans[FAN_CH_COUNT] = {
[FAN_CH_0] = { .conf = &fan_conf_0, .rpm = &fan_rpm_0, },
+ [FAN_CH_1] = { .conf = &fan_conf_1, .rpm = &fan_rpm_1, },
};
/******************************************************************************/
/* MFT channels. These are logically separate from pwm_channels. */
const struct mft_t mft_channels[] = {
[MFT_CH_0] = {NPCX_MFT_MODULE_1, TCKC_LFCLK, PWM_CH_FAN},
+ [MFT_CH_1] = {NPCX_MFT_MODULE_2, TCKC_LFCLK, PWM_CH_FAN2},
};
BUILD_ASSERT(ARRAY_SIZE(mft_channels) == MFT_CH_COUNT);