[PATCH v3] 82xx: MGCOGE support

2008-03-09 Thread Heiko Schocher
Hello,

following Patch adds support for the MPC8247 based mgcoge
board from keymile.

changes since v2 Patch:

- added JFFS2 support
- added support for the second Flash on the board.

Signed-off-by: Heiko Schocher [EMAIL PROTECTED]
---
 arch/powerpc/boot/dts/mgcoge.dts  |  165 +++
 arch/powerpc/configs/mgcoge_defconfig |  854 +
 arch/powerpc/platforms/82xx/Kconfig   |9 +
 arch/powerpc/platforms/82xx/Makefile  |1 +
 arch/powerpc/platforms/82xx/mgcoge.c  |  130 +
 5 files changed, 1159 insertions(+), 0 deletions(-)
 create mode 100644 arch/powerpc/boot/dts/mgcoge.dts
 create mode 100644 arch/powerpc/configs/mgcoge_defconfig
 create mode 100644 arch/powerpc/platforms/82xx/mgcoge.c

diff --git a/arch/powerpc/boot/dts/mgcoge.dts b/arch/powerpc/boot/dts/mgcoge.dts
new file mode 100644
index 000..fa6f933
--- /dev/null
+++ b/arch/powerpc/boot/dts/mgcoge.dts
@@ -0,0 +1,165 @@
+/*
+ * Device Tree for the MGCOGE plattform from keymile
+ *
+ * Copyright 2008 DENX Software Engineering GmbH
+ * Heiko Schocher [EMAIL PROTECTED]
+ *
+ * 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.
+ */
+
+/dts-v1/;
+/ {
+   model = MGCOGE;
+   compatible = keymile,mgcoge;
+   #address-cells = 1;
+   #size-cells = 1;
+
+   aliases {
+   ethernet0 = eth0;
+   serial0 = smc2;
+   };
+
+   cpus {
+   #address-cells = 1;
+   #size-cells = 0;
+
+   PowerPC,[EMAIL PROTECTED] {
+   device_type = cpu;
+   reg = 0;
+   d-cache-line-size = 32;
+   i-cache-line-size = 32;
+   d-cache-size = 16384;
+   i-cache-size = 16384;
+   timebase-frequency = 0; /* Filled in by U-Boot */
+   clock-frequency = 0; /* Filled in by U-Boot */
+   bus-frequency = 0; /* Filled in by U-Boot */
+   };
+   };
+
+   [EMAIL PROTECTED] {
+   compatible = fsl,mpc8247-localbus,
+fsl,pq2-localbus,
+simple-bus;
+   #address-cells = 2;
+   #size-cells = 1;
+   reg = 0xf0010100 0x40;
+
+   ranges = 0 0 0xfe00 0x0040
+ 1 0 0x5000 0x2000
+   ; /* Filled in by U-Boot */
+
+   [EMAIL PROTECTED],0 {
+   compatible = cfi-flash;
+   reg = 0 0x0 0x40;
+   #address-cells = 1;
+   #size-cells = 1;
+   bank-width = 1;
+   device-width = 1;
+   [EMAIL PROTECTED] {
+   label = u-boot;
+   reg = 0 0x4;
+   };
+   [EMAIL PROTECTED] {
+   label = env;
+   reg = 0x4 0x2;
+   };
+   [EMAIL PROTECTED] {
+   label = user;
+   reg = 0x6 0x3a;
+   };
+   };
+
+   [EMAIL PROTECTED],0 {
+   compatible = cfi-flash;
+   reg = 1 0x0 0x200;
+   #address-cells = 1;
+   #size-cells = 1;
+   bank-width = 2;
+   device-width = 2;
+   [EMAIL PROTECTED] {
+   label = cfg;
+   reg = 0 0x200;
+   };
+   };
+   };
+
+   memory {
+   device_type = memory;
+   reg = 0 0; /* Filled in by U-Boot */
+   };
+
+   [EMAIL PROTECTED] {
+   #address-cells = 1;
+   #size-cells = 1;
+   compatible = fsl,mpc8247-immr, fsl,pq2-soc, simple-bus;
+   ranges = 0x 0xf000 0x00053000;
+
+   // Temporary until code stops depending on it.
+   device_type = soc;
+
+   [EMAIL PROTECTED] {
+   #address-cells = 1;
+   #size-cells = 1;
+   #interrupt-cells = 2;
+   compatible = fsl,mpc8247-cpm, fsl,cpm2,
+   simple-bus;
+   reg = 0x119c0 0x30;
+   ranges;
+
+   muram {
+   #address-cells = 1;
+   #size-cells = 1;
+   ranges = 0 0 0x1;
+
+   

[Patch] 8xx: MGSUVD support

2008-03-09 Thread Heiko Schocher
Hello,

the following patch adds support for the MPC852 based mgsuvd board
from keymile.

Signed-off-by: Heiko Schocher [EMAIL PROTECTED]
---
 arch/powerpc/boot/dts/mgsuvd.dts  |  158 +++
 arch/powerpc/configs/mgsuvd_defconfig |  827 +
 arch/powerpc/platforms/8xx/Kconfig|7 +
 arch/powerpc/platforms/8xx/Makefile   |1 +
 arch/powerpc/platforms/8xx/mgsuvd.c   |  138 ++
 5 files changed, 1131 insertions(+), 0 deletions(-)
 create mode 100644 arch/powerpc/boot/dts/mgsuvd.dts
 create mode 100644 arch/powerpc/configs/mgsuvd_defconfig
 create mode 100644 arch/powerpc/platforms/8xx/mgsuvd.c

diff --git a/arch/powerpc/boot/dts/mgsuvd.dts b/arch/powerpc/boot/dts/mgsuvd.dts
new file mode 100644
index 000..629cb6d
--- /dev/null
+++ b/arch/powerpc/boot/dts/mgsuvd.dts
@@ -0,0 +1,158 @@
+/*
+ * MGSUVD Device Tree Source
+ *
+ * Copyright 2008 DENX Software Engineering GmbH
+ * Heiko Schocher [EMAIL PROTECTED]
+ *
+ * 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.
+ */
+
+
+/ {
+   model = MGSUVD;
+   compatible = keymile,mgsuvd;
+   #address-cells = 1;
+   #size-cells = 1;
+
+   cpus {
+   #address-cells = 1;
+   #size-cells = 0;
+
+   PowerPC,[EMAIL PROTECTED] {
+   device_type = cpu;
+   reg = 0;
+   d-cache-line-size = d#16;
+   i-cache-line-size = d#16;
+   d-cache-size = d#8192;
+   i-cache-size = d#8192;
+   timebase-frequency = 0;  /* Filled in by u-boot */
+   bus-frequency = 0;  /* Filled in by u-boot */
+   clock-frequency = 0; /* Filled in by u-boot */
+   interrupts = f 2; // decrementer interrupt
+   interrupt-parent = PIC;
+   };
+   };
+
+   memory {
+   device_type = memory;
+   reg =  400;  /* Filled in by u-boot */
+   };
+
+   [EMAIL PROTECTED] {
+   compatible = fsl,pq1-localbus;
+   #address-cells = 2;
+   #size-cells = 1;
+   reg = fff00100 40;
+
+   ranges = 
+   0 0 f000 0100
+   ;  /* Filled in by u-boot */
+
+   [EMAIL PROTECTED],0 {
+   compatible = cfi-flash;
+   reg = 0 0 100;
+   #address-cells = 1;
+   #size-cells = 1;
+   bank-width = 1;
+   device-width = 1;
+   [EMAIL PROTECTED] {
+   label = u-boot;
+   reg = 0 8;
+   };
+   [EMAIL PROTECTED] {
+   label = env;
+   reg = 8 2;
+   };
+   [EMAIL PROTECTED] {
+   label = user;
+   reg = a f6;
+   };
+   };
+   };
+
+   [EMAIL PROTECTED] {
+   compatible = fsl,mpc885, fsl,pq1-soc;
+   #address-cells = 1;
+   #size-cells = 1;
+   device_type = soc;
+   ranges = 0 fff0 4000;
+
+   PIC: [EMAIL PROTECTED] {
+   interrupt-controller;
+   #interrupt-cells = 2;
+   reg = 0 24;
+   compatible = fsl,pq1-pic;
+   };
+
+   [EMAIL PROTECTED] {
+   #address-cells = 1;
+   #size-cells = 1;
+   compatible = fsl,cpm1;
+   command-proc = 9c0;
+   interrupts = 0;   // cpm error interrupt
+   interrupt-parent = CPM_PIC;
+   reg = 9c0 10;
+   ranges;
+
+   [EMAIL PROTECTED] {
+   #address-cells = 1;
+   #size-cells = 1;
+   ranges = 0 2000 2000;
+
+   [EMAIL PROTECTED] {
+   compatible = fsl,cpm-muram-data;
+   reg = 800 1800;
+   };
+   };
+
+   [EMAIL PROTECTED] {
+   compatible = fsl,mpc885-brg,
+fsl,cpm1-brg,
+fsl,cpm-brg;
+   reg = 9f0 10;
+  

Re: [Patch] 8xx: MGSUVD support

2008-03-09 Thread Vitaly Bordug
Heiko,

On Sun, 09 Mar 2008 10:56:29 +0100
Heiko Schocher wrote:

 Hello,
 
 the following patch adds support for the MPC852 based mgsuvd board
 from keymile.
Looks good overall. Please add supported/working/not working etc SoC devices 
state along with the patch 
description. Also a few really small comments below...

 
 Signed-off-by: Heiko Schocher [EMAIL PROTECTED]
 ---
  arch/powerpc/boot/dts/mgsuvd.dts  |  158 +++
  arch/powerpc/configs/mgsuvd_defconfig |  827
 +
 arch/powerpc/platforms/8xx/Kconfig|7 +
 arch/powerpc/platforms/8xx/Makefile   |1 +
 arch/powerpc/platforms/8xx/mgsuvd.c   |  138 ++ 5 files changed,
 1131 insertions(+), 0 deletions(-) create mode 100644
 arch/powerpc/boot/dts/mgsuvd.dts create mode 100644
 arch/powerpc/configs/mgsuvd_defconfig create mode 100644
 arch/powerpc/platforms/8xx/mgsuvd.c
 
 diff --git a/arch/powerpc/boot/dts/mgsuvd.dts
 b/arch/powerpc/boot/dts/mgsuvd.dts new file mode 100644
 index 000..629cb6d
 --- /dev/null
 +++ b/arch/powerpc/boot/dts/mgsuvd.dts
 @@ -0,0 +1,158 @@
 +/*
 + * MGSUVD Device Tree Source
 + *
 + * Copyright 2008 DENX Software Engineering GmbH
 + * Heiko Schocher [EMAIL PROTECTED]
 + *
 + * 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.
 + */
 +
 +
 +/ {
 + model = MGSUVD;
 + compatible = keymile,mgsuvd;
 + #address-cells = 1;
 + #size-cells = 1;
 +
 + cpus {
 + #address-cells = 1;
 + #size-cells = 0;
 +
 + PowerPC,[EMAIL PROTECTED] {
But it's mpc852, isn't it?

 + device_type = cpu;
 + reg = 0;
 + d-cache-line-size = d#16;
 + i-cache-line-size = d#16;
 + d-cache-size = d#8192;
 + i-cache-size = d#8192;
 + timebase-frequency = 0;  /* Filled in by
 u-boot */
 + bus-frequency = 0;  /* Filled in by u-boot
 */
 + clock-frequency = 0; /* Filled in by
 u-boot */
 + interrupts = f 2; // decrementer
 interrupt
I would like all the comments to be consistent C style (because that's it for 
the most other dts'es).

[]
-- 
Sincerely, Vitaly
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: Long boot delay with agpgart

2008-03-09 Thread Wolfgang Pfeiffer
On Wed, Mar 05 2008, at 17:33 +0100, Wolfgang Pfeiffer wrote:

 The boot process began being stuck the moment some agpgart init
 routine started:
 
 Excerpt from kern.log that moment:
 
 [6.882357] usbcore: registered new device driver usb
 [   36.732011] uninorth_agp: gave up waiting for init of module agpgart.
 [   36.733009] uninorth_agp: Unknown symbol agp_bridge
 [   66.734008] uninorth_agp: gave up waiting for init of module agpgart.
 [   66.735011] uninorth_agp: Unknown symbol agp_find_bridge
 [   96.736009] uninorth_agp: gave up waiting for init of module agpgart.
 [   96.737010] uninorth_agp: Unknown symbol agp_device_command
 

With Debian package modutils not being installed I still had in
/etc/modutils/local and in /etc/modules.conf:

pre-install radeon /sbin/modprobe -k agpgart
pre-install agpgart /sbin/modprobe -k uninorth_agp

I don't know whether these lines can be confusing for the boot
routines, or whether they're read at all by the system on boot
time. Anyway: 

I removed modules.conf, and commented out everything in
/etc/modutils/local

A first reboot after the change didn't break anything, as it seems
... 

Sorry if it was only noise ...

Best Regards
Wolfgang

-- 
http://heelsbroke.blogspot.com/
http://keyserver.mine.nu/pks/lookup?search=0xE3037113fingerprint=on
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: ARCH=ppc - ARCH=powerpc : help needed for dts file

2008-03-09 Thread Philippe De Muyter
Hi Ben,

I now have a working linux on my mpc8540 based board, with support for
the compactflash disk and the i2c rtc.

The network tough, does not work yet. altough the the integrated ethernet
controller (FEC) seems to be recognized.  Could it be a problem with the phy ?
I notice that I do not have an entry for gfar_interrupt in /proc/interrupts
on my ethernet-missing linux, while I have one ont the working arch/ppc linux ?
Do I need to give the phy type in the dts file, and how ?

I would also like to know if it is possible to still get in linux the mac
address known by uboot when using a dts file, and how ?

Thanks for listening.

Philippe
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: ARCH=ppc - ARCH=powerpc : help needed for dts file

2008-03-09 Thread Benjamin Herrenschmidt

On Sun, 2008-03-09 at 23:31 +0100, Philippe De Muyter wrote:
 Hi Ben,
 
 I now have a working linux on my mpc8540 based board, with support for
 the compactflash disk and the i2c rtc.
 
 The network tough, does not work yet. altough the the integrated ethernet
 controller (FEC) seems to be recognized.  Could it be a problem with the phy ?
 I notice that I do not have an entry for gfar_interrupt in /proc/interrupts
 on my ethernet-missing linux, while I have one ont the working arch/ppc linux 
 ?
 Do I need to give the phy type in the dts file, and how ?
 
 I would also like to know if it is possible to still get in linux the mac
 address known by uboot when using a dts file, and how ?

I'll let the freescale people answer here as I don't know the gianfar
driver at all.

Ben.


___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: PPC upstream kernel ignored DABR bug

2008-03-09 Thread Luis Machado
 Yes, I know. I tried it on the PS3 first and couldn't reproduce
 the bug he saw on the blade.

Arnd,

Do we have any news on this topic? 

I've seen this happening quite often within GDB when using hardware
watchpoints on a shared variable in a threaded (7+ threads) binary.
Sometimes the watchpoint won't trigger, even though the monitored
variable's value was modified.

Appreciate your feedback.

Best regards,

-- 
Luis Machado
LoP Toolchain
Software Engineer 
IBM Linux Technology Center

___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: [Patch] 8xx: MGSUVD support

2008-03-09 Thread Stephen Rothwell
Hi Heiko,

Just a few small comments.

On Sun, 09 Mar 2008 10:56:29 +0100 Heiko Schocher [EMAIL PROTECTED] wrote:

 +++ b/arch/powerpc/platforms/8xx/mgsuvd.c

 +#include asm/of_platform.h

You should include linux/of_platform.h (not asm/)

 +static struct cpm_pin mgsuvd_pins[] = {

Make this __initdata, please.

 + ROOT_DEV = Root_NFS;

I am not sue we do this explicitly any more ... hopefully someone else
will comment.

 +static struct of_device_id __initdata of_bus_ids[] = {

Make this __initdata, please.

 +static int __init declare_of_platform_devices(void)
 +{
 + if (!machine_is(mgsuvd))
 + return 0;
 +
 + of_platform_bus_probe(NULL, of_bus_ids, NULL);
 +
 + return 0;
 +}
 +device_initcall(declare_of_platform_devices);

This should be machine_device_initcall(mgsuvd,
declare_of_platform_devices); then you don't need the machine_is() check
above.

-- 
Cheers,
Stephen Rothwell[EMAIL PROTECTED]
http://www.canb.auug.org.au/~sfr/


pgpgxr65Y1Kfi.pgp
Description: PGP signature
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev