BigW Consortium Gitlab

Commit f378cead by David Frey

Supply platform data for red dv6 battery gauge

parent d9a5ac0d
...@@ -2,6 +2,7 @@ cflags: ...@@ -2,6 +2,7 @@ cflags:
{ {
-DDEBUG -DDEBUG
-I${MANGOH_ROOT}/linux_kernel_modules/ltc294x -I${MANGOH_ROOT}/linux_kernel_modules/ltc294x
-I${MANGOH_ROOT}/linux_kernel_modules/bq27xxx
-I${MANGOH_ROOT}/linux_kernel_modules/bq24296 -I${MANGOH_ROOT}/linux_kernel_modules/bq24296
-I${MANGOH_ROOT}/linux_kernel_modules/iot_slot -I${MANGOH_ROOT}/linux_kernel_modules/iot_slot
-I${MANGOH_ROOT}/linux_kernel_modules/led -I${MANGOH_ROOT}/linux_kernel_modules/led
...@@ -35,6 +36,7 @@ requires: ...@@ -35,6 +36,7 @@ requires:
$CURDIR/../led/led $CURDIR/../led/led
$CURDIR/../bq24296/bq24296 $CURDIR/../bq24296/bq24296
$CURDIR/../ltc294x/ltc294x $CURDIR/../ltc294x/ltc294x
$CURDIR/../bq27xxx/bq27xxx_battery
$CURDIR/../bmp280/bmp280-i2c $CURDIR/../bmp280/bmp280-i2c
$CURDIR/../bmi160/bmi160-i2c $CURDIR/../bmi160/bmi160-i2c
} }
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "ltc294x-platform-data.h" #include "ltc294x-platform-data.h"
#include "bq24190-platform-data.h" #include "bq24190-platform-data.h"
#include "bq27xxx_battery.h"
#include "mangoh_red_mux.h" #include "mangoh_red_mux.h"
#include "mangoh_common.h" #include "mangoh_common.h"
...@@ -177,8 +178,14 @@ static struct i2c_board_info ltc2942_battery_gauge_devinfo = { ...@@ -177,8 +178,14 @@ static struct i2c_board_info ltc2942_battery_gauge_devinfo = {
.platform_data = &ltc2942_battery_gauge_platform_data, .platform_data = &ltc2942_battery_gauge_platform_data,
}; };
static struct bq27426_platform_data bq27426_battery_gauge_platform_data = {
.energy_full_design_uwh = 1600000,
.charge_full_design_uah = 440000,
.voltage_min_design_uv = 3300000,
};
static struct i2c_board_info bq27426_battery_gauge_devinfo = { static struct i2c_board_info bq27426_battery_gauge_devinfo = {
I2C_BOARD_INFO("bq27426", 0x55), I2C_BOARD_INFO("bq27426", 0x55),
.platform_data = &bq27426_battery_gauge_platform_data,
}; };
static struct i2c_board_info mangoh_red_battery_charger_devinfo = { static struct i2c_board_info mangoh_red_battery_charger_devinfo = {
......
...@@ -134,6 +134,7 @@ kernelModules: ...@@ -134,6 +134,7 @@ kernelModules:
$CURDIR/linux_kernel_modules/led/led $CURDIR/linux_kernel_modules/led/led
$CURDIR/linux_kernel_modules/bq24296/bq24296 $CURDIR/linux_kernel_modules/bq24296/bq24296
$CURDIR/linux_kernel_modules/ltc294x/ltc294x $CURDIR/linux_kernel_modules/ltc294x/ltc294x
$CURDIR/linux_kernel_modules/bq27xxx/bq27xxx_battery
$CURDIR/linux_kernel_modules/cp2130/cp2130 $CURDIR/linux_kernel_modules/cp2130/cp2130
$CURDIR/linux_kernel_modules/bmp280/bmp280-i2c $CURDIR/linux_kernel_modules/bmp280/bmp280-i2c
$CURDIR/linux_kernel_modules/bmp280/bmp280 $CURDIR/linux_kernel_modules/bmp280/bmp280
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment