Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pelwell
pelwell / 0001-BCM270X_DT-Sort-nodes-by-bus-address-and-consolidate.patch
Last active August 29, 2015 14:23
Patches to allow I2C2 to be enabled and used. Use with extreme caution.
From 557b787b67d8037601d4efeb1ed2980156c75a60 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Mon, 22 Jun 2015 14:21:55 +0100
Subject: [PATCH 1/2] BCM270X_DT: Sort nodes by bus address, and consolidate
aliases
---
arch/arm/boot/dts/bcm2708-rpi-b-plus.dts | 19 ----------
arch/arm/boot/dts/bcm2708-rpi-b.dts | 19 ----------
arch/arm/boot/dts/bcm2708-rpi-cm.dtsi | 21 -----------
@pelwell
pelwell / 0001-BCM2708-Use-upstream-interrupt-driver-on-all-Pi1-s.patch
Created August 19, 2015 08:26
BCM2708: Use upstream interrupt driver on all Pi1's
From 104951f582f52e7b391b4bcea3ebaa13e28a7a8a Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Wed, 19 Aug 2015 08:49:11 +0100
Subject: [PATCH] BCM2708: Use upstream interrupt driver on all Pi1's
Although the aim is to delete the old armctrl driver, that can't happen
while non-DT configurations are still supported. This commit enables
use of the new FIQ-enabled upstream irqchip driver when DT is enabled
on all BCM2835-based RPi platforms (Models A, B, A+, B+ & CM).
@pelwell
pelwell / 0001-BCM2708-Use-upstream-interrupt-driver-on-all-Pi1-s.patch
Last active August 29, 2015 14:27
BCM2708: Use upstream interrupt driver on all Pi1's (Take 2)
From f27eee8d093a553d7249a9d8e4231f1f0f781c6e Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Wed, 19 Aug 2015 08:49:11 +0100
Subject: [PATCH] BCM2708: Use upstream interrupt driver on all Pi1's
Although the aim is to delete the old armctrl driver, that can't happen
while non-DT configurations are still supported. This commit enables
use of the new FIQ-enabled upstream irqchip driver when DT is enabled
on all BCM2835-based RPi platforms (Models A, B, A+, B+ & CM).
@pelwell
pelwell / 0001-squash-Unbreak-BCM2709-build.patch
Last active August 29, 2015 14:27
squash: Unbreak BCM2709 build
From 1e6be5cac10150d967295575e8192ee2445e167c Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Sat, 22 Aug 2015 16:09:40 +0100
Subject: [PATCH] squash: Unbreak BCM2709 build
---
drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c b/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c
@pelwell
pelwell / pr1163.patch
Last active October 13, 2015 08:33
This diff is the result of replacing the downstream I2S driver with the @HiassofT's modified upstream I2S driver after a simple 2835->2708 textual substitution, because I find it makes it easier to understand the consequences of switching. As you can see, the two drivers are virtually identical.
diff --git a/sound/soc/bcm/bcm2708-i2s.c b/sound/soc/bcm/bcm2708-i2s.c
index ad9ca2c..1eeb131 100644
--- a/sound/soc/bcm/bcm2708-i2s.c
+++ b/sound/soc/bcm/bcm2708-i2s.c
@@ -31,8 +31,6 @@
* General Public License for more details.
*/
-#include "bcm2708-i2s.h"
-
From be3a54cb721546a7b1edf47f338c517fd2a904c3 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Wed, 4 Nov 2015 17:37:33 +0000
Subject: [PATCH] vcilcs: Avoid a potential deadlock when very threaded
See: https://github.com/raspberrypi/firmware/issues/449
---
interface/vmcs_host/vcilcs.c | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
@pelwell
pelwell / 0001-Aux-SPI-1-2-implementation.patch
Created February 23, 2016 15:17
Latest version of patch with cosmetic changes
From dc54420b7665e3344062d0c2571c86cc69fb418f Mon Sep 17 00:00:00 2001
From: Fraser <github@frasersdev.net>
Date: Tue, 23 Feb 2016 10:04:37 +1100
Subject: [PATCH] Aux SPI 1&2 implementation
Adds aux spi 1 & 2 devices for compatible Raspberry Pis.
* Minor config of the driver build environment to ensure they get built
for CONFIG_ARCH_BCM2708 & CONFIG_ARCH_BCM2709 devices.
* Adds the aux spi driver into the defconfigs as a module.
* Adds the auxiliary and spi1/2 devices into the device tree in a
From 52c54a27d20295dfcfd0f8ef3c62efaa8253e8c2 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Thu, 14 Apr 2016 10:02:39 +0100
Subject: [PATCH 1/2] fixup audio
---
arch/arm/boot/dts/overlays/README | 8 ++++--
.../boot/dts/overlays/boomberry-dac-overlay.dts | 3 +--
sound/soc/bcm/boomberry-digi.c | 30 +++++++++++-----------
3 files changed, 22 insertions(+), 19 deletions(-)
@pelwell
pelwell / i2c-mux-overlay.dts
Last active May 11, 2016 11:22
Generic I2C Mux overlay
// Generic I2C Mux overlay
/dts-v1/;
/plugin/;
/{
compatible = "brcm,bcm2708";
fragment@0 {
target = <&i2c_arm>;
WARNING: line over 80 characters
#37: FILE: drivers/net/wireless/realtek/rtl8192cu/core/rtw_ioctl_set.c:538:
+u8 rtw_set_802_11_connect(_adapter* padapter, const u8 *bssid, NDIS_802_11_SSID *ssid)
ERROR: "foo* bar" should be "foo *bar"
#37: FILE: drivers/net/wireless/realtek/rtl8192cu/core/rtw_ioctl_set.c:538:
+u8 rtw_set_802_11_connect(_adapter* padapter, const u8 *bssid, NDIS_802_11_SSID *ssid)
WARNING: line over 80 characters
#76: FILE: drivers/net/wireless/realtek/rtl8192cu/include/autoconf.h:36: