diff options
author | Dino Li <dino.li@ite.com.tw> | 2016-02-18 11:24:02 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-02-18 19:57:36 -0800 |
commit | 15f6889c66ad99c784bf4bd50390ec3a79cb23ce (patch) | |
tree | 3603422b814e595cb140e0bf3db42e0c0eb7a4bb /chip | |
parent | 5efbecb77053b02c6678a26b66f66f39b3499415 (diff) | |
download | chrome-ec-15f6889c66ad99c784bf4bd50390ec3a79cb23ce.tar.gz |
chip: it83xx: it8320 compatibility
To ensure it8320's compatibility on the LPC platform, we need to
disable SPI slave interface (default enabled) so that LPC module
will function normally.
Signed-off-by: Dino Li <dino.li@ite.com.tw>
BRANCH=none
BUG=none
TEST=LPC module of it8320 works normally.
Change-Id: I259651b32f41ebae498e13bf07ebb68e5e520058
Reviewed-on: https://chromium-review.googlesource.com/328142
Commit-Ready: Dino Li <dino.li@ite.com.tw>
Tested-by: Dino Li <dino.li@ite.com.tw>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/it83xx/lpc.c | 2 | ||||
-rw-r--r-- | chip/it83xx/registers.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/chip/it83xx/lpc.c b/chip/it83xx/lpc.c index 02a81c2bd0..519df6731a 100644 --- a/chip/it83xx/lpc.c +++ b/chip/it83xx/lpc.c @@ -566,6 +566,8 @@ static void lpc_init(void) { enum ec2i_message ec2i_r; + /* SPI slave interface is disabled */ + IT83XX_GCTRL_SSCR = 0; /* * DLM 52k~56k size select enable. * For mapping LPC I/O cycle 800h ~ 9FFh to DLM 8D800 ~ 8D9FF. diff --git a/chip/it83xx/registers.h b/chip/it83xx/registers.h index 66c2ace362..efd5083edb 100644 --- a/chip/it83xx/registers.h +++ b/chip/it83xx/registers.h @@ -682,6 +682,7 @@ enum clock_gate_offsets { #define IT83XX_GCTRL_EPLR REG8(IT83XX_GCTRL_BASE+0x37) #define IT83XX_GCTRL_IVTBAR REG8(IT83XX_GCTRL_BASE+0x41) #define IT83XX_GCTRL_MCCR2 REG8(IT83XX_GCTRL_BASE+0x44) +#define IT83XX_GCTRL_SSCR REG8(IT83XX_GCTRL_BASE+0x4A) #define IT83XX_GCTRL_EWPR0PFH(i) REG8(IT83XX_GCTRL_BASE+0x60+i) #define IT83XX_GCTRL_EWPR0PFD(i) REG8(IT83XX_GCTRL_BASE+0xA0+i) #define IT83XX_GCTRL_EWPR0PFEC(i) REG8(IT83XX_GCTRL_BASE+0xC0+i) |