From: Kumar Gala <galak-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
To: Kushwaha Prabhakar-B32579
<B32579-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Cc: Srivastava Rajan-B34330
<B34330-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
Mehresh Ramneek-B31383
<B31383-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
Goyal Akhil-B35197
<B35197-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
"linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org"
<linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>,
"devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org"
<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>,
Jain Priyanka-B32167
<B32167-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Subject: Re: [PATCH][v2] powerpc/85xx:Add BSC9131 RDB Support
Date: Wed, 21 Mar 2012 12:38:26 -0500 [thread overview]
Message-ID: <F67F01CF-E431-42B7-BA59-EBC6A792FC69@kernel.crashing.org> (raw)
In-Reply-To: <071A08F2C6A57E4E94D980ECA553F8745B28E5-TcFNo7jSaXM0vywKSws3iq4g8xLGJsHaLnY5E4hWTkheoWH0uzbU5w@public.gmane.org>
On Mar 21, 2012, at 12:29 PM, Kushwaha Prabhakar-B32579 wrote:
>>
>>
>> [snip]
>>
>
> ??
> Not getting you..
Just meant, I was removing parts of the patch in the email to reduce things.
>
>>> 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 <Priyanka.Jain-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
>>> + *
>>> + * 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 <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 = 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 = 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);
>>> +}
>>> +
>>
>> This code is still out of date w/other board ports. Have you tried
>> building this against upstream??
>>
>
> I build with powerpc.git.
> do you mean build with upstream code base ??
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
>
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
next prev parent reply other threads:[~2012-03-21 17:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-17 8:39 [PATCH][v2] powerpc/85xx:Add BSC9131 RDB Support Prabhakar Kushwaha
[not found] ` <1331973588-29896-1-git-send-email-prabhakar-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2012-03-21 17:20 ` Kumar Gala
[not found] ` <6E492C67-B422-46B2-9A8E-C1E9B6C534E7-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2012-03-21 17:29 ` Kushwaha Prabhakar-B32579
[not found] ` <071A08F2C6A57E4E94D980ECA553F8745B28E5-TcFNo7jSaXM0vywKSws3iq4g8xLGJsHaLnY5E4hWTkheoWH0uzbU5w@public.gmane.org>
2012-03-21 17:38 ` Kumar Gala [this message]
[not found] ` <F67F01CF-E431-42B7-BA59-EBC6A792FC69-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2012-03-21 17:45 ` Kushwaha Prabhakar-B32579
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F67F01CF-E431-42B7-BA59-EBC6A792FC69@kernel.crashing.org \
--to=galak-xvmvhmargas8u2djnn8i7kb+6bgklq7r@public.gmane.org \
--cc=B31383-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=B32167-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=B32579-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=B34330-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=B35197-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox