summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/samus/acpi/mainboard.asl18
-rw-r--r--src/mainboard/google/samus/romstage.c6
2 files changed, 23 insertions, 1 deletions
diff --git a/src/mainboard/google/samus/acpi/mainboard.asl b/src/mainboard/google/samus/acpi/mainboard.asl
index 624aa3822b..3aea40c63f 100644
--- a/src/mainboard/google/samus/acpi/mainboard.asl
+++ b/src/mainboard/google/samus/acpi/mainboard.asl
@@ -50,6 +50,24 @@ Scope (\_SB)
Name (_UID, 2)
Name (_PRW, Package() { 14, 0x3 }) // GPIO14
}
+
+ // Keyboard Backlight interface via EC
+ Device (KBLT) {
+ Name (_HID, "GOOG0002")
+ Name (_UID, 1)
+
+ // Read current backlight value
+ Method (KBQC, 0)
+ {
+ Return (\_SB.PCI0.LPCB.EC0.KBLV)
+ }
+
+ // Write new backlight value
+ Method (KBCM, 1)
+ {
+ Store (Arg0, \_SB.PCI0.LPCB.EC0.KBLV)
+ }
+ }
}
Scope (\_SB.PCI0.I2C0)
diff --git a/src/mainboard/google/samus/romstage.c b/src/mainboard/google/samus/romstage.c
index c9e13e1dfb..d6528592e4 100644
--- a/src/mainboard/google/samus/romstage.c
+++ b/src/mainboard/google/samus/romstage.c
@@ -25,6 +25,7 @@
#include <broadwell/gpio.h>
#include <broadwell/pei_data.h>
#include <broadwell/pei_wrapper.h>
+#include <broadwell/pm.h>
#include <broadwell/romstage.h>
#include <mainboard/google/samus/spd/spd.h>
#include <mainboard/google/samus/gpio.h>
@@ -33,7 +34,10 @@ void mainboard_romstage_entry(struct romstage_params *rp)
{
struct pei_data pei_data;
- post_code(0x32);
+ post_code(0x31);
+
+ if (rp->power_state->prev_sleep_state != SLEEP_STATE_S3)
+ google_chromeec_kbbacklight(100);
printk(BIOS_INFO, "MLB: board version %d\n",
google_chromeec_get_board_version());