From: David Gibson <dwg@au1.ibm.com>
To: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH 3/3] Bamboo wrapper
Date: Tue, 15 May 2007 11:28:25 +1000 [thread overview]
Message-ID: <20070515012825.GD565@localhost.localdomain> (raw)
In-Reply-To: <1179154791.3420.26.camel@zod.rchland.ibm.com>
On Mon, May 14, 2007 at 09:59:51AM -0500, Josh Boyer wrote:
> Add a bootwrapper for Bamboo
[snip]
> +#define DCRN_MAL0_CFG 0x180
> +static void ibm440ep_reset_eth(void)
> +{
> + /* reset the MAL and EMACs since PIBS doesn't do this for us */
> + u32 *emac0 = (u32 *)0xef600e00;
> + u32 *emac1 = (u32 *)0xef600f00;
> +
> + *emac0 = 0x20000000;
> + *emac1 = 0x20000000;
> + mtdcr(DCRN_MAL0_CFG, 0x80000000);
> +}
Since a number of 4xx board firmware suffer from this EMAC/MAL reset
problem it would be nice to factor this out into a common file.
> +static void ibm440ep_clear_uics(void)
> +{
> + /* Clear the UIC registers so we don't get spurious interrupts
> + * in the kernel
> + */
> + mtdcr(DCRN_UIC0_ER, 0x0);
> + mtdcr(DCRN_UIC0_SR, 0xffffffff);
> + mtdcr(DCRN_UIC1_ER, 0x0);
> + mtdcr(DCRN_UIC1_SR, 0xffffffff);
> +}
I don't think we should need this. As you suggested I added such a
clear to my UIC driver in the kernel proper.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
next prev parent reply other threads:[~2007-05-15 1:28 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-14 14:56 [PATCH 0/3] Initial AMCC Bamboo support Josh Boyer
2007-05-14 14:57 ` [PATCH 1/3] Bamboo DTS Josh Boyer
2007-05-14 15:21 ` Segher Boessenkool
2007-05-14 15:52 ` Segher Boessenkool
2007-05-14 18:44 ` Josh Boyer
2007-05-14 14:59 ` [PATCH 2/3] Bamboo platform support Josh Boyer
2007-05-15 0:58 ` Stephen Rothwell
2007-05-15 1:03 ` Josh Boyer
2007-05-15 2:03 ` Stephen Rothwell
2007-05-15 2:42 ` Josh Boyer
2007-05-14 14:59 ` [PATCH 3/3] Bamboo wrapper Josh Boyer
2007-05-15 1:28 ` David Gibson [this message]
2007-05-15 1:29 ` Josh Boyer
2007-05-15 1:26 ` [PATCH 0/3] Initial AMCC Bamboo support David Gibson
2007-05-15 1:38 ` Josh Boyer
2007-05-15 1:44 ` David Gibson
2007-05-15 7:33 ` Benjamin Herrenschmidt
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=20070515012825.GD565@localhost.localdomain \
--to=dwg@au1.ibm.com \
--cc=jwboyer@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.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