BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
4599bac0
Commit
4599bac0
authored
Nov 16, 2018
by
Ashish Syal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support build for bq25601 and bq27xxxx on yellow
parent
42389f75
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
mangoh_yellow.c
linux_kernel_modules/mangoh/mangoh_yellow.c
+10
-2
mangoh_yellow_dev.mdef
linux_kernel_modules/mangoh/mangoh_yellow_dev.mdef
+2
-2
mangOH.sdef
mangOH.sdef
+1
-2
No files found.
linux_kernel_modules/mangoh/mangoh_yellow.c
View file @
4599bac0
...
...
@@ -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
)
{
...
...
linux_kernel_modules/mangoh/mangoh_yellow_dev.mdef
View file @
4599bac0
...
...
@@ -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
...
...
mangOH.sdef
View file @
4599bac0
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment