summaryrefslogtreecommitdiff
path: root/board/mithrax/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/mithrax/board.c')
-rw-r--r--board/mithrax/board.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/board/mithrax/board.c b/board/mithrax/board.c
index 876121aaa3..686da1bbb1 100644
--- a/board/mithrax/board.c
+++ b/board/mithrax/board.c
@@ -27,6 +27,7 @@
#include "usbc_config.h"
#include "keyboard_backlight.h"
#include "rgb_keyboard.h"
+#include "ec_commands.h"
#include "gpio_list.h" /* Must come after other header files. */
@@ -172,9 +173,12 @@ static void rgb_backlight_config(void)
void board_kblight_init(void)
{
if ((IS_ENABLED(CONFIG_PWM_KBLIGHT)) &&
- (ec_cfg_kb_backlight() == SOLID_COLOR))
+ (ec_cfg_kb_backlight() == SOLID_COLOR)) {
kblight_register(&kblight_pwm);
- else if ((IS_ENABLED(CONFIG_RGB_KEYBOARD)) &&
- (ec_cfg_kb_backlight() == RGB))
+ rgbkbd_type = EC_RGBKBD_TYPE_UNKNOWN;
+ } else if ((IS_ENABLED(CONFIG_RGB_KEYBOARD)) &&
+ (ec_cfg_kb_backlight() == RGB)) {
kblight_register(&kblight_rgbkbd);
+ rgbkbd_type = EC_RGBKBD_TYPE_FOUR_ZONES_4_LEDS;
+ }
}