summaryrefslogtreecommitdiff
path: root/board/nami/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/nami/board.c')
-rw-r--r--board/nami/board.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/board/nami/board.c b/board/nami/board.c
index af3a4d36f3..9cc93f913b 100644
--- a/board/nami/board.c
+++ b/board/nami/board.c
@@ -32,6 +32,7 @@
#include "hooks.h"
#include "host_command.h"
#include "i2c.h"
+#include "keyboard_backlight.h"
#include "keyboard_scan.h"
#include "lid_switch.h"
#include "math_util.h"
@@ -741,3 +742,20 @@ int board_is_lid_angle_tablet_mode(void)
/* Boards with no GMR sensor use lid angles to detect tablet mode. */
return oem == PROJECT_NAMI || oem == PROJECT_VAYNE;
}
+
+void board_kblight_init(void)
+{
+ switch (oem) {
+ default:
+ case PROJECT_NAMI:
+ case PROJECT_VAYNE:
+ case PROJECT_PANTHEON:
+ kblight_register(&kblight_lm3509);
+ break;
+ case PROJECT_SONA:
+ if (sku == 0x3AE2)
+ break;
+ kblight_register(&kblight_pwm);
+ break;
+ }
+}