diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2014-10-27 23:02:08 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-10-27 23:02:08 +0000 |
commit | 7fc9bb1acac85c3267eaa1263ae66dcd2c5fe65f (patch) | |
tree | 1181c8927553d85ada9ddf83a1d554cd000ae451 /target/linux/bcm53xx/patches-3.18/121-bcma-get-irqs-from-dt.patch | |
parent | d8d692342f35d7e61a1d998bcb0f8d060da073d2 (diff) | |
download | upstream-7fc9bb1acac85c3267eaa1263ae66dcd2c5fe65f.tar.gz upstream-7fc9bb1acac85c3267eaa1263ae66dcd2c5fe65f.tar.bz2 upstream-7fc9bb1acac85c3267eaa1263ae66dcd2c5fe65f.zip |
bcm53xx: initial support for kernel 3.18
This adds initial support for kernel 3.18.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43097
Diffstat (limited to 'target/linux/bcm53xx/patches-3.18/121-bcma-get-irqs-from-dt.patch')
-rw-r--r-- | target/linux/bcm53xx/patches-3.18/121-bcma-get-irqs-from-dt.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/patches-3.18/121-bcma-get-irqs-from-dt.patch b/target/linux/bcm53xx/patches-3.18/121-bcma-get-irqs-from-dt.patch new file mode 100644 index 0000000000..e38b5bc1c6 --- /dev/null +++ b/target/linux/bcm53xx/patches-3.18/121-bcma-get-irqs-from-dt.patch @@ -0,0 +1,38 @@ +From 6611afa6c49434780096cdf2c1028f0ac277f9bc Mon Sep 17 00:00:00 2001 +From: Hauke Mehrtens <hauke@hauke-m.de> +Date: Thu, 9 Jan 2014 19:40:14 +0100 +Subject: [PATCH v3 2/2] bcma: get IRQ numbers from dt + +It is not possible to auto detect the irq numbers used by the cores on +an arm SoC. If bcma was registered with device tree it will search for +some device tree nodes with the irq number and add it to the core +configuration. + +Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> +--- + drivers/bcma/main.c | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 48 insertions(+), 1 deletion(-) + +--- a/drivers/bcma/main.c ++++ b/drivers/bcma/main.c +@@ -10,6 +10,7 @@ + #include <linux/platform_device.h> + #include <linux/bcma/bcma.h> + #include <linux/slab.h> ++#include <linux/of_irq.h> + #include <linux/of_address.h> + + MODULE_DESCRIPTION("Broadcom's specific AMBA driver"); +@@ -159,8 +160,10 @@ static void bcma_of_fill_device(struct p + struct device_node *node; + + node = bcma_of_find_child_device(parent, core); +- if (node) +- core->dev.of_node = node; ++ if (!node) ++ return; ++ core->dev.of_node = node; ++ core->irq = irq_of_parse_and_map(node, 0); + } + #else + static void bcma_of_fill_device(struct platform_device *parent, |