summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/sllin/sllin_git.bb
blob: f13bcd55be1bab7ffde16f07c9e0d9d7c5b3778e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
DESCRIPTION = "slLIN driver module"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://sllin.c;beginline=7;endline=37;md5=6408e14dba951f8cbe3c2a003a0d89d2"

inherit module

DEPENDS = "virtual/kernel"

SRC_URI = "git://github.com/lin-bus/linux-lin.git;protocol=https;branch=master \
           file://0001-update-makefile.patch;pnum=2 \
           file://0002-5.4-less-than-110-fix.patch;pnum=2 \
"
SRCREV = "beb057d7505e0c4d7c61f3f4927b76916ec00e88"
S = "${WORKDIR}/git/sllin"

PV = "0.1+git${SRCPV}"

KERNEL_MODULE_AUTOLOAD:append = " sllin"
KERNEL_MODULE_PROBECONF:append = " sllin"

SLLINBAUDRATE ??= "9600"
module_conf_sllin = "options sllin baudrate=${SLLINBAUDRATE}"
>/> <Splitter BytesPerFrame="12"> <MOSTSocket Route="5.1 DVD Player Front" Offset="0" Bandwidth="4"/> <MOSTSocket Route="5.1 DVD Player Rear" Offset="4" Bandwidth="4"/> <MOSTSocket Route="5.1 DVD Player Effect" Offset="8" Bandwidth="4"/> </Splitter> </SyncConnection> </Node> <!-- 1st Slim Amplifier --> <Node Address="0x270" Script="slim-amp-config"> <StreamPort ClockConfig="64Fs" DataAlignment="Left16Bit"/> <SyncConnection MuteMode="NoMuting"> <MOSTSocket Route="5.1 DVD Player Front" Bandwidth="4"/> <StreamSocket StreamPinID="SRXA0" Bandwidth="4"/> </SyncConnection> </Node> <!-- 2nd Slim Amplifier --> <Node Address="0x271" Script="slim-amp-config"> <StreamPort ClockConfig="64Fs" DataAlignment="Left16Bit"/> <SyncConnection MuteMode="NoMuting"> <MOSTSocket Route="5.1 DVD Player Rear" Bandwidth="4"/> <StreamSocket StreamPinID="SRXA0" Bandwidth="4"/> </SyncConnection> </Node> <!-- 3rd Slim Amplifier --> <Node Address="0x272" Script="slim-amp-config"> <StreamPort ClockConfig="64Fs" DataAlignment="Left16Bit"/> <SyncConnection MuteMode="NoMuting"> <MOSTSocket Route="5.1 DVD Player Effect" Bandwidth="4"/> <StreamSocket StreamPinID="SRXA0" Bandwidth="4"/> </SyncConnection> </Node> <Script Name="slim-amp-config"> <I2CPortCreate Speed="FastMode"/> <I2CPortWrite Address="0x2A" Payload="1B 80"/> <I2CPortWrite Address="0x2A" Payload="11 B8"/> <I2CPortWrite Address="0x2A" Payload="12 60"/> <I2CPortWrite Address="0x2A" Payload="13 A0"/> <I2CPortWrite Address="0x2A" Payload="14 48"/> <I2CPortWrite Address="0x2A" Payload="20 00 89 77 72"/> <I2CPortWrite Address="0x2A" Payload="06 00"/> <I2CPortWrite Address="0x2A" Payload="05 00"/> <!-- Register 7: Master Volume (Max Volume=07 00 00 and Min Volume=07 03 FF) --> <!-- - together with HAL-MOST-UNICENS binding use "07 03 FF" = muted after start --> <!-- - otherwise use "07 01 50" = default volume --> <I2CPortWrite Address="0x2A" Payload="07 03 FF"/> </Script> <!-- 1st Aux IO --> <Node Address="0x240" Script="aux-io-config"> <StreamPort ClockConfig="64Fs" DataAlignment="Left16Bit"/> <SyncConnection MuteMode="NoMuting"> <MOSTSocket Route="5.1 DVD Player Front" Bandwidth="4"/> <StreamSocket StreamPinID="SRXA1" Bandwidth="4"/> </SyncConnection> </Node> <!-- 2nd Aux IO --> <Node Address="0x241" Script="aux-io-config"> <StreamPort ClockConfig="64Fs" DataAlignment="Left16Bit"/> <SyncConnection MuteMode="NoMuting"> <MOSTSocket Route="5.1 DVD Player Rear" Bandwidth="4"/> <StreamSocket StreamPinID="SRXA1" Bandwidth="4"/> </SyncConnection> </Node> <!-- 3rd Aux IO --> <Node Address="0x242" Script="aux-io-config"> <StreamPort ClockConfig="64Fs" DataAlignment="Left16Bit"/> <SyncConnection MuteMode="NoMuting"> <MOSTSocket Route="5.1 DVD Player Effect" Bandwidth="4"/> <StreamSocket StreamPinID="SRXA1" Bandwidth="4"/> </SyncConnection> </Node> <!-- Script for Aux IO --> <Script Name="aux-io-config"> <I2CPortCreate Speed="FastMode"/> <I2CPortWrite Mode="BurstMode" BlockCount="10" Address="0x18" Length="3" Timeout="100" Payload="00 0f 02 01 00 00 02 a5 df 03 3f 3f 04 02 02 10 30 30 11 00 00 12 00 00 13 00 00 14 00 00"/> <I2CPortWrite Mode="BurstMode" BlockCount="4" Address="0x18" Length="3" Timeout="100" Payload="20 00 00 21 00 00 22 00 00 23 00 00"/> <GPIOPortPinMode PinConfiguration="03 35 04 35 05 35 06 35 07 41 08 40"/> </Script> </Unicens>