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
f378cead
Commit
f378cead
authored
Nov 20, 2018
by
David Frey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Supply platform data for red dv6 battery gauge
parent
d9a5ac0d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
mangoh_red.mdef
linux_kernel_modules/mangoh/mangoh_red.mdef
+2
-0
mangoh_red_board.c
linux_kernel_modules/mangoh/mangoh_red_board.c
+7
-0
mangOH.sdef
mangOH.sdef
+1
-0
No files found.
linux_kernel_modules/mangoh/mangoh_red.mdef
View file @
f378cead
...
@@ -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
}
}
...
...
linux_kernel_modules/mangoh/mangoh_red_board.c
View file @
f378cead
...
@@ -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
=
{
...
...
mangOH.sdef
View file @
f378cead
...
@@ -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
...
...
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