summaryrefslogtreecommitdiff
path: root/src/mainboard/google/kukui
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/kukui')
-rw-r--r--src/mainboard/google/kukui/mainboard.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/google/kukui/mainboard.c b/src/mainboard/google/kukui/mainboard.c
index 6622286135..268b7caf65 100644
--- a/src/mainboard/google/kukui/mainboard.c
+++ b/src/mainboard/google/kukui/mainboard.c
@@ -8,6 +8,7 @@
#include <console/console.h>
#include <delay.h>
#include <device/device.h>
+#include <ec/google/chromeec/ec.h>
#include <edid.h>
#include <gpio.h>
#include <soc/ddp.h>
@@ -55,6 +56,13 @@ static void configure_audio(void)
gpio_set_mode(GPIO(EINT3), PAD_EINT3_FUNC_I2S3_DO);
}
+static void configure_ec(void)
+{
+ /* EC may need SKU ID to identify if it is clamshell or convertible. */
+ if (CONFIG(BOARD_GOOGLE_JACUZZI_COMMON))
+ google_chromeec_set_sku_id(sku_id());
+}
+
/* Default implementation for boards without panels defined yet. */
struct panel_description __weak *get_panel_description(int panel_id)
{
@@ -191,6 +199,7 @@ static void mainboard_init(struct device *dev)
configure_emmc();
configure_usb();
configure_audio();
+ configure_ec();
if (spm_init())
printk(BIOS_ERR,
"SPM initialization failed, suspend/resume may fail.\n");