summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
authorYilun Lin <yllin@google.com>2019-01-18 14:48:15 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-23 10:47:33 -0800
commit579719f073c3b526d5801a3b0cc886cc8246821f (patch)
treedf0d02af69195c16641f118a7bb6d963acb22d0c /power
parent62118f0130fbd11c9f55c98988bede2cbaab7da4 (diff)
downloadchrome-ec-579719f073c3b526d5801a3b0cc886cc8246821f.tar.gz
kukui: Add BOARD_REV 2 configs.
TEST=BOOTBLOCK=... make BOARD=kukui -j flash_ec; and see AP boots. BUG=b:122993147 BRANCH=None Change-Id: I1f76d87aa152ba3c3d7c8697140c7c4769b55d28 Signed-off-by: Yilun Lin <yllin@google.com> Reviewed-on: https://chromium-review.googlesource.com/1420247 Commit-Ready: Yilun Lin <yllin@chromium.org> Tested-by: Yilun Lin <yllin@chromium.org> Reviewed-by: Tony Lin <tonycwlin@google.com> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'power')
-rw-r--r--power/mt8183.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/power/mt8183.c b/power/mt8183.c
index 7d228a679a..fa9b31271c 100644
--- a/power/mt8183.c
+++ b/power/mt8183.c
@@ -52,6 +52,10 @@
*/
#define PMIC_FORCE_RESET_TIME (10 * SECOND)
+#if defined(BOARD_KUKUI) && BOARD_REV < 2
+#define BOARD_KUKUI_REV_LT_2
+#endif
+
/* Data structure for a GPIO operation for power sequencing */
struct power_seq_op {
/* enum gpio_signal in 8 bits */
@@ -71,28 +75,36 @@ BUILD_ASSERT(GPIO_COUNT < 256);
static const struct power_seq_op s5s3_power_seq[] = {
/* Release PMIC watchdog. */
{ GPIO_PMIC_WATCHDOG_L, 1, 0 },
+#ifdef BOARD_KUKUI_REV_LT_2
{ GPIO_PP3300_S3_EN, 1, 2 },
{ GPIO_PP1800_S3_EN, 1, 2 },
+#endif
/* Turn on AP. */
{ GPIO_AP_SYS_RST_L, 1, 2 },
};
/* The power sequence for POWER_S3S0 */
static const struct power_seq_op s3s0_power_seq[] = {
+#ifdef BOARD_KUKUI_REV_LT_2
{ GPIO_PP3300_S0_EN, 1, 0 },
+#endif
};
/* The power sequence for POWER_S0S3 */
static const struct power_seq_op s0s3_power_seq[] = {
+#ifdef BOARD_KUKUI_REV_LT_2
{ GPIO_PP3300_S0_EN, 0, 0 },
+#endif
};
/* The power sequence for POWER_S3S5 */
static const struct power_seq_op s3s5_power_seq[] = {
/* Turn off AP. */
{ GPIO_AP_SYS_RST_L, 0, 0 },
+#ifdef BOARD_KUKUI_REV_LT_2
{ GPIO_PP1800_S3_EN, 0, 2 },
{ GPIO_PP3300_S3_EN, 0, 2 },
+#endif
/* Assert watchdog to PMIC (there may be a 1.6ms debounce) */
{ GPIO_PMIC_WATCHDOG_L, 0, 3 },
};