summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/eve/bootblock.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/google/eve/bootblock.c b/src/mainboard/google/eve/bootblock.c
index 2c524f443a..baca9c895c 100644
--- a/src/mainboard/google/eve/bootblock.c
+++ b/src/mainboard/google/eve/bootblock.c
@@ -14,9 +14,13 @@
* GNU General Public License for more details.
*/
+#include <arch/io.h>
#include <bootblock_common.h>
+#include <ec/google/chromeec/ec.h>
#include <gpio.h>
#include <soc/gpio.h>
+#include <soc/iomap.h>
+#include <soc/pm.h>
#include "gpio.h"
static void early_config_gpio(void)
@@ -26,5 +30,12 @@ static void early_config_gpio(void)
void bootblock_mainboard_init(void)
{
+ uint32_t pm1_cnt = inl(ACPI_BASE_ADDRESS + PM1_CNT);
+ uint32_t pm1_sts = inl(ACPI_BASE_ADDRESS + PM1_STS);
+
+ /* Turn on keyboard backlight to indicate we are booting */
+ if ((pm1_sts & WAK_STS) && (acpi_sleep_from_pm1(pm1_cnt) != ACPI_S3))
+ google_chromeec_kbbacklight(75);
+
early_config_gpio();
}