linux-google-smaug: new aport (MR 4007)
This commit is contained in:
parent
54672bdca7
commit
61374468cd
4 changed files with 8043 additions and 0 deletions
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,36 @@
|
|||
From e82cf98ab31abdd6505dda1470098eaff4df51d0 Mon Sep 17 00:00:00 2001
|
||||
From: Jasper Korten <jja2000@gmail.com>
|
||||
Date: Mon, 31 Jul 2023 23:18:02 +0200
|
||||
Subject: [PATCH] arm64: dts: nvidia: tegra210-smaug: Add touch -screen node
|
||||
|
||||
---
|
||||
arch/arm64/boot/dts/nvidia/tegra210-smaug.dts | 13 +++++++++++++
|
||||
1 file changed, 13 insertions(+)
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
|
||||
index c7126b7e4592..490b20d88651 100644
|
||||
--- a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
|
||||
+++ b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
|
||||
@@ -1357,6 +1357,19 @@ bluetooth {
|
||||
};
|
||||
};
|
||||
|
||||
+ i2c@7000c000 {
|
||||
+ status = "okay";
|
||||
+ clock-frequency = <1000000>;
|
||||
+
|
||||
+ touchscreen@20 {
|
||||
+ compatible = "hid-over-i2c";
|
||||
+ reg = <0x20>;
|
||||
+ hid-descr-addr = <0x0020>;
|
||||
+ interrupt-parent = <&gpio>;
|
||||
+ interrupts = <TEGRA_GPIO(X, 1) IRQ_TYPE_EDGE_FALLING>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
i2c@7000c400 {
|
||||
status = "okay";
|
||||
clock-frequency = <1000000>;
|
||||
--
|
||||
2.41.0
|
||||
|
72
device/testing/linux-google-smaug/APKBUILD
Normal file
72
device/testing/linux-google-smaug/APKBUILD
Normal file
|
@ -0,0 +1,72 @@
|
|||
pkgname=linux-google-smaug
|
||||
pkgver=6.3.13
|
||||
pkgrel=0
|
||||
pkgdesc="Mainline kernel fork for Google Pixel C"
|
||||
arch="aarch64"
|
||||
_flavor="${pkgname#linux-}"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps
|
||||
pmb:cross-native
|
||||
pmb:kconfigcheck-community
|
||||
"
|
||||
makedepends="
|
||||
bison
|
||||
findutils
|
||||
flex
|
||||
installkernel
|
||||
openssl-dev
|
||||
perl
|
||||
gmp-dev
|
||||
mpc1-dev
|
||||
mpfr-dev
|
||||
xz
|
||||
"
|
||||
|
||||
_carch="arm64"
|
||||
|
||||
# Source
|
||||
_config="config-$_flavor.$arch"
|
||||
case $pkgver in
|
||||
*.*.*) _kernver=${pkgver%.0};;
|
||||
*.*) _kernver=$pkgver;;
|
||||
esac
|
||||
source="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v${_kernver%%.*}.x/linux-$_kernver.tar.xz
|
||||
$_config
|
||||
0001-Add-JDI-LPM102A188A-display-panel-support.patch
|
||||
0002-arm64-dts-nvidia-tegra210-smaug-Add-touch.patch
|
||||
"
|
||||
builddir="$srcdir/linux-${_kernver//_/-}"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
cp "$srcdir/config-$_flavor.$CARCH" .config
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"/boot
|
||||
make zinstall modules_install dtbs_install \
|
||||
ARCH="$_carch" \
|
||||
INSTALL_PATH="$pkgdir"/boot \
|
||||
INSTALL_MOD_PATH="$pkgdir" \
|
||||
INSTALL_MOD_STRIP=1 \
|
||||
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
||||
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
||||
|
||||
install -D "$builddir"/include/config/kernel.release \
|
||||
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
850f56587c49c7ad3e4873a4b9d8160b0b015ac00dbe272d3fd4b661d18a6e73d1d9dea69376fa002d47b195648c617ef0143a54cdf3bf7c361f0b90cc262e16 linux-6.3.13.tar.xz
|
||||
27ea6d60337ce02a2e484556c5a9d536197792c399693fe00848e6dbeb13b66540dc1803a0d095816ddc8d0609ffa340ef14f1ae831230c31fb7420527cbc938 config-google-smaug.aarch64
|
||||
e0d397f36fece6fbcdef81803bc2c694ad0a085bfa9afb20f2ff20d6981dfc5e0d931608fbdab8eddd01809ce756fae3beb59eb45ea2bff80302bdd74ae0663a 0001-Add-JDI-LPM102A188A-display-panel-support.patch
|
||||
1979cb9316c8253c500d0e21b4b6981f3028ced29ee0a609b3b4d017148afc62ade1a9dca34732d33c1fc94ed723f7d51fa4a06b1f7c8c413b012af7096b89b9 0002-arm64-dts-nvidia-tegra210-smaug-Add-touch.patch
|
||||
"
|
6788
device/testing/linux-google-smaug/config-google-smaug.aarch64
Normal file
6788
device/testing/linux-google-smaug/config-google-smaug.aarch64
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue