From df541c6ffdc3ecf2802bad1c235e730cd29f8bfb Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Thu, 24 Oct 2013 11:18:47 -0700 Subject: cleanup: rename I2C_PORT_HOST to I2C_PORT_MASTER Previously, it was really confusing whether I2C_PORT_HOST meant the port where the EC was the master, or the port used to talk to the AP. No functional changes, just a global find/replace and some tidying of unused comments. BUG=chrome-os-partner:18343 BRANCH=none TEST=build all platforms; pass unit tests Change-Id: Ia591ba4577d3399729556e0234ba0db3a0e3c5ea Signed-off-by: Randall Spangler Reviewed-on: https://chromium-review.googlesource.com/174546 Reviewed-by: Alec Berg --- board/nyan/board.h | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'board/nyan/board.h') diff --git a/board/nyan/board.h b/board/nyan/board.h index 6ea63a06dd..c43c664943 100644 --- a/board/nyan/board.h +++ b/board/nyan/board.h @@ -38,22 +38,10 @@ enum module_id { /* Keyboard output port list */ #define KB_OUT_PORT_LIST GPIO_A, GPIO_B, GPIO_C -/* - * Charging. - * - * "HOST" means the port where the EC is the master, which has the battery, - * charger and PMU. - * - * "SLAVE" means the port where the EC is the slave, which has the AP (host - * processor). - * - * TODO: In this context, "host" is badly overloaded and confusing. - */ -#define I2C_PORT_HOST 0 -#define I2C_PORT_BATTERY I2C_PORT_HOST -#define I2C_PORT_CHARGER I2C_PORT_HOST -#define I2C_PORT_SLAVE 1 -#define I2C_PORTS_USED 1 +/* Single I2C port, where the EC is the master. */ +#define I2C_PORT_MASTER 0 +#define I2C_PORT_BATTERY I2C_PORT_MASTER +#define I2C_PORT_CHARGER I2C_PORT_MASTER /* Timer selection */ #define TIM_CLOCK_MSB 3 -- cgit v1.2.1