BigW Consortium Gitlab

Commit 4599bac0 by Ashish Syal

support build for bq25601 and bq27xxxx on yellow

parent 42389f75
......@@ -14,7 +14,7 @@
#include <linux/i2c/sx150x.h>
#include <linux/spi/spi.h>
#include "bq25601-platform-data.h"
#include "bq27426-platform-data.h"
/*
*-----------------------------------------------------------------------------
* Constants
......@@ -141,8 +141,16 @@ static struct i2c_board_info mangoh_yellow_battery_charger_devinfo = {
I2C_BOARD_INFO("bq25601", 0x6b),
};
static struct bq27426_platform_data mangoh_yellow_battery_gauge_platform_data = {
.energy_full_design_uwh = 1600000,
.charge_full_design_uah = 440000,
.voltage_min_design_uv = 3300000,
};
static struct i2c_board_info mangoh_yellow_battery_gauge_devinfo = {
I2C_BOARD_INFO("bq27426", 0x55),
.platform_data = &mangoh_yellow_battery_gauge_platform_data,
};
static struct i2c_board_info mangoh_yellow_magnetometer_devinfo = {
I2C_BOARD_INFO("bmm150", 0x10),
......@@ -330,7 +338,7 @@ static int mangoh_yellow_probe(struct platform_device* pdev)
/* Map the I2C Battery Gauge */
dev_dbg(&pdev->dev, "mapping battery gauge\n");
mangoh_yellow_driver_data.battery_charger =
mangoh_yellow_driver_data.battery_gauge =
i2c_new_device(i2c_adapter_port2,
&mangoh_yellow_battery_gauge_devinfo);
if (!mangoh_yellow_driver_data.battery_gauge) {
......
......@@ -27,8 +27,8 @@ requires:
$CURDIR/../bmi160/bmi160-i2c
$CURDIR/../bme680/bme680-i2c
$CURDIR/../rtc-pcf85063/rtc-pcf85063
// $CURDIR/../bq25601/bq25601
$CURDIR/../bq27xxx/bq27xxx_battery_i2c
$CURDIR/../bq25601/bq25601
$CURDIR/../bq27xxx/bq27xxx_battery
$CURDIR/../bmm150/bmc150_magn_i2c
$CURDIR/../opt300x/opt300x
$CURDIR/../expander/expander
......
......@@ -173,8 +173,7 @@ kernelModules:
$CURDIR/linux_kernel_modules/bmm150/bmc150_magn
$CURDIR/linux_kernel_modules/rtc-pcf85063/rtc-pcf85063
$CURDIR/linux_kernel_modules/rtc_sync/rtc_sync
// $CURDIR/linux_kernel_modules/bq25601/bq25601
$CURDIR/linux_kernel_modules/bq27xxx/bq27xxx_battery_i2c
$CURDIR/linux_kernel_modules/bq25601/bq25601
$CURDIR/linux_kernel_modules/bq27xxx/bq27xxx_battery
$CURDIR/linux_kernel_modules/opt300x/opt300x
$CURDIR/linux_kernel_modules/expander/expander
......
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