diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-05-17 12:19:11 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-05-17 12:22:39 -0700 |
commit | 39149579a47f274b0a4326a8828f35bfc2a59837 (patch) | |
tree | 43863041d75c804e7fd4970879abc7c71cf2bc9d /board/bds/board.h | |
parent | 103e055ddac9b3810d74be1336e61ecbebb4fd6d (diff) | |
download | chrome-ec-39149579a47f274b0a4326a8828f35bfc2a59837.tar.gz |
Add a list of I2C ports
This cleans up I2C init and debug commands across boards.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=none
TEST=on link and bds:
i2cscan
lightbar run
powerbtn (to power on system)
temps (to read i2c temp sensors)
battery (to read battery)
charger (to read charger)
Change-Id: If3fb0cdb8d3178592bf68cbb2e72bc4b7f71dec5
Diffstat (limited to 'board/bds/board.h')
-rw-r--r-- | board/bds/board.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/board/bds/board.h b/board/bds/board.h index b570dfdeb3..dd4d887ad0 100644 --- a/board/bds/board.h +++ b/board/bds/board.h @@ -16,15 +16,9 @@ enum adc_channel }; /* I2C ports */ -#define I2C_PORT_BATTERY 5 // port 0 / PB2:3 on Link, open on badger -#define I2C_PORT_CHARGER 5 // port 1 / PA6:7 on Link, user LED on badger -#define I2C_PORT_THERMAL 5 // port 5 / PB6:7 on link, but PG6:7 on badger #define I2C_PORT_LIGHTBAR 5 // port 5 / PA6:7 on link, but PG6:7 on badger -/* I2C port speeds in kbps. All the same because they all share a port */ -#define I2C_SPEED_BATTERY 400 -#define I2C_SPEED_CHARGER 400 -#define I2C_SPEED_LIGHTBAR 400 -#define I2C_SPEED_THERMAL 400 +/* Number of I2C ports used */ +#define I2C_PORTS_USED 1 /* GPIO signal list */ enum gpio_signal { |