mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
samus: configure both fans
Modify board.h and board.c to describe both fans. BUG=chrome-os-partner:23530 BRANCH=samus TEST=manual Power things up, poke at the fans through the EC console. Observe that they're both working and controllable: faninfo fanset 0 2000 faninfo fanduty 1 30 faninfo fanauto 0 faninfo fanauto 1 faninfo Change-Id: I2ba9356f084be12dab0fe0b9a004f66feace1878 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/175369
This commit is contained in:
committed by
chrome-internal-fetch
parent
e18eb27f3a
commit
2aae9d678a
@@ -198,10 +198,17 @@ BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
|
||||
const struct fan_t fans[] = {
|
||||
{.flags = FAN_USE_RPM_MODE,
|
||||
.rpm_min = 1000,
|
||||
.rpm_max = 5050,
|
||||
.rpm_max = 6500,
|
||||
.ch = 2,
|
||||
.pgood_gpio = -1, /* HEY */
|
||||
.enable_gpio = -1, /* HEY */
|
||||
.pgood_gpio = -1,
|
||||
.enable_gpio = -1,
|
||||
},
|
||||
{.flags = FAN_USE_RPM_MODE,
|
||||
.rpm_min = 1000,
|
||||
.rpm_max = 6500,
|
||||
.ch = 3,
|
||||
.pgood_gpio = -1,
|
||||
.enable_gpio = -1,
|
||||
},
|
||||
};
|
||||
BUILD_ASSERT(ARRAY_SIZE(fans) == CONFIG_FANS);
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#define CONFIG_CHARGER_SENSE_RESISTOR 10
|
||||
#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10
|
||||
#define CONFIG_CHARGER_INPUT_CURRENT 2000
|
||||
#define CONFIG_FANS 1 /* HEY */
|
||||
#define CONFIG_FANS 2
|
||||
#define CONFIG_PWM
|
||||
#define CONFIG_PWM_KBLIGHT
|
||||
#define CONFIG_SWITCH_DEDICATED_RECOVERY
|
||||
|
||||
Reference in New Issue
Block a user