From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH][v2] powerpc/85xx:Add BSC9131 RDB Support Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii From: Kumar Gala In-Reply-To: <071A08F2C6A57E4E94D980ECA553F8745B28E5@039-SN1MPN1-004.039d.mgd.msft.net> Date: Wed, 21 Mar 2012 12:38:26 -0500 Message-Id: References: <1331973588-29896-1-git-send-email-prabhakar@freescale.com> <6E492C67-B422-46B2-9A8E-C1E9B6C534E7@kernel.crashing.org> <071A08F2C6A57E4E94D980ECA553F8745B28E5@039-SN1MPN1-004.039d.mgd.msft.net> To: Kushwaha Prabhakar-B32579 Cc: Srivastava Rajan-B34330 , Mehresh Ramneek-B31383 , Goyal Akhil-B35197 , "linuxppc-dev@lists.ozlabs.org" , "devicetree-discuss@lists.ozlabs.org" , Jain Priyanka-B32167 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mar 21, 2012, at 12:29 PM, Kushwaha Prabhakar-B32579 wrote: >>=20 >>=20 >> [snip] >>=20 >=20 > ?? > Not getting you.. Just meant, I was removing parts of the patch in the email to reduce = things. >=20 >>> diff --git a/arch/powerpc/platforms/85xx/bsc913x_rdb.c >>> b/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 >>> + * >>> + * 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 >>> +by the >>> + * Free Software Foundation; either version 2 of the License, or >>> +(at your >>> + * option) any later version. >>> + */ >>> + >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> + >>> +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, >>> + 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