diff options
author | Todd Broch <tbroch@chromium.org> | 2014-11-29 15:53:45 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-12-16 20:29:55 +0000 |
commit | 2666ce13c96779b5b2977b365ef33e85c3868863 (patch) | |
tree | 0b3ca3a5d0d4e9281095f6e8827b4d4ff2b58f7a /board | |
parent | 589836638254829fbb765b0d679b0e27d121c3fa (diff) | |
download | chrome-ec-2666ce13c96779b5b2977b365ef33e85c3868863.tar.gz |
hoho: remove I2C master.
mcdp2850 does not support I2C interface so remove it.
Signed-off-by: Todd Broch <tbroch@chromium.org>
BRANCH=samus
BUG=chrome-os-partner:34122
TEST=manual,
Compiles and no longer see I2C functionality.
Change-Id: I5cab073c68f1766f1673d54124d613c930f92c36
Reviewed-on: https://chromium-review.googlesource.com/232851
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/hoho/board.c | 7 | ||||
-rw-r--r-- | board/hoho/board.h | 4 | ||||
-rw-r--r-- | board/hoho/gpio.inc | 3 |
3 files changed, 0 insertions, 14 deletions
diff --git a/board/hoho/board.c b/board/hoho/board.c index 56ad6af81e..d442d132a9 100644 --- a/board/hoho/board.c +++ b/board/hoho/board.c @@ -10,7 +10,6 @@ #include "ec_version.h" #include "gpio.h" #include "hooks.h" -#include "i2c.h" #include "registers.h" #include "task.h" #include "usb.h" @@ -154,12 +153,6 @@ const struct adc_t adc_channels[] = { }; BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); -/* I2C ports */ -const struct i2c_port_t i2c_ports[] = { - {"master", I2C_PORT_MASTER, 400, GPIO_MCDP_I2C_SCL, GPIO_MCDP_I2C_SDA}, -}; -const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); - const void * const usb_strings[] = { [USB_STR_DESC] = usb_string_desc, [USB_STR_VENDOR] = USB_STRING_DESC("Google Inc."), diff --git a/board/hoho/board.h b/board/hoho/board.h index 614e61c66f..1345c4e1b7 100644 --- a/board/hoho/board.h +++ b/board/hoho/board.h @@ -20,7 +20,6 @@ #define CONFIG_BOARD_PRE_INIT #define CONFIG_CMD_SPI_FLASH #define CONFIG_HW_CRC -#define CONFIG_I2C #define CONFIG_RSA #define CONFIG_RWSIG #define CONFIG_SHA256 @@ -48,9 +47,6 @@ #undef CONFIG_LID_SWITCH #undef CONFIG_TASK_PROFILING -/* I2C ports configuration */ -#define I2C_PORT_MASTER 0 - /* USB configuration */ #define CONFIG_USB_PID 0x5010 #define CONFIG_USB_BCD_DEV 0x0001 /* v 0.01 */ diff --git a/board/hoho/gpio.inc b/board/hoho/gpio.inc index 0aad148307..faa26dba27 100644 --- a/board/hoho/gpio.inc +++ b/board/hoho/gpio.inc @@ -18,8 +18,6 @@ GPIO(MCDP_GPIO1, B, 0, GPIO_INPUT, NULL) GPIO(MCDP_CONFIG1, B, 1, GPIO_INPUT, NULL) GPIO(PD_MCDP_SPI_WP_L, B, 2, GPIO_OUT_LOW, NULL) GPIO(PD_CC1_TX_DATA, B, 4, GPIO_OUT_LOW, NULL) -GPIO(MCDP_I2C_SCL, B, 6, GPIO_INPUT, NULL) -GPIO(MCDP_I2C_SDA, B, 7, GPIO_INPUT, NULL) GPIO(PD_MCDP_SPI_CS_L, B, 12, GPIO_INPUT, NULL) /* Unimplemented signals which we need to emulate for now */ @@ -30,4 +28,3 @@ ALTERNATE(B, 0x0008, 0, MODULE_USB_PD, 0) /* SPI1: SCK(PB3) */ ALTERNATE(B, 0x0200, 2, MODULE_USB_PD, 0) /* TIM17_CH1: PB9 */ ALTERNATE(A, 0x0600, 1, MODULE_UART, GPIO_PULL_UP) /* USART1: PA9/PA10 */ ALTERNATE(B, 0x0C00, 4, MODULE_UART, GPIO_PULL_UP) /* USART3: PB10/PB11 */ -ALTERNATE(B, 0x00C0, 1, MODULE_I2C, 0) /* I2C1 MASTER:PB6/7 */ |