mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-07 16:11:43 +00:00
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>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
22f61c4527
commit
e3447708a4
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user