From e5e8f84d412dc97d9e33b12fef61b6657627f772 Mon Sep 17 00:00:00 2001 From: Vijay Hiremath Date: Mon, 31 Aug 2015 17:45:52 -0700 Subject: Kunimitsu: Enable support for limiting the inrush current Enable the support for limiting the inrush current by routing the PCH_SLP_SUS through EC gpio PMIC_SLP_SUS which allows the DUT to boot on charger without the battery / dead battery. This is applicable to Kunimitsu FAB4 only. Enabling the Glados patch for Kunimitsu FAB4. Change-Id: I55de857f7006777640f7853b7bde98ba97e8bd13 Reviewed-on: https://chromium-review.googlesource.com/287378 BUG=chrome-os-partner:44706 TEST=FAB4 prototype boots to UI without battery / dead battery. BRANCH=none Change-Id: Ie81cdf3c59fc02d6d59dd06ca321705ca06e7b88 Signed-off-by: Vijay Hiremath Reviewed-on: https://chromium-review.googlesource.com/296521 Commit-Ready: Vijay P Hiremath Tested-by: Vijay P Hiremath Reviewed-by: Vijay P Hiremath Reviewed-by: Shawn N --- power/skylake.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'power') diff --git a/power/skylake.c b/power/skylake.c index 76f14ea49b..6ef1e85cfc 100644 --- a/power/skylake.c +++ b/power/skylake.c @@ -69,7 +69,7 @@ static void chipset_force_g3(void) * Kunimitsu doesn't yet have pass-thru SLP_SUS_L. * TODO(crosbug.com/p/43075): Remove this when new boards roll out. */ -#ifndef BOARD_KUNIMITSU +#ifndef BOARD_KUNIMITSU_V3 gpio_set_level(GPIO_PMIC_SLP_SUS_L, 0); #endif } @@ -129,7 +129,7 @@ enum power_state power_chipset_init(void) static enum power_state _power_handle_state(enum power_state state) { -#ifndef BOARD_KUNIMITSU +#ifndef BOARD_KUNIMITSU_V3 int tries = 0; #endif @@ -174,7 +174,7 @@ static enum power_state _power_handle_state(enum power_state state) /* Call hooks to initialize PMIC */ hook_notify(HOOK_CHIPSET_PRE_INIT); -#ifndef BOARD_KUNIMITSU +#ifndef BOARD_KUNIMITSU_V3 /* * Allow up to 1s for charger to be initialized, in case * we're trying to boot the AP with no battery. @@ -316,7 +316,7 @@ static void handle_slp_sus(enum power_state state) return; /* Always mimic PCH SLP_SUS request for all other states. */ -#ifndef BOARD_KUNIMITSU +#ifndef BOARD_KUNIMITSU_V3 gpio_set_level(GPIO_PMIC_SLP_SUS_L, gpio_get_level(GPIO_PCH_SLP_SUS_L)); #endif } -- cgit v1.2.1