From 0c74006a0af26aa044d7e39b4d836306c306e221 Mon Sep 17 00:00:00 2001 From: Shamile Khan Date: Mon, 9 Feb 2015 14:35:24 -0800 Subject: [PATCH] mec1322: Enable HW control of KBC aux buffer This turns on hardware controlled update of bit 5 (AUXOBF) in Keyboard Status Read Register. Previously, this bit was in user-defined mode and not reliable. BUG=None TEST=Tested that keyboard becomes functional on Braswell Ref Design. BRANCH=None Change-Id: I192383ebebb25a027d58da9fc1ef7f3bb3e8da66 Signed-off-by: Shamile Khan Reviewed-on: https://chromium-review.googlesource.com/263948 Reviewed-by: Shawn N Commit-Queue: Kevin K Wong --- chip/mec1322/lpc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chip/mec1322/lpc.c b/chip/mec1322/lpc.c index e9080041c9..c746374a39 100644 --- a/chip/mec1322/lpc.c +++ b/chip/mec1322/lpc.c @@ -212,6 +212,10 @@ static void setup_lpc(void) /* Set up 8042 interface at 0x60/0x64 */ MEC1322_LPC_8042_BAR = 0x00608104; + + /* Set up indication of Auxillary sts */ + MEC1322_8042_KB_CTRL |= 1 << 7; + MEC1322_8042_ACT |= 1; MEC1322_INT_ENABLE(15) |= ((1 << 13) | (1 << 14)); MEC1322_INT_BLK_EN |= 1 << 15;