Re: Fwd: Re: DTS for PowerPC 440 based board

2009-11-22 Thread vinayak . kale
Hi, David, Grant thank you for providing the info. From your reply and the other sources what I gather is as below. Please confirm whether I am on the right track. 1) Bootloader passing BDInfo: Here, I have to create a .dts file inside /arch/powerpc/boot/dts directory. dtc compiles the .dts

Re: [RFC PATCH 00/19] powerpc: nintendo gamecube and wii support

2009-11-22 Thread Wolfram Sang
On Sun, Nov 22, 2009 at 11:01:31PM +0100, Albert Herranz wrote: > The following patches add the base support for the Nintendo GameCube > and Wii video game consoles on the powerpc arch. Cool stuff! \o/ -- Pengutronix e.K. | Wolfram Sang| Industrial Linux

Re: DTS for PowerPC 440 based board

2009-11-22 Thread Grant Likely
On Sat, Nov 21, 2009 at 2:20 PM, David Gibson wrote: > On Sun, Nov 22, 2009 at 12:16:59AM +0530, Vinayak Kale wrote: >> 2) If uboot passes BDInfo struct to kernel instead of DT blob, then in this >> case does kernel creates FDT at run time? > > Not exactly.  In this case the bootwrapper will be bu

Re: [RFC PATCH 18/19] powerpc: wii: platform support

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > Add platform support for the Nintendo Wii video game console. > > Signed-off-by: Albert Herranz > --- > +static int wii_setup_hw_resets(void) > +{ > +       struct device_node *np; > +       struct resource res; > +       int error = -ENODE

Re: [RFC PATCH 16/19] powerpc: wii: hollywood interrupt controller support

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > Add support for the dual interrupt controller included in the "Hollywood" > chipset of the Nintendo Wii video game console. > This interrupt controller serves both the Broadway processor (as a cascade) > and the Starlet processor, and is use

Re: [RFC PATCH 15/19] powerpc: broadway processor support

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > This patch extends the cputable entry of the 750CL to also match > the 750CL-based "Broadway" cpu found on the Nintendo Wii. > > As of this patch, the following "Broadway" design revision levels have > been seen in the wild: > - DD1.2 (87102

Re: [RFC PATCH 14/19] powerpc: allow ioremap within reserved fake ram regions

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > The Nintendo Wii has two discontiguous RAM memory areas called > MEM1 and MEM2. > MEM1 starts at 0x and contains 24MB of 1T-SRAM. > MEM2 starts at 0x1000 and contains 64MB of DDR2 RAM. > Between both memory address ranges there i

Re: [RFC PATCH 12/19] powerpc: gamecube: platform support

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > Add platform support for the Nintendo GameCube video game console. > > Signed-off-by: Albert Herranz > --- > +static void gamecube_show_cpuinfo(struct seq_file *m) > +{ > +       seq_printf(m, "vendor\t\t: IBM\n"); > +       seq_printf(m, "

Re: [RFC PATCH 11/19] powerpc: gamecube/wii: flipper interrupt controller support

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > Add support for the interrupt controller included in the "Flipper" > chipset of the Nintendo GameCube video game console. > The same interrupt controller is also present in the "Hollywood" chipset > of the Nintendo Wii. > > Signed-off-by: Al

Re: [RFC PATCH 09/19] powerpc: gamecube/wii: udbg support for usbgecko

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > Add support for using the USB Gecko adapter via the udbg facility on > the Nintendo GameCube and Wii video game consoles. > The USB Gecko is a 3rd party memory card interface adapter that provides > a EXI (External Interface) to USB serial c

Re: [RFC PATCH 08/19] powerpc: gamecube/wii: do not include PCI support

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > The Nintendo GameCube and Wii video game consoles do not have PCI hardware. > Avoid wasting their scarce memory by not including PCI support into the > kernel. > > Signed-off-by: Albert Herranz > --- >  arch/powerpc/Kconfig |    2 +- >  1 f

Re: [RFC PATCH 06/19] powerpc: gamecube/wii: introduce GAMECUBE_COMMON

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > Add a config option GAMECUBE_COMMON to be used as a dependency for all > options common to the Nintendo GameCube and Wii video game consoles. > > Signed-off-by: Albert Herranz This could just be rolled into the first patch that uses it. B

Re: [RFC PATCH 05/19] powerpc: wii: bootwrapper bits

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > Add support for the Nintendo Wii video game console to the powerpc > bootwrapper. > > dtbImage.wii is a wrapped image that contains a flat device tree, > an entry point compatible with the Homebrew Channel and BootMii, > and an optional init

Re: [RFC PATCH 04/19] powerpc: wii: device tree

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > Add a device tree source file for the Nintendo Wii video game console. > > Signed-off-by: Albert Herranz Same comments apply here as for the gamecube.dts file, plus a few more below. Cheers, g. > --- >  arch/powerpc/boot/dts/wii.dts |  2

Re: [RFC PATCH 03/19] powerpc: gamecube: bootwrapper bits

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > Add support for the Nintendo GameCube video game console to the powerpc > bootwrapper. > > dtbImage.gamecube is a wrapped image that contains a flat device tree, > an entry point compatible with SDload, and an optional initrd. > > Signed-off

Re: [RFC PATCH 02/19] powerpc: gamecube: device tree

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > Add a device tree source file for the Nintendo GameCube video game console. > > Signed-off-by: Albert Herranz Mostly looks good. A few comments below. Biggest comment is you need to add a brief blurb for every new "compatible" property v

Re: [RFC PATCH 01/19] powerpc: gamecube/wii: usbgecko bootwrapper console support

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > Add support for using the USB Gecko adapter as a bootwrapper console on > the Nintendo GameCube and Wii video game consoles. > The USB Gecko is a 3rd party memory card interface adapter that provides > a EXI (External Interface) to USB seria

Re: [RFC PATCH 00/19] powerpc: nintendo gamecube and wii support

2009-11-22 Thread Arnd Bergmann
On Sunday 22 November 2009, Albert Herranz wrote: > The following patches add the base support for the Nintendo GameCube > and Wii video game consoles on the powerpc arch. > > For each video game console, the following is included: > - a device tree source > - bootwrapper support > - udbg console

Re: [RFC PATCH 00/19] powerpc: nintendo gamecube and wii support

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz wrote: > The following patches add the base support for the Nintendo GameCube > and Wii video game consoles on the powerpc arch. w00t! Per-patch review to follow, but this is great. Thanks! g. > > For each video game console, the following is in

Re: [RFC PATCH 17/19] powerpc: wii: bootmii starlet 'mini' firmware support

2009-11-22 Thread Arnd Bergmann
On Sunday 22 November 2009, Albert Herranz wrote: > + * > + */ > +struct mipc_device { > + void __iomem *io_base; > + int irq; > + > + struct device *dev; > + > + spinlock_t call_lock; /* serialize firmware calls */ > + spinlock_t io_lock; /* serialize access to io registe

Re: Bug in drivers/serial/of_serial.c?

2009-11-22 Thread Grant Likely
On Sun, Nov 22, 2009 at 3:42 PM, Grant Likely wrote: > On Sat, Nov 21, 2009 at 12:45 PM, Arnd Bergmann wrote: >> On Saturday 21 November 2009, Grant Likely wrote: >>> BTW, while looking at that file... Arnd, does the .type = "serial" >>> stuff really need to be there? >> >> Well, serial is one of

Re: Bug in drivers/serial/of_serial.c?

2009-11-22 Thread Grant Likely
On Sat, Nov 21, 2009 at 12:45 PM, Arnd Bergmann wrote: > On Saturday 21 November 2009, Grant Likely wrote: >> BTW, while looking at that file... Arnd, does the .type = "serial" >> stuff really need to be there? > > Well, serial is one of the few that actually has some preexisting > binding with a

Re: [RFC PATCH 10/19] powerpc: gamecube/wii: early debugging using usbgecko

2009-11-22 Thread Arnd Bergmann
On Sunday 22 November 2009, Albert Herranz wrote: > +#ifdef CONFIG_PPC_EARLY_DEBUG_USBGECKO > +setup_usbgecko_bat: > + /* prepare a BAT for early io */ > + lis r8, 0x0c00 > + ori r8, r8, 0x002a /* uncached, guarded ,rw */ > + lis r11, 0xcc00 > + ori r11, r11, 0x

Re: [RFC PATCH 07/19] powerpc: gamecube/wii: declare as non-coherent platforms

2009-11-22 Thread Arnd Bergmann
On Sunday 22 November 2009, Albert Herranz wrote: > config NOT_COHERENT_CACHE > bool > - depends on 4xx || 8xx || E200 || PPC_MPC512x > + depends on 4xx || 8xx || E200 || PPC_MPC512x || GAMECUBE_COMMON > default y > > config CHECK_CACHE_COHERENCY > diff --git a/arch/

Re: Bug in drivers/serial/of_serial.c?

2009-11-22 Thread Arnd Bergmann
On Saturday 21 November 2009, Grant Likely wrote: > BTW, while looking at that file... Arnd, does the .type = "serial" > stuff really need to be there? Well, serial is one of the few that actually has some preexisting binding with a well defined device-type, so I guess we should use it. A

[RFC PATCH 19/19] powerpc: wii: default config

2009-11-22 Thread Albert Herranz
Add a default configuration for the Nintendo Wii video game console. Signed-off-by: Albert Herranz --- arch/powerpc/configs/wii_defconfig | 1406 1 files changed, 1406 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/configs/wii_defconfig diff

[RFC PATCH 18/19] powerpc: wii: platform support

2009-11-22 Thread Albert Herranz
Add platform support for the Nintendo Wii video game console. Signed-off-by: Albert Herranz --- arch/powerpc/platforms/embedded6xx/Kconfig |8 + arch/powerpc/platforms/embedded6xx/Makefile |1 + arch/powerpc/platforms/embedded6xx/wii.c | 270 ++ arch/power

[RFC PATCH 17/19] powerpc: wii: bootmii starlet 'mini' firmware support

2009-11-22 Thread Albert Herranz
Add support for the BootMii 'mini' firmware replacement for the Starlet processor. 'mini' is an open source IOS replacement written from scratch by Team Twiizers. It grants full access to the hardware found on the Nintendo Wii video game console via a custom IPC mechanism. Signed-off-by: Albert H

[RFC PATCH 16/19] powerpc: wii: hollywood interrupt controller support

2009-11-22 Thread Albert Herranz
Add support for the dual interrupt controller included in the "Hollywood" chipset of the Nintendo Wii video game console. This interrupt controller serves both the Broadway processor (as a cascade) and the Starlet processor, and is used to manage interrupts for the non-classic hardware. Signed-off

[RFC PATCH 15/19] powerpc: broadway processor support

2009-11-22 Thread Albert Herranz
This patch extends the cputable entry of the 750CL to also match the 750CL-based "Broadway" cpu found on the Nintendo Wii. As of this patch, the following "Broadway" design revision levels have been seen in the wild: - DD1.2 (87102) - DD2.0 (87200) Signed-off-by: Albert Herranz --- arch/powerpc

[RFC PATCH 14/19] powerpc: allow ioremap within reserved fake ram regions

2009-11-22 Thread Albert Herranz
The Nintendo Wii has two discontiguous RAM memory areas called MEM1 and MEM2. MEM1 starts at 0x and contains 24MB of 1T-SRAM. MEM2 starts at 0x1000 and contains 64MB of DDR2 RAM. Between both memory address ranges there is an address space where memory-mapped I/O registers are found. C

[RFC PATCH 13/19] powerpc: gamecube: default config

2009-11-22 Thread Albert Herranz
Add a default configuration for the Nintendo GameCube video game console. Signed-off-by: Albert Herranz --- arch/powerpc/configs/gamecube_defconfig | 1061 +++ 1 files changed, 1061 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/configs/gamecube_defcon

[RFC PATCH 12/19] powerpc: gamecube: platform support

2009-11-22 Thread Albert Herranz
Add platform support for the Nintendo GameCube video game console. Signed-off-by: Albert Herranz --- arch/powerpc/platforms/embedded6xx/Kconfig|8 ++ arch/powerpc/platforms/embedded6xx/Makefile |1 + arch/powerpc/platforms/embedded6xx/gamecube.c | 112 +

[RFC PATCH 11/19] powerpc: gamecube/wii: flipper interrupt controller support

2009-11-22 Thread Albert Herranz
Add support for the interrupt controller included in the "Flipper" chipset of the Nintendo GameCube video game console. The same interrupt controller is also present in the "Hollywood" chipset of the Nintendo Wii. Signed-off-by: Albert Herranz --- arch/powerpc/platforms/embedded6xx/Kconfig

[RFC PATCH 10/19] powerpc: gamecube/wii: early debugging using usbgecko

2009-11-22 Thread Albert Herranz
Add support for using the USB Gecko adapter as an early debugging console on the Nintendo GameCube and Wii video game consoles. The USB Gecko is a 3rd party memory card interface adapter that provides a EXI (External Interface) to USB serial converter. Signed-off-by: Albert Herranz --- arch/powe

[RFC PATCH 09/19] powerpc: gamecube/wii: udbg support for usbgecko

2009-11-22 Thread Albert Herranz
Add support for using the USB Gecko adapter via the udbg facility on the Nintendo GameCube and Wii video game consoles. The USB Gecko is a 3rd party memory card interface adapter that provides a EXI (External Interface) to USB serial converter. Signed-off-by: Albert Herranz --- arch/powerpc/plat

[RFC PATCH 08/19] powerpc: gamecube/wii: do not include PCI support

2009-11-22 Thread Albert Herranz
The Nintendo GameCube and Wii video game consoles do not have PCI hardware. Avoid wasting their scarce memory by not including PCI support into the kernel. Signed-off-by: Albert Herranz --- arch/powerpc/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerp

[RFC PATCH 07/19] powerpc: gamecube/wii: declare as non-coherent platforms

2009-11-22 Thread Albert Herranz
The processors bundled in the Nintendo GameCube and Wii video game consoles require explicit cache handling when DMA engines are used. Signed-off-by: Albert Herranz --- arch/powerpc/platforms/Kconfig.cputype |2 +- arch/powerpc/platforms/embedded6xx/Kconfig |1 + 2 files changed, 2 i

[RFC PATCH 06/19] powerpc: gamecube/wii: introduce GAMECUBE_COMMON

2009-11-22 Thread Albert Herranz
Add a config option GAMECUBE_COMMON to be used as a dependency for all options common to the Nintendo GameCube and Wii video game consoles. Signed-off-by: Albert Herranz --- arch/powerpc/platforms/embedded6xx/Kconfig |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arc

[RFC PATCH 05/19] powerpc: wii: bootwrapper bits

2009-11-22 Thread Albert Herranz
Add support for the Nintendo Wii video game console to the powerpc bootwrapper. dtbImage.wii is a wrapped image that contains a flat device tree, an entry point compatible with the Homebrew Channel and BootMii, and an optional initrd. Signed-off-by: Albert Herranz --- arch/powerpc/boot/Makefile

[RFC PATCH 04/19] powerpc: wii: device tree

2009-11-22 Thread Albert Herranz
Add a device tree source file for the Nintendo Wii video game console. Signed-off-by: Albert Herranz --- arch/powerpc/boot/dts/wii.dts | 244 + 1 files changed, 244 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/boot/dts/wii.dts diff --gi

[RFC PATCH 03/19] powerpc: gamecube: bootwrapper bits

2009-11-22 Thread Albert Herranz
Add support for the Nintendo GameCube video game console to the powerpc bootwrapper. dtbImage.gamecube is a wrapped image that contains a flat device tree, an entry point compatible with SDload, and an optional initrd. Signed-off-by: Albert Herranz --- arch/powerpc/boot/Makefile |4 ++- a

[RFC PATCH 02/19] powerpc: gamecube: device tree

2009-11-22 Thread Albert Herranz
Add a device tree source file for the Nintendo GameCube video game console. Signed-off-by: Albert Herranz --- arch/powerpc/boot/dts/gamecube.dts | 135 1 files changed, 135 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/boot/dts/gamecube.dts

[RFC PATCH 00/19] powerpc: nintendo gamecube and wii support

2009-11-22 Thread Albert Herranz
The following patches add the base support for the Nintendo GameCube and Wii video game consoles on the powerpc arch. For each video game console, the following is included: - a device tree source - bootwrapper support - udbg console option - early udbg console option - interrupt controller suppor

[RFC PATCH 01/19] powerpc: gamecube/wii: usbgecko bootwrapper console support

2009-11-22 Thread Albert Herranz
Add support for using the USB Gecko adapter as a bootwrapper console on the Nintendo GameCube and Wii video game consoles. The USB Gecko is a 3rd party memory card interface adapter that provides a EXI (External Interface) to USB serial converter. Signed-off-by: Albert Herranz --- arch/powerpc/b