summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2021-03-10 10:36:11 -0800
committerCommit Bot <commit-bot@chromium.org>2021-03-10 20:01:30 +0000
commit45c0c5fecb62a93a7ef9ad840963ac75e8d759f1 (patch)
tree50b2efe2e8134e3fc9a5463f190ebd093e6a49d6
parent3a1ace23597ebca78bf2d85e5a98074ea4c7f2ed (diff)
downloadchrome-ec-45c0c5fecb62a93a7ef9ad840963ac75e8d759f1.tar.gz
brya: Enable MKBP support
This change enables MKBP support by selecting the following configs: * CONFIG_MKBP_EVENT * CONFIG_MKBP_USE_GPIO - This is selected instead of CONFIG_MKBP_USE_GPIO_AND_HOST_EVENT because GPIO_EC_INT_L is also the wake pin for brya. Additionally, GPIO_EC_INT_L is defined to allow mkbp driver to trigger interrupt to AP for tight timestamps. BUG=b:173575131 BRANCH=None TEST=make -j buildall Signed-off-by: Caveh Jalali <caveh@chromium.org> Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: Ia755671d943576ecd8da3a76260c8b87d2ab35ef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2747460 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org>
-rw-r--r--baseboard/brya/baseboard.h3
-rw-r--r--board/brya/board.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/baseboard/brya/baseboard.h b/baseboard/brya/baseboard.h
index ba7d4cbb2e..298c2d0102 100644
--- a/baseboard/brya/baseboard.h
+++ b/baseboard/brya/baseboard.h
@@ -40,6 +40,9 @@
#define CONFIG_HOSTCMD_ESPI
#define CONFIG_HOSTCMD_ESPI_VW_SLP_S4
+#define CONFIG_MKBP_EVENT
+#define CONFIG_MKBP_USE_GPIO
+
/* Common charger defines */
#define CONFIG_CHARGE_MANAGER
#define CONFIG_CHARGER
diff --git a/board/brya/board.h b/board/brya/board.h
index bf902e976c..de9bf5c97d 100644
--- a/board/brya/board.h
+++ b/board/brya/board.h
@@ -61,6 +61,7 @@
*/
#define GPIO_AC_PRESENT GPIO_ACOK_EC_OD
#define GPIO_CPU_PROCHOT GPIO_EC_PROCHOT_ODL
+#define GPIO_EC_INT_L GPIO_EC_PCH_INT_ODL
#define GPIO_ENABLE_BACKLIGHT GPIO_EC_EN_EDP_BL
#define GPIO_ENTERING_RW GPIO_EC_ENTERING_RW
#define GPIO_KBD_KSO2 GPIO_EC_KSO_02_INV