mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-11-22 22:10:40 +08:00
update: linux-aarch64-raspberrypi, add 0002-bcm2837-spidev.patch
This commit is contained in:
parent
aa2b2a8ce9
commit
7f2160f0a8
2 changed files with 31 additions and 1 deletions
26
linux-aarch64-raspberrypi/0002-bcm2837-spidev.patch
Normal file
26
linux-aarch64-raspberrypi/0002-bcm2837-spidev.patch
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
|
||||||
|
index 67c01b62b588..36a58e866b2f 100644
|
||||||
|
--- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
|
||||||
|
+++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
|
||||||
|
@@ -104,3 +104,21 @@
|
||||||
|
status = "okay";
|
||||||
|
bus-width = <4>;
|
||||||
|
};
|
||||||
|
+
|
||||||
|
+&spi {
|
||||||
|
+ spidev0: spidev@0{
|
||||||
|
+ compatible = "spidev";
|
||||||
|
+ reg = <0>; /* CE0 */
|
||||||
|
+ #address-cells = <1>;
|
||||||
|
+ #size-cells = <0>;
|
||||||
|
+ spi-max-frequency = <125000000>;
|
||||||
|
+ };
|
||||||
|
+
|
||||||
|
+ spidev1: spidev@1{
|
||||||
|
+ compatible = "spidev";
|
||||||
|
+ reg = <1>; /* CE1 */
|
||||||
|
+ #address-cells = <1>;
|
||||||
|
+ #size-cells = <0>;
|
||||||
|
+ spi-max-frequency = <125000000>;
|
||||||
|
+ };
|
||||||
|
+};
|
|
@ -8,7 +8,7 @@ _srcname=linux-4.19
|
||||||
_kernelname=${pkgbase#linux}
|
_kernelname=${pkgbase#linux}
|
||||||
_desc="AArch64 kernel for RaspberryPi 3"
|
_desc="AArch64 kernel for RaspberryPi 3"
|
||||||
pkgver=4.19.76.r791997.g7a54e45c03bc
|
pkgver=4.19.76.r791997.g7a54e45c03bc
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
arch=('aarch64')
|
arch=('aarch64')
|
||||||
url="https://github.com/raspberrypi/linux"
|
url="https://github.com/raspberrypi/linux"
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
|
@ -17,12 +17,14 @@ options=('!strip')
|
||||||
source=("${_srcname}::git+https://github.com/raspberrypi/linux.git#branch=rpi-4.19.y"
|
source=("${_srcname}::git+https://github.com/raspberrypi/linux.git#branch=rpi-4.19.y"
|
||||||
'config'
|
'config'
|
||||||
'0001-disable-scm-version.patch'
|
'0001-disable-scm-version.patch'
|
||||||
|
'0002-bcm2837-spidev.patch'
|
||||||
'linux.preset'
|
'linux.preset'
|
||||||
'60-linux.hook'
|
'60-linux.hook'
|
||||||
'90-linux.hook')
|
'90-linux.hook')
|
||||||
md5sums=('SKIP'
|
md5sums=('SKIP'
|
||||||
'e2a36c16f036506f55cd2a211d5808a8'
|
'e2a36c16f036506f55cd2a211d5808a8'
|
||||||
'b8a3b7cc32a8786114e29c41636979fc'
|
'b8a3b7cc32a8786114e29c41636979fc'
|
||||||
|
'e99e54e43761358cab79364a3206994e'
|
||||||
'41cb5fef62715ead2dd109dbea8413d6'
|
'41cb5fef62715ead2dd109dbea8413d6'
|
||||||
'ce6c81ad1ad1f8b333fd6077d47abdaf'
|
'ce6c81ad1ad1f8b333fd6077d47abdaf'
|
||||||
'3dc88030a8f2f5a5f97266d99b149f77')
|
'3dc88030a8f2f5a5f97266d99b149f77')
|
||||||
|
@ -32,6 +34,8 @@ prepare() {
|
||||||
|
|
||||||
# disable scm version
|
# disable scm version
|
||||||
patch -p1 < "../0001-disable-scm-version.patch"
|
patch -p1 < "../0001-disable-scm-version.patch"
|
||||||
|
# enable spidev for bcm2837
|
||||||
|
patch -p1 < "../0002-bcm2837-spidev.patch"
|
||||||
|
|
||||||
cat "${srcdir}/config" > ./.config
|
cat "${srcdir}/config" > ./.config
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue