Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Michael Buesch <mb@bu3sch.de>
To: Aurelien Jarno <aurelien@aurel32.net>
Cc: Andrew Morton <akpm@osdl.org>,
	linux-mips@linux-mips.org, Waldemar Brodkorb <wbx@openwrt.org>,
	Felix Fietkau <nbd@openwrt.org>,
	Florian Schirmer <jolt@tuxbox.org>
Subject: Re: [PATCH -mm 2/4] MIPS: BCM947xx support
Date: Mon, 6 Aug 2007 20:37:05 +0200	[thread overview]
Message-ID: <200708062037.05995.mb@bu3sch.de> (raw)
In-Reply-To: <20070806183316.GB32465@hall.aurel32.net>

On Monday 06 August 2007, Aurelien Jarno wrote:
> On Mon, Aug 06, 2007 at 08:05:29PM +0200, Michael Buesch wrote:
> > On Monday 06 August 2007, Aurelien Jarno wrote:
> > > The patch below against 2.6.23-rc1-mm2 adds support for BCM947xx CPUs.
> > > It originally comes from the OpenWrt patches.
> > > 
> > > Cc: Michael Buesch <mb@bu3sch.de>
> > > Cc: Waldemar Brodkorb <wbx@openwrt.org>
> > > Cc: Felix Fietkau <nbd@openwrt.org>
> > > Cc: Florian Schirmer <jolt@tuxbox.org>
> > > Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
> 
> [snip]
> 
> > > --- a/arch/mips/bcm947xx/setup.c	
> > > +++ b/arch/mips/bcm947xx/setup.c
> > > @@ -0,0 +1,106 @@
> 
> [snip]
> 
> > > +static void bcm947xx_machine_halt(void)
> > > +{
> > > +	/* Disable interrupts and watchdog and spin forever */
> > > +	local_irq_disable();
> > > +	ssb_chipco_watchdog_timer_set(&ssb.chipco, 0);
> > > +	while (1)
> > > +		cpu_relax();
> > > +}
> > > +
> > > +static int bcm947xx_get_invariants(struct ssb_bus *bus, struct ssb_init_invariants *iv)
> > > +{
> > 
> > No reading of NVRAM, yet?
> 
> This requires CFE support, and this part is still a bit problematic now.
> There are already CFE files for SiByte support, and I think it's not a
> good idea to have too different implementations.

Yep, I forgot about that. My CFE stuff should probably partly get
merged into the existing CFE stuff, if neeeded.
So let's leave this out for now.

> I will add a comment here;
> 
> > > +	return 0;
> > > +}
> > > +
> > > +void __init plat_mem_setup(void)
> > > +{
> > > +	int i, err;
> > > +	struct ssb_mipscore *mcore;
> > > +
> > > +	err = ssb_bus_ssbbus_register(&ssb, SSB_ENUM_BASE, bcm947xx_get_invariants);
> > > +	if (err) {
> > > +		const char *msg = "Failed to initialize SSB bus (err %d)\n";
> > > +		panic(msg, err);
> > 
> > We don't need the msg variable anymore.
> 
> I will fix that.
> 
> 

  reply	other threads:[~2007-08-06 18:37 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-06 15:09 [PATCH -mm 2/4] MIPS: BCM947xx support Aurelien Jarno
2007-08-06 18:05 ` Michael Buesch
2007-08-06 18:33   ` Aurelien Jarno
2007-08-06 18:37     ` Michael Buesch [this message]
2007-08-06 19:17       ` [PATCH -mm 2/4] MIPS: BCM947xx support (v2) Aurelien Jarno
2007-08-06 19:22         ` Michael Buesch
2007-08-06 20:31         ` Florian Schirmer
2007-08-07  8:05           ` Aurelien Jarno
2007-08-07  0:40         ` Yoichi Yuasa
2007-08-07  8:01           ` Aurelien Jarno
2007-08-07  8:02           ` Aurelien Jarno
2007-08-07  8:04           ` Aurelien Jarno
2007-08-07 12:16           ` [PATCH -mm 2/4] MIPS: BCM947xx support (v3) Aurelien Jarno
2007-08-08  1:33             ` Andrew Morton
2007-08-09  0:41               ` [PATCH 0/4][RFC] MIPS BCM947xx CPUs support Aurelien Jarno
2007-08-09  0:43                 ` [PATCH 1/4][RFC] MIPS: Detect BCM947xx CPUs Aurelien Jarno
2007-08-09  0:44                 ` [PATCH 2/4][RFC] MIPS: BCM947xx support Aurelien Jarno
2007-08-09 10:00                   ` Michael Buesch
2007-08-09 10:38                     ` Aurelien Jarno
2007-08-09 10:51                       ` Michael Buesch
2007-08-09 11:26                         ` Aurelien Jarno
2007-08-09 12:12                           ` Michael Buesch
2007-08-09  0:45                 ` [PATCH 3/4] RFC: Add BCM947XX to Kconfig Aurelien Jarno
2007-08-09 20:40                   ` Andrew Morton
2007-08-09  0:45                 ` [PATCH 4/4][RFC] MIPS: Add BCM947xx to Makefile Aurelien Jarno

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=200708062037.05995.mb@bu3sch.de \
    --to=mb@bu3sch.de \
    --cc=akpm@osdl.org \
    --cc=aurelien@aurel32.net \
    --cc=jolt@tuxbox.org \
    --cc=linux-mips@linux-mips.org \
    --cc=nbd@openwrt.org \
    --cc=wbx@openwrt.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