motorola-cedric: enable touchscreen (!157)
Add initfs hook to enable it, and set the deviceinfo variable.
This commit is contained in:
parent
c54463924f
commit
7d8dcb7ea6
3 changed files with 8 additions and 3 deletions
|
@ -9,15 +9,18 @@ arch="aarch64"
|
||||||
options="!check !archcheck"
|
options="!check !archcheck"
|
||||||
depends="postmarketos-base linux-motorola-cedric mkbootimg mesa-dri-swrast msm-fb-refresher"
|
depends="postmarketos-base linux-motorola-cedric mkbootimg mesa-dri-swrast msm-fb-refresher"
|
||||||
makedepends="devicepkg-dev"
|
makedepends="devicepkg-dev"
|
||||||
source="deviceinfo"
|
source="deviceinfo initfs-hook.sh"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
devicepkg_build $startdir $pkgname
|
devicepkg_build $startdir $pkgname
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
install -Dm644 "$srcdir"/initfs-hook.sh \
|
||||||
|
"$pkgdir"/etc/postmarketos-mkinitfs/hooks/00-${pkgname}.sh
|
||||||
devicepkg_package $startdir $pkgname
|
devicepkg_package $startdir $pkgname
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sha512sums="fa095c74b9b0c2e5e0dc51c33b7a9feb18097f2841b48ab262f07e09b4c405fd4a03cee31c6cfe61e2830dbe923128d88bafc9ab547d5b2499e313b3c0eb0c13 deviceinfo"
|
sha512sums="89242f5bd55e9c80d80f6439856e280f689b111cae9e7db84f995f4b823cee883e861d33cf88e55072eb83b0640a152c39fb8ec3365e7cf6ccca0f1f16535e4a deviceinfo
|
||||||
|
371dd1df5fa3b81031c9277b45e1b6dc158c2a71ef519c374aac8fd23792004ed7bd8dcba7c3097e08a571d15313acb732e3716ef57ddc6c11f8cb88b8c91670 initfs-hook.sh"
|
||||||
|
|
|
@ -15,7 +15,7 @@ deviceinfo_keyboard="false"
|
||||||
deviceinfo_external_storage="true"
|
deviceinfo_external_storage="true"
|
||||||
deviceinfo_screen_width="1080"
|
deviceinfo_screen_width="1080"
|
||||||
deviceinfo_screen_height="1920"
|
deviceinfo_screen_height="1920"
|
||||||
deviceinfo_dev_touchscreen=""
|
deviceinfo_dev_touchscreen="/dev/input/event2"
|
||||||
deviceinfo_dev_touchscreen_calibration=""
|
deviceinfo_dev_touchscreen_calibration=""
|
||||||
deviceinfo_dev_keyboard=""
|
deviceinfo_dev_keyboard=""
|
||||||
|
|
||||||
|
|
2
device/device-motorola-cedric/initfs-hook.sh
Normal file
2
device/device-motorola-cedric/initfs-hook.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
echo 1 > /sys/devices/soc/78b7000.i2c/i2c-3/3-0020/drv_irq
|
||||||
|
|
Loading…
Reference in a new issue