summaryrefslogtreecommitdiff
path: root/board/slippy/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/slippy/board.c')
-rw-r--r--board/slippy/board.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/board/slippy/board.c b/board/slippy/board.c
index 9ef0fc02b1..25ecb016aa 100644
--- a/board/slippy/board.c
+++ b/board/slippy/board.c
@@ -12,6 +12,7 @@
#include "common.h"
#include "driver/temp_sensor/g781.h"
#include "extpower.h"
+#include "fan.h"
#include "gpio.h"
#include "host_command.h"
#include "i2c.h"
@@ -20,8 +21,6 @@
#include "lid_switch.h"
#include "peci.h"
#include "power_button.h"
-#include "pwm.h"
-#include "pwm_chip.h"
#include "registers.h"
#include "switch.h"
#include "temp_sensor.h"
@@ -181,11 +180,17 @@ const struct adc_t adc_channels[] = {
};
BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);
-/* PWM channels. Must be in the exactly same order as in enum pwm_channel. */
-const struct pwm_t pwm_channels[] = {
- {CONFIG_FAN_CH_CPU, PWM_CONFIG_HAS_RPM_MODE},
+/* Physical fans. These are logically separate from pwm_channels. */
+const struct fan_t fans[] = {
+ {.flags = FAN_USE_RPM_MODE,
+ .rpm_min = 1000,
+ .rpm_max = 5050,
+ .ch = 2,
+ .pgood_gpio = GPIO_PP5000_PGOOD,
+ .enable_gpio = -1,
+ },
};
-BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
+BUILD_ASSERT(ARRAY_SIZE(fans) == CONFIG_FANS);
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {