summaryrefslogtreecommitdiff
path: root/power/skylake.c
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2015-08-31 17:45:52 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-04 23:02:12 -0700
commite5e8f84d412dc97d9e33b12fef61b6657627f772 (patch)
tree58874f83654d99fac033a2d4ef45b157a56bedd7 /power/skylake.c
parent46493e49aa52af3d8d948dc1a75df3823b83541d (diff)
downloadchrome-ec-e5e8f84d412dc97d9e33b12fef61b6657627f772.tar.gz
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 <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/296521 Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com> Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'power/skylake.c')
-rw-r--r--power/skylake.c8
1 files changed, 4 insertions, 4 deletions
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
}