summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/hammer/board.c8
-rw-r--r--board/hammer/board.h6
l---------board/staff1
-rwxr-xr-xutil/flash_ec1
4 files changed, 15 insertions, 1 deletions
diff --git a/board/hammer/board.c b/board/hammer/board.c
index 4f157ad22c..56aefc89e4 100644
--- a/board/hammer/board.c
+++ b/board/hammer/board.c
@@ -54,9 +54,15 @@ const struct i2c_port_t i2c_ports[] = {
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
+#ifdef BOARD_STAFF
+#define KBLIGHT_PWM_FREQ 100 /* Hz */
+#else
+#define KBLIGHT_PWM_FREQ 10000 /* Hz */
+#endif
+
/* PWM channels. Must be in the exactly same order as in enum pwm_channel. */
const struct pwm_t pwm_channels[] = {
- {STM32_TIM(TIM_KBLIGHT), STM32_TIM_CH(1), 0, 10000 /* Hz */ },
+ {STM32_TIM(TIM_KBLIGHT), STM32_TIM_CH(1), 0, KBLIGHT_PWM_FREQ},
};
BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
diff --git a/board/hammer/board.h b/board/hammer/board.h
index 613d98b66b..4debd1d10f 100644
--- a/board/hammer/board.h
+++ b/board/hammer/board.h
@@ -77,7 +77,13 @@
/* USB Configuration */
#define CONFIG_USB
+#ifdef BOARD_STAFF
+#define CONFIG_USB_PID 0x502b
+#elif defined(BOARD_HAMMER)
#define CONFIG_USB_PID 0x5022
+#else
+#error "Invalid board"
+#endif
#define CONFIG_STREAM_USB
#define CONFIG_USB_UPDATE
diff --git a/board/staff b/board/staff
new file mode 120000
index 0000000000..7f4a914148
--- /dev/null
+++ b/board/staff
@@ -0,0 +1 @@
+hammer \ No newline at end of file
diff --git a/util/flash_ec b/util/flash_ec
index c387427329..e2773ecedf 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -74,6 +74,7 @@ BOARDS_STM32=(
ryu
samus_pd
snoball
+ staff
strago_pd
zinger
)