diff options
author | Mulin Chao <mlchao@nuvoton.com> | 2015-08-18 13:09:59 +0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-08-19 08:10:27 +0000 |
commit | 8c633e5af603687d178047930dc502c7deefe0ae (patch) | |
tree | 18ef227d5d2f8ae071ceb819ae4beb9383956eef /board/npcx_evb_arm/board.h | |
parent | b3d1171d42803d40e7a1f83375a1f3c69b1fbd07 (diff) | |
download | chrome-ec-8c633e5af603687d178047930dc502c7deefe0ae.tar.gz |
nuc:
Modified i2c driver into controllers and ports to support I2C0 port 0/1 at
the same time.
Modified drivers:
1. i2c.c: Support i2c controller mechanism and fixed bug for i2c_raw functions
used by i2c_wedge and i2c_unwedge.
2. gpio.c: Fixed bug for gpio_alt_sel since wrong type of func.
3. lpc.c: Fixed bug for port80. Since disabling SUPPORT_P80_SEG, we should
replace GLUE_SDP0/1 with DP80BUF.
BUG=chrome-os-partner:34346
TEST=make buildall -j; test nuvoton IC specific drivers
BRANCH=none
Change-Id: I9919269e4f5e795d9ceb8a4cd2c39abbd7bb6b1a
Signed-off-by: Ian Chao <mlchao@nuvoton.com>
Reviewed-on: https://chromium-review.googlesource.com/294015
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/npcx_evb_arm/board.h')
-rw-r--r-- | board/npcx_evb_arm/board.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/board/npcx_evb_arm/board.h b/board/npcx_evb_arm/board.h index 62856cda56..4c795059ac 100644 --- a/board/npcx_evb_arm/board.h +++ b/board/npcx_evb_arm/board.h @@ -42,7 +42,6 @@ /* Optional feature - used by nuvoton */ #define NPCX_PWM_INPUT_LFCLK /* PWM use LFCLK for input clock */ #define NPCX_MFT_INPUT_LFCLK /* MFT use LFCLK for input clock */ -#define NPCX_I2C0_BUS2 0 /* 0:GPIOB4/B5 1:GPIOB2/B3 as I2C0 */ #define NPCX_UART_MODULE2 0 /* 0:GPIO10/11 1:GPIO64/65 as UART */ #define NPCX_JTAG_MODULE2 0 /* 0:GPIO21/17/16/20 1:GPIOD5/E2/D4/E5 as JTAG*/ #define NPCX_TACH_SEL2 0 /* 0:GPIO40/A4 1:GPIO93/D3 as TACH */ @@ -52,7 +51,7 @@ #undef CONFIG_LOW_POWER_IDLE /* Deep Sleep Support */ /* Single I2C port, where the EC is the master. */ -#define I2C_PORT_MASTER 0 +#define I2C_PORT_MASTER NPCX_I2C_PORT0_0 #define I2C_PORT_HOST 0 #ifndef __ASSEMBLER__ |