mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

* kernel: bump 5.10 to 5.10.65 Manually refreshed: generic/pending-5.10/800-bcma-get-SoC-device-struct-copy-its-DMA-params-to-th.patch bcm27xx/patches-5.10/950-0053-firmware-bcm2835-Support-ARCH_BCM270x.patch bcm27xx/patches-5.10/950-0087-firmware-raspberrypi-Add-backward-compatible-get_thr.patch Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> * kernel: bump 5.10 to 5.10.66 No patches refreshed. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> * kernel: bump 5.10 to 5.10.67 Deleted (upstreamed): bcm27xx/patches-5.10/950-0312-vc4_hdmi-Set-HD_CTL_WHOLSMP-and-HD_CTL_CHALIGN_SET.patch Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> * kernel: bump 5.10 to 5.10.68 Deleted (upstreamed): generic/backport-5.10/610-v5.13-02-netfilter-Fix-fall-through-warnings-for-Clang.patch generic/backport-5.10/792-v5.15-0001-net-dsa-b53-Fix-calculating-number-of-switch-ports.patch generic/backport-5.10/792-v5.15-0002-net-dsa-b53-Set-correct-number-of-ports-in-the-DSA-s.patch generic/backport-5.10/792-v5.15-0003-net-dsa-b53-Fix-IMP-port-setup-on-BCM5301x.patch generic/backport-5.10/840-0001-PCI-of-Don-t-fail-devm_pci_alloc_host_bridge-on-miss.patch generic/backport-5.10/840-0002-PCI-iproc-Fix-BCMA-probe-resource-handling.patch generic/pending-5.10/498-mtd-mtdconcat-select-readwrite-function.patch Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> * kernel: bump 5.10 to 5.10.69 Patches automatically refreshed. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> * kernel: bump 5.10 to 5.10.70 Deleted (upstreamed): bcm53xx/patches-5.10/181-Revert-USB-bcma-Add-a-check-for-devm_gpiod_get.patch Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
81 lines
2.2 KiB
Diff
81 lines
2.2 KiB
Diff
From 6f1c62440eb6846cb8045d7a5480ec7bbe47c96f Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
|
Date: Mon, 15 Aug 2016 10:30:41 +0200
|
|
Subject: [PATCH] BCM53573 minor hacks
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
|
---
|
|
|
|
--- a/arch/arm/boot/dts/bcm53573.dtsi
|
|
+++ b/arch/arm/boot/dts/bcm53573.dtsi
|
|
@@ -54,6 +54,7 @@
|
|
<GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
|
|
<GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
|
|
<GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
|
|
+ clocks = <&ilp>;
|
|
};
|
|
|
|
clocks {
|
|
--- a/drivers/bcma/main.c
|
|
+++ b/drivers/bcma/main.c
|
|
@@ -328,14 +328,6 @@ static int bcma_register_devices(struct
|
|
}
|
|
#endif
|
|
|
|
-#ifdef CONFIG_BCMA_SFLASH
|
|
- if (bus->drv_cc.sflash.present) {
|
|
- err = platform_device_register(&bcma_sflash_dev);
|
|
- if (err)
|
|
- bcma_err(bus, "Error registering serial flash\n");
|
|
- }
|
|
-#endif
|
|
-
|
|
#ifdef CONFIG_BCMA_NFLASH
|
|
if (bus->drv_cc.nflash.present) {
|
|
err = platform_device_register(&bcma_nflash_dev);
|
|
@@ -413,6 +405,14 @@ int bcma_bus_register(struct bcma_bus *b
|
|
bcma_register_core(bus, core);
|
|
}
|
|
|
|
+#ifdef CONFIG_BCMA_SFLASH
|
|
+ if (bus->drv_cc.sflash.present) {
|
|
+ err = platform_device_register(&bcma_sflash_dev);
|
|
+ if (err)
|
|
+ bcma_err(bus, "Error registering serial flash\n");
|
|
+ }
|
|
+#endif
|
|
+
|
|
/* Try to get SPROM */
|
|
err = bcma_sprom_get(bus);
|
|
if (err == -ENOENT) {
|
|
--- a/drivers/clocksource/arm_arch_timer.c
|
|
+++ b/drivers/clocksource/arm_arch_timer.c
|
|
@@ -14,6 +14,7 @@
|
|
#include <linux/smp.h>
|
|
#include <linux/cpu.h>
|
|
#include <linux/cpu_pm.h>
|
|
+#include <linux/clk.h>
|
|
#include <linux/clockchips.h>
|
|
#include <linux/clocksource.h>
|
|
#include <linux/interrupt.h>
|
|
@@ -934,6 +935,16 @@ static void arch_timer_of_configure_rate
|
|
if (of_property_read_u32(np, "clock-frequency", &arch_timer_rate))
|
|
arch_timer_rate = rate;
|
|
|
|
+ /* Get clk rate through clk driver if present */
|
|
+ if (!arch_timer_rate) {
|
|
+ struct clk *clk = of_clk_get(np, 0);
|
|
+
|
|
+ if (!IS_ERR(clk)) {
|
|
+ if (!clk_prepare_enable(clk))
|
|
+ arch_timer_rate = clk_get_rate(clk);
|
|
+ }
|
|
+ }
|
|
+
|
|
/* Check the timer frequency. */
|
|
if (validate_timer_rate())
|
|
pr_warn("frequency not available\n");
|