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
f3a6f9ca
Commit
f3a6f9ca
authored
Jun 22, 2018
by
David Frey
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for_18.05.1'
parents
8fb60ecb
fd1399c4
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
219 additions
and
55 deletions
+219
-55
Makefile
Makefile
+1
-1
bme680-i2c.mdef
linux_kernel_modules/bme680/bme680-i2c.mdef
+10
-1
bmi088-i2c.mdef
linux_kernel_modules/bmi088/bmi088-i2c.mdef
+0
-0
bmi160-i2c.mdef
linux_kernel_modules/bmi160/bmi160-i2c.mdef
+7
-0
bmi160.mdef
linux_kernel_modules/bmi160/bmi160.mdef
+9
-1
bmp280-i2c.mdef
linux_kernel_modules/bmp280/bmp280-i2c.mdef
+7
-0
bmp280-spi.mdef
linux_kernel_modules/bmp280/bmp280-spi.mdef
+7
-0
bmp280.mdef
linux_kernel_modules/bmp280/bmp280.mdef
+9
-0
bq24296.mdef
linux_kernel_modules/bq24296/bq24296.mdef
+0
-0
can-bcm.mdef
linux_kernel_modules/can/can-bcm.mdef
+8
-0
can-dev.mdef
linux_kernel_modules/can/can-dev.mdef
+7
-0
can-raw.mdef
linux_kernel_modules/can/can-raw.mdef
+8
-0
can.mdef
linux_kernel_modules/can/can.mdef
+0
-0
mcp251x.mdef
linux_kernel_modules/can/mcp251x.mdef
+7
-0
vcan.mdef
linux_kernel_modules/can/vcan.mdef
+8
-0
cp2130
linux_kernel_modules/cp2130
+1
-1
iio-kfifo-buf.mdef
linux_kernel_modules/iio/iio-kfifo-buf.mdef
+9
-0
iio-triggered-buffer.mdef
linux_kernel_modules/iio/iio-triggered-buffer.mdef
+7
-0
iio.mdef
linux_kernel_modules/iio/iio.mdef
+0
-0
iot_slot.mdef
linux_kernel_modules/iot_slot/iot_slot.mdef
+0
-0
led.mdef
linux_kernel_modules/led/led.mdef
+0
-0
lsm6ds3-i2c.mdef
linux_kernel_modules/lsm6ds3/lsm6ds3-i2c.mdef
+8
-0
lsm6ds3-spi.mdef
linux_kernel_modules/lsm6ds3/lsm6ds3-spi.mdef
+8
-0
lsm6ds3.mdef
linux_kernel_modules/lsm6ds3/lsm6ds3.mdef
+0
-0
ltc294x.mdef
linux_kernel_modules/ltc294x/ltc294x.mdef
+0
-0
mangoh_green_dv4.mdef
linux_kernel_modules/mangoh/mangoh_green_dv4.mdef
+10
-1
mangoh_red_dv2.mdef
linux_kernel_modules/mangoh/mangoh_red_dv2.mdef
+0
-0
mangoh_red_dv3.mdef
linux_kernel_modules/mangoh/mangoh_red_dv3.mdef
+0
-0
mangoh_red_dv5.mdef
linux_kernel_modules/mangoh/mangoh_red_dv5.mdef
+13
-0
mangoh_yellow_dv1.mdef
linux_kernel_modules/mangoh/mangoh_yellow_dv1.mdef
+11
-0
mt7697q.mdef
linux_kernel_modules/mt7697q/mt7697q.mdef
+14
-0
mt7697serial.mdef
linux_kernel_modules/mt7697serial/mt7697serial.mdef
+0
-0
mt7697wifi_core.mdef
linux_kernel_modules/mt7697wifi/mt7697wifi_core.mdef
+11
-0
mtwifi
linux_kernel_modules/mt7697wifi/scripts/mtwifi
+4
-4
mangOH.sdef
mangOH.sdef
+35
-46
No files found.
Makefile
View file @
f3a6f9ca
...
...
@@ -23,7 +23,7 @@ MKSYS_ARGS_YELLOW = --output-dir=build/update_files/yellow
export
PATH
:=
$(LEGATO_ROOT)
/bin:
$(PATH)
.PHONY
:
all
all
:
green_wp85 green_wp750x green_wp76xx green_wp77xx red_wp85 red_wp750x red_wp76xx red_wp77xx
yellow_wp76xx
all
:
green_wp85 green_wp750x green_wp76xx green_wp77xx red_wp85 red_wp750x red_wp76xx red_wp77xx
LEGATO
?=
1
.PHONY
:
legato_%
...
...
linux_kernel_modules/bme680/
3-
bme680-i2c.mdef
→
linux_kernel_modules/bme680/bme680-i2c.mdef
View file @
f3a6f9ca
...
...
@@ -9,8 +9,17 @@ cflags:
sources:
{
./
BME680_driver/bme680.c
BME680_driver/bme680.c
bme680-i2c.c
bme680-regmap.c
}
requires:
{
kernelModules:
{
#if ${MANGOH_KERNEL_LACKS_IIO} = 1
$CURDIR/../iio/iio
#endif // MANGOH_KERNEL_LACKS_IIO
}
}
linux_kernel_modules/bmi088/
4-
bmi088-i2c.mdef
→
linux_kernel_modules/bmi088/bmi088-i2c.mdef
View file @
f3a6f9ca
File moved
linux_kernel_modules/bmi160/
4-
bmi160-i2c.mdef
→
linux_kernel_modules/bmi160/bmi160-i2c.mdef
View file @
f3a6f9ca
...
...
@@ -15,3 +15,10 @@ sources:
bmi160_i2c.c
}
requires:
{
kernelModules:
{
$CURDIR/bmi160
}
}
linux_kernel_modules/bmi160/
3-
bmi160.mdef
→
linux_kernel_modules/bmi160/bmi160.mdef
View file @
f3a6f9ca
...
...
@@ -13,4 +13,12 @@ sources:
bmi160_core.c
}
requires:
{
kernelModules:
{
#if ${MANGOH_KERNEL_LACKS_IIO} = 1
$CURDIR/../iio/iio-triggered-buffer
#endif // MANGOH_KERNEL_LACKS_IIO
}
}
linux_kernel_modules/bmp280/
3-
bmp280-i2c.mdef
→
linux_kernel_modules/bmp280/bmp280-i2c.mdef
View file @
f3a6f9ca
...
...
@@ -3,3 +3,10 @@ sources:
bmp280-i2c.c
}
requires:
{
kernelModules:
{
$CURDIR/bmp280
}
}
linux_kernel_modules/bmp280/
3-
bmp280-spi.mdef
→
linux_kernel_modules/bmp280/bmp280-spi.mdef
View file @
f3a6f9ca
...
...
@@ -3,3 +3,10 @@ sources:
bmp280-spi.c
}
requires:
{
kernelModules:
{
$CURDIR/bmp280
}
}
linux_kernel_modules/bmp280/
2-
bmp280.mdef
→
linux_kernel_modules/bmp280/bmp280.mdef
View file @
f3a6f9ca
...
...
@@ -10,3 +10,12 @@ sources:
bmp280-regmap.c
}
requires:
{
kernelModules:
{
#if ${MANGOH_KERNEL_LACKS_IIO} = 1
$CURDIR/../iio/iio-kfifo-buf
#endif // MANGOH_KERNEL_LACKS_IIO
}
}
linux_kernel_modules/bq24296/
0-
bq24296.mdef
→
linux_kernel_modules/bq24296/bq24296.mdef
View file @
f3a6f9ca
File moved
linux_kernel_modules/can/
1-
can-bcm.mdef
→
linux_kernel_modules/can/can-bcm.mdef
View file @
f3a6f9ca
...
...
@@ -2,3 +2,11 @@ sources:
{
bcm.c
}
requires:
{
kernelModules:
{
$CURDIR/can
}
}
linux_kernel_modules/can/
2-
can-dev.mdef
→
linux_kernel_modules/can/can-dev.mdef
View file @
f3a6f9ca
...
...
@@ -8,3 +8,10 @@ cflags:
-DCONFIG_CAN_CALC_BITTIMING
}
requires:
{
kernelModules:
{
$CURDIR/can
}
}
linux_kernel_modules/can/
1-
can-raw.mdef
→
linux_kernel_modules/can/can-raw.mdef
View file @
f3a6f9ca
...
...
@@ -2,3 +2,11 @@ sources:
{
raw.c
}
requires:
{
kernelModules:
{
$CURDIR/can
}
}
linux_kernel_modules/can/
0-
can.mdef
→
linux_kernel_modules/can/can.mdef
View file @
f3a6f9ca
File moved
linux_kernel_modules/can/
3-
mcp251x.mdef
→
linux_kernel_modules/can/mcp251x.mdef
View file @
f3a6f9ca
...
...
@@ -3,3 +3,10 @@ sources:
mcp251x.c
}
requires:
{
kernelModules:
{
$CURDIR/can-dev
}
}
linux_kernel_modules/can/
2-
vcan.mdef
→
linux_kernel_modules/can/vcan.mdef
View file @
f3a6f9ca
...
...
@@ -2,3 +2,11 @@ sources:
{
vcan.c
}
requires:
{
kernelModules:
{
$CURDIR/can
}
}
cp2130
@
d3a35c68
Subproject commit
103c5a071d7ad191b3bd7faa84de4a72aeeec700
Subproject commit
d3a35c68d4c1f20037c8c24dba185edacc2b8ebc
linux_kernel_modules/iio/
1-
iio-kfifo-buf.mdef
→
linux_kernel_modules/iio/iio-kfifo-buf.mdef
View file @
f3a6f9ca
...
...
@@ -12,3 +12,11 @@ sources:
kfifo_buf.c
}
requires:
{
kernelModules:
{
$CURDIR/iio
}
}
\ No newline at end of file
linux_kernel_modules/iio/
2-
iio-triggered-buffer.mdef
→
linux_kernel_modules/iio/iio-triggered-buffer.mdef
View file @
f3a6f9ca
...
...
@@ -13,3 +13,10 @@ sources:
industrialio-triggered-buffer.c
}
requires:
{
kernelModules:
{
$CURDIR/iio-kfifo-buf
}
}
linux_kernel_modules/iio/
0-
iio.mdef
→
linux_kernel_modules/iio/iio.mdef
View file @
f3a6f9ca
File moved
linux_kernel_modules/iot_slot/
0-
iot_slot.mdef
→
linux_kernel_modules/iot_slot/iot_slot.mdef
View file @
f3a6f9ca
File moved
linux_kernel_modules/led/
0-
led.mdef
→
linux_kernel_modules/led/led.mdef
View file @
f3a6f9ca
File moved
linux_kernel_modules/lsm6ds3/
1-
lsm6ds3-i2c.mdef
→
linux_kernel_modules/lsm6ds3/lsm6ds3-i2c.mdef
View file @
f3a6f9ca
...
...
@@ -2,3 +2,11 @@ sources:
{
lsm6ds3_i2c.c
}
requires:
{
kernelModules:
{
$CURDIR/lsm6ds3
}
}
linux_kernel_modules/lsm6ds3/
1-
lsm6ds3-spi.mdef
→
linux_kernel_modules/lsm6ds3/lsm6ds3-spi.mdef
View file @
f3a6f9ca
...
...
@@ -2,3 +2,11 @@ sources:
{
lsm6ds3_spi.c
}
requires:
{
kernelModules:
{
$CURDIR/lsm6ds3
}
}
linux_kernel_modules/lsm6ds3/
0-
lsm6ds3.mdef
→
linux_kernel_modules/lsm6ds3/lsm6ds3.mdef
View file @
f3a6f9ca
File moved
linux_kernel_modules/ltc294x/
0-
ltc294x.mdef
→
linux_kernel_modules/ltc294x/ltc294x.mdef
View file @
f3a6f9ca
File moved
linux_kernel_modules/mangoh/
9-
mangoh_green_dv4.mdef
→
linux_kernel_modules/mangoh/mangoh_green_dv4.mdef
View file @
f3a6f9ca
...
...
@@ -2,7 +2,6 @@ cflags:
{
// Needed for lsm6ds3 platform data type definition
-I${MANGOH_ROOT}/linux_kernel_modules/lsm6ds3
-I${MANGOH_ROOT}/linux_kernel_modules/ltc294x
}
sources:
...
...
@@ -14,3 +13,12 @@ params:
{
revision = "dv4"
}
requires:
{
kernelModules:
{
$CURDIR/../lsm6ds3/lsm6ds3-i2c
$LEGATO_ROOT/drivers/spisvc/spisvc
}
}
\ No newline at end of file
linux_kernel_modules/mangoh/
9-
mangoh_red_dv2.mdef
→
linux_kernel_modules/mangoh/mangoh_red_dv2.mdef
View file @
f3a6f9ca
File moved
linux_kernel_modules/mangoh/
9-
mangoh_red_dv3.mdef
→
linux_kernel_modules/mangoh/mangoh_red_dv3.mdef
View file @
f3a6f9ca
File moved
linux_kernel_modules/mangoh/
9-
mangoh_red_dv5.mdef
→
linux_kernel_modules/mangoh/mangoh_red_dv5.mdef
View file @
f3a6f9ca
cflags:
{
-DDEBUG
// Needed for lsm6ds3 platform data type definition
-I${MANGOH_ROOT}/linux_kernel_modules/lsm6ds3
-I${MANGOH_ROOT}/linux_kernel_modules/ltc294x
...
...
@@ -18,3 +19,15 @@ params:
{
revision = "dv5"
}
requires:
{
kernelModules:
{
$CURDIR/../led/led
$CURDIR/../bq24296/bq24296
$CURDIR/../ltc294x/ltc294x
$CURDIR/../bmp280/bmp280-i2c
$CURDIR/../bmi160/bmi160-i2c
}
}
linux_kernel_modules/mangoh/
9-
mangoh_yellow_dv1.mdef
→
linux_kernel_modules/mangoh/mangoh_yellow_dv1.mdef
View file @
f3a6f9ca
...
...
@@ -12,3 +12,13 @@ params:
{
revision = "dv1"
}
requires:
{
kernelModules:
{
$CURDIR/../bme680/bme680-i2c
$CURDIR/../bmi088/bmi088-i2c
}
}
\ No newline at end of file
linux_kernel_modules/mt7697q/
1-
mt7697q.mdef
→
linux_kernel_modules/mt7697q/mt7697q.mdef
View file @
f3a6f9ca
...
...
@@ -13,3 +13,17 @@ cflags:
-I$MANGOH_ROOT/linux_kernel_modules/mt7697common
}
requires:
{
kernelModules:
{
$CURDIR/../cp2130/cp2130
}
}
/*
* The mt7697q module must be manual load because the init() will try to access
* the USB device provided by the cp2130 driver and the device may not have had
* time to enumerate at the time that the this module loads.
*/
// load: manual
linux_kernel_modules/mt7697serial/
1-
mt7697serial.mdef
→
linux_kernel_modules/mt7697serial/mt7697serial.mdef
View file @
f3a6f9ca
File moved
linux_kernel_modules/mt7697wifi/
2-
mt7697wifi_core.mdef
→
linux_kernel_modules/mt7697wifi/mt7697wifi_core.mdef
View file @
f3a6f9ca
...
...
@@ -26,3 +26,14 @@ cflags:
-I$MANGOH_ROOT/linux_kernel_modules/mt7697q
-I$MANGOH_ROOT/linux_kernel_modules/mt7697serial
}
requires:
{
kernelModules:
{
$CURDIR/../mt7697q/mt7697q
$CURDIR/../mt7697serial/mt7697serial
}
}
load: manual
linux_kernel_modules/mt7697wifi/scripts/mtwifi
View file @
f3a6f9ca
...
...
@@ -28,10 +28,10 @@ mt_wifi_start() {
sleep
2
fi
lsmod |
grep
2_
mt7697wifi_core
>
/dev/null
lsmod |
grep
mt7697wifi_core
>
/dev/null
if
[
$?
-eq
1
]
;
then
hw_itf
=
`
echo
$1
|
tr
'[A-Z]'
'[a-z]'
`
insmod /legato/systems/current/modules/
2-
mt7697wifi_core.ko
hw_itf
=
$hw_itf
itf_idx_start
=
$2
||
exit
127
insmod /legato/systems/current/modules/mt7697wifi_core.ko
hw_itf
=
$hw_itf
itf_idx_start
=
$2
||
exit
127
echo
"Initialized MT7697 WiFi core"
;
sleep
5
fi
...
...
@@ -63,9 +63,9 @@ mt_wifi_stop() {
ifconfig wlan
$1
down
fi
lsmod |
grep
2_
mt7697wifi_core
>
/dev/null
lsmod |
grep
mt7697wifi_core
>
/dev/null
if
[
$?
-eq
0
]
;
then
rmmod
2_
mt7697wifi_core
||
exit
127
rmmod mt7697wifi_core
||
exit
127
echo
"Removed MT7697 WiFi core"
;
exit
127
fi
}
...
...
mangOH.sdef
View file @
f3a6f9ca
...
...
@@ -97,62 +97,51 @@ componentSearch:
kernelModules:
{
#if ${MANGOH_BOARD} = RED
// $MANGOH_ROOT/linux_kernel_modules/mangoh/9-mangoh_red_dv2
// $MANGOH_ROOT/linux_kernel_modules/mangoh/9-mangoh_red_dv3
$MANGOH_ROOT/linux_kernel_modules/mangoh/9-mangoh_red_dv5
$CURDIR/linux_kernel_modules/mangoh/mangoh_red_dv5
// USB to SPI adapter connected to the mt7697 and RPi header
$MANGOH_ROOT/linux_kernel_modules/cp2130/0-cp2130
// temperature and pressure sensor
$MANGOH_ROOT/linux_kernel_modules/bmp280/2-bmp280
$MANGOH_ROOT/linux_kernel_modules/bmp280/3-bmp280-i2c
// accelerometer on DV3 and later board revs
$MANGOH_ROOT/linux_kernel_modules/bmi160/3-bmi160
$MANGOH_ROOT/linux_kernel_modules/bmi160/4-bmi160-i2c
// accelerometer on DV2 boards
// $MANGOH_ROOT/linux_kernel_modules/lsm6ds3/0-lsm6ds3
// $MANGOH_ROOT/linux_kernel_modules/lsm6ds3/1-lsm6ds3-i2c
// battery gauge
$MANGOH_ROOT/linux_kernel_modules/ltc294x/0-ltc294x.mdef
// battery charger
$MANGOH_ROOT/linux_kernel_modules/bq24296/0-bq24296.mdef
// LED on GPIO driver
$MANGOH_ROOT/linux_kernel_modules/led/0-led
#if ${MANGOH_SUPPORT_MT7697_WIFI} = 1
$CURDIR/linux_kernel_modules/mt7697wifi/mt7697wifi_core
#endif // MANGOH_SUPPORT_MT7697_WIFI
/*
* Dependencies of the above kernel modules - must be listed explicitly in the SDEF due to the
* way that Legato kernel module dependencies work
*/
$CURDIR/linux_kernel_modules/led/led
$CURDIR/linux_kernel_modules/bq24296/bq24296
$CURDIR/linux_kernel_modules/ltc294x/ltc294x
$CURDIR/linux_kernel_modules/cp2130/cp2130
$CURDIR/linux_kernel_modules/bmp280/bmp280-i2c
$CURDIR/linux_kernel_modules/bmp280/bmp280
$CURDIR/linux_kernel_modules/bmi160/bmi160-i2c
$CURDIR/linux_kernel_modules/bmi160/bmi160
#if ${MANGOH_KERNEL_LACKS_IIO} = 1
// Required for bmp280 & bmi160
$MANGOH_ROOT/linux_kernel_modules/iio/0-iio
$MANGOH_ROOT/linux_kernel_modules/iio/1-iio-kfifo-buf
// Required for bmi160
$MANGOH_ROOT/linux_kernel_modules/iio/2-iio-triggered-buffer
$CURDIR/linux_kernel_modules/iio/iio-triggered-buffer
$CURDIR/linux_kernel_modules/iio/iio-kfifo-buf
$CURDIR/linux_kernel_modules/iio/iio
#endif // MANGOH_KERNEL_LACKS_IIO
#if ${MANGOH_SUPPORT_MT7697_WIFI} = 1
$MANGOH_ROOT/linux_kernel_modules/mt7697q/1-mt7697q
$MANGOH_ROOT/linux_kernel_modules/mt7697serial/1-mt7697serial
$MANGOH_ROOT/linux_kernel_modules/mt7697wifi/2-mt7697wifi_core
$CURDIR/linux_kernel_modules/mt7697q/mt7697q
$CURDIR/linux_kernel_modules/mt7697serial/mt7697serial
#endif // MANGOH_SUPPORT_MT7697_WIFI
// Disabled for now. See comment at top of file regarding GPIO expander service
// $MANGOH_ROOT/linux_kernel_modules/iot_slot/0-iot_slot
#elif ${MANGOH_BOARD} = GREEN
$
MANGOH_ROOT/linux_kernel_modules/mangoh/9-
mangoh_green_dv4
$
CURDIR/linux_kernel_modules/mangoh/
mangoh_green_dv4
// accelerometer driver
$MANGOH_ROOT/linux_kernel_modules/lsm6ds3/0-lsm6ds3
$MANGOH_ROOT/linux_kernel_modules/lsm6ds3/1-lsm6ds3-i2c
/*
* Dependencies of the above kernel modules - must be listed explicitly in the SDEF due to the
* way that Legato kernel module dependencies work
*/
$CURDIR/linux_kernel_modules/lsm6ds3/lsm6ds3-i2c
$CURDIR/linux_kernel_modules/lsm6ds3/lsm6ds3
#elif ${MANGOH_BOARD} = YELLOW
$
MANGOH_ROOT/linux_kernel_modules/mangoh/9-
mangoh_yellow_dv1
$
CURDIR/linux_kernel_modules/mangoh/
mangoh_yellow_dv1
$MANGOH_ROOT/linux_kernel_modules/bme680/3-bme680-i2c
$MANGOH_ROOT/linux_kernel_modules/bmi088/4-bmi088-i2c
/*
* Dependencies of the above kernel modules - must be listed explicitly in the SDEF due to the
* way that Legato kernel module dependencies work
*/
$CURDIR/linux_kernel_modules/bme680/bme680-i2c
$CURDIR/linux_kernel_modules/bmi088/bmi088-i2c
#endif // MANGOH_BOARD
$LEGATO_ROOT/drivers/spisvc/spisvc
...
...
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