device-lenovo-q706f: add sensor support (MR 5506)
This commit is contained in:
parent
f8882cb4f2
commit
b68204254f
4 changed files with 18 additions and 1 deletions
|
|
@ -0,0 +1,3 @@
|
|||
# iio-sensor-proxy with libssc: accelerometer mount matrix
|
||||
SUBSYSTEM=="misc", KERNEL=="fastrpc-*", ENV{ACCEL_MOUNT_MATRIX}+="0, 1, 0; -1, 0, 0; 0, 0, -1"
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
# Maintainer: chalkin Deng <chalkin@yeah.net>
|
||||
pkgname=device-lenovo-q706f
|
||||
pkgdesc="Lenovo Xiaoxin Pad Pro 12.6 (Lenovo Tab P12 Pro)"
|
||||
pkgver=2
|
||||
pkgver=3
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
|
|
@ -10,6 +10,7 @@ arch="aarch64"
|
|||
options="!check !archcheck"
|
||||
depends="
|
||||
bootmac
|
||||
hexagonrpcd
|
||||
linux-lenovo-q706f
|
||||
make-dynpart-mappings
|
||||
mesa-vulkan-freedreno
|
||||
|
|
@ -19,11 +20,14 @@ depends="
|
|||
swclock-offset
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
replaces="hexagonrpcd-openrc"
|
||||
install="$pkgname.post-install $pkgname.post-upgrade"
|
||||
source="
|
||||
81-libssc-lenovo-q706f.rules
|
||||
alsa-ucm-conf/q706f.conf
|
||||
alsa-ucm-conf/HiFi.conf
|
||||
deviceinfo
|
||||
hexagonrpcd.confd
|
||||
modules-initfs
|
||||
"
|
||||
|
||||
|
|
@ -49,6 +53,10 @@ package() {
|
|||
ln -s ../../Lenovo/q706f/q706f.conf \
|
||||
"$pkgdir/usr/share/alsa/ucm2/conf.d/sm8250/Xiaoxin Pad Pro.conf"
|
||||
|
||||
install -Dm644 "$srcdir"/81-libssc-lenovo-q706f.rules \
|
||||
"$pkgdir"/usr/lib/udev/rules.d/81-libssc-lenovo-q706f.rules
|
||||
install -Dm644 "$srcdir"/hexagonrpcd.confd \
|
||||
"$pkgdir"/etc/conf.d/hexagonrpcd-sdsp
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
|
|
@ -58,6 +66,7 @@ nonfree_firmware() {
|
|||
firmware-lenovo-q706f-adsp
|
||||
firmware-lenovo-q706f-cdsp
|
||||
firmware-lenovo-q706f-cirrus
|
||||
firmware-lenovo-q706f-hexagonfs
|
||||
firmware-lenovo-q706f-slpi
|
||||
firmware-lenovo-q706f-venus
|
||||
linux-firmware-ath11k
|
||||
|
|
@ -70,8 +79,10 @@ nonfree_firmware() {
|
|||
}
|
||||
|
||||
sha512sums="
|
||||
1e0f02d47ea87d467c6e9d824d3b021c97ff29af8fcdf67ac1b75baa2b835f1dcdfc0c9f308a0bdeb3cdf07a8c1e26d66bff8d1337c9cfab1df94c26e9ccfb81 81-libssc-lenovo-q706f.rules
|
||||
7c97ffb7ae3e1fa2e62bdb3c504275db2c830cc1e5b57dd409ae14d020a1ff5f5cb922223c5dd776569cff52415afd26cba83b6acd76aef22a79ffdaf18dcfbd q706f.conf
|
||||
1e93599051d6dfe96a07ca230df9c02ad78126c74ec2295098904d646a9df794378744174b877b4b7ca491fa06c336b0d733c421a81eab23c2bece577610b252 HiFi.conf
|
||||
800ac1d162f4f3b8b8c93e2b451e7841faeb6563831a1b4c5dc2eb16217aa765c9bbdb2a7a9d052eb4d2fb3a3e82a2699f7df877cf56070ce231ca3f9699ee24 deviceinfo
|
||||
75b2087fa574fa39ef42fce17effb1330bd1318d945de3a91094a5a22812fcfe458821f1dd76e5f48a90c525e17169247520b848596107cc7f843cbcfcb5e1c7 hexagonrpcd.confd
|
||||
c0634ddd66ecfe4b39e8bff0b17ea141303d8827d7d498c2a9f19729566f0d5a3900c78ac8c71e8ef5d68e67c625d551e67c790ea01b103fcf38848e8aebfdf1 modules-initfs
|
||||
"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
#!/bin/sh
|
||||
rc-update add qbootctl default
|
||||
rc-update add hexagonrpcd-sdsp
|
||||
|
|
|
|||
2
device/testing/device-lenovo-q706f/hexagonrpcd.confd
Normal file
2
device/testing/device-lenovo-q706f/hexagonrpcd.confd
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Lenovo Tab P12 Pro specific hexagonrpcd firmware directory
|
||||
hexagonrpcd_fw_dir="/usr/share/qcom/sm8250/Lenovo/q706f/"
|
||||
Loading…
Add table
Add a link
Reference in a new issue