diff options
author | Myles Watson <mylesgw@chromium.org> | 2014-11-25 15:36:34 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2014-12-31 00:01:21 +0000 |
commit | e3447708a4977036938416daef38ad7d0e8ed650 (patch) | |
tree | 7824490fb8b0a42e825e166cdd9c8c3a7d329b00 /board/hadoken | |
parent | 22f61c45275df8367735eec938863afcc5875791 (diff) | |
download | chrome-ec-e3447708a4977036938416daef38ad7d0e8ed650.tar.gz |
hadoken: Add the BQ27621 configuration parameters.
BUG=chrome-os-partner:34477
BRANCH=none
TEST=Used custom console commands to test the charging levels, temperature, etc.
Signed-off-by: Myles Watson <mylesgw@chromium.org>
Change-Id: I4d357c610244a6057c9f25d2bf0893642fc41719
Reviewed-on: https://chromium-review.googlesource.com/234288
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Tested-by: Myles Watson <mylesgw@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Myles Watson <mylesgw@chromium.org>
Diffstat (limited to 'board/hadoken')
-rw-r--r-- | board/hadoken/board.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/board/hadoken/board.h b/board/hadoken/board.h index db6e53b187..eb496668a5 100644 --- a/board/hadoken/board.h +++ b/board/hadoken/board.h @@ -36,6 +36,21 @@ #define NRF51_TWI_FREQ(port) NRF51_TWI_100KBPS #define NRF51_TWI_PPI_CHAN(port) 0 +#define BATTERY_VOLTAGE_MAX 4425 /* mV */ +#define BATTERY_VOLTAGE_NORMAL 3800 /* mV */ +#define BATTERY_VOLTAGE_MIN 3000 /* mV */ + +#define CONFIG_BATTERY_BQ27621 +#define BQ27621_CHEM_ID 0x0354 /* 4.35V maximum charge */ +#define BQ27621_TOGGLE_POWER_MIN 0 + +#define BQ27621_DESIGN_CAPACITY 120 /* mAh */ +#define BQ27621_DESIGN_ENERGY 444 /* mWh */ +#define BQ27621_TERMINATE_VOLTAGE BATTERY_VOLTAGE_MIN /* mV */ +#define BQ27621_TAPER_CURRENT 6 /* mA */ + +#define I2C_PORT_BATTERY NRF51_TWI_PORT + #include "gpio_signal.h" |