Re: [PATCH][v2] powerpc/85xx:Add BSC9131 RDB Support
From: Kumar Gala <hidden>
Date: 2012-03-21 17:38:26
Also in:
linux-devicetree
On Mar 21, 2012, at 12:29 PM, Kushwaha Prabhakar-B32579 wrote:
quoted
=20 =20 [snip] =20=20 ?? Not getting you..
Just meant, I was removing parts of the patch in the email to reduce = things.
=20quoted
quoted
diff --git a/arch/powerpc/platforms/85xx/bsc913x_rdb.cb/arch/powerpc/platforms/85xx/bsc913x_rdb.c new file mode 100644 index 0000000..611c289--- /dev/null +++ b/arch/powerpc/platforms/85xx/bsc913x_rdb.c@@ -0,0 +1,95 @@ +/* + * BSC913xRDB Board Setup + * + * Author: Priyanka Jain <Priyanka.Jain@freescale.com> + * + * Copyright 2011-2012 Freescale Semiconductor Inc. + * + * This program is free software; you can redistribute it and/or +modify it + * under the terms of the GNU General Public License as =
published
quoted
quoted
+by the + * Free Software Foundation; either version 2 of the License, or +(at your + * option) any later version. + */ + +#include <linux/of_platform.h> +#include <linux/pci.h> +#include <asm/mpic.h> +#include <sysdev/fsl_soc.h> +#include <asm/udbg.h> + +void __init bsc913x_rdb_pic_init(void) { + struct mpic *mpic; + struct resource r; + struct device_node *np; + + np =3D of_find_node_by_type(NULL, "open-pic"); + if (!np) { + pr_err("bsc913x: Could not find open-pic node\n"); + return; + } + + if (of_address_to_resource(np, 0, &r)) { + pr_err("bsc913x: Failed to map mpic register space\n"); + of_node_put(np); + return; + } + + mpic =3D mpic_alloc(np, r.start, MPIC_WANTS_RESET | + MPIC_BIG_ENDIAN | MPIC_BROKEN_FRR_NIRQS | =
MPIC_SINGLE_DEST_CPU,
quoted
quoted
+ 0, 256, " OpenPIC "); + + of_node_put(np); + + if (!mpic) + pr_err("bsc913x: Failed to allocate MPIC structure\n"); + else + mpic_init(mpic); +} +=20 This code is still out of date w/other board ports. Have you tried building this against upstream?? =20=20 I build with powerpc.git.=20 do you mean build with upstream code base ?? git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git =20
I mean if you use my 'next' branch of galak/powerpc.git and apply this = patch, and enable it. For example MPIC_BROKEN_FRR_NIRQS doesn't exist = anymore - k