[PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-06-11 Thread Vitaly Bordug
From: Heiko Schocher <[EMAIL PROTECTED]>

Updated version was posted to ML: 
http://patchwork.ozlabs.org/linuxppc/patch?id=17250, no new feedback acquired.

Signed-off-by: Heiko Schocher <[EMAIL PROTECTED]>
Signed-off-by: Vitaly Bordug <[EMAIL PROTECTED]>
---

 arch/powerpc/boot/dts/mgcoge.dts  |  165 ++
 arch/powerpc/configs/mgcoge_defconfig |  900 +
 arch/powerpc/platforms/82xx/Kconfig   |9 
 arch/powerpc/platforms/82xx/Makefile  |1 
 arch/powerpc/platforms/82xx/mgcoge.c  |  130 +
 5 files changed, 1205 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..ac28ebc
--- /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 = ð0;
+   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 {
+  

Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-06-12 Thread Scott Wood
On Thu, Jun 12, 2008 at 04:30:53AM +0400, Vitaly Bordug wrote:
> + muram {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges = <0 0 0x1>;
> +
> + [EMAIL PROTECTED] {
> + compatible = "fsl,cpm-muram-data";
> + reg = <0x80 0x1f80 0x9800 0x800>;
> + };
> + };

"fsl,cpm-muram" compatible on the muram node.

> + /* Monitor port/SMC2 */
> + smc2: [EMAIL PROTECTED] {
> + device_type = "serial";
> + compatible = "fsl,mpc8247-smc-uart",
> +  "fsl,cpm2-smc-uart";
> + reg = <0x11a90 0x20 0x88fc 0x02>;
> + interrupts = <5 8>;
> + interrupt-parent = <&PIC>;
> + fsl,cpm-brg = <2>;
> + fsl,cpm-command = <0x2120>;
> + current-speed = <115200>;
> + };

Shouldn't u-boot fill in the current speed?

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


Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-06-13 Thread Heiko Schocher
Hello Scott,

here comes the updated version for the mgcoge port, with your
suggestions:

[powerpc] Added support for the MPC8247 based board MGCOGE
from Keymile.

Signed-off-by: Heiko Schocher <[EMAIL PROTECTED]>
---
 arch/powerpc/boot/dts/mgcoge.dts  |  174 +++
 arch/powerpc/configs/mgcoge_defconfig |  900 +
 arch/powerpc/platforms/82xx/Kconfig   |8 +
 arch/powerpc/platforms/82xx/Makefile  |1 +
 arch/powerpc/platforms/82xx/mgcoge.c  |  130 +
 5 files changed, 1213 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..54d49c5
--- /dev/null
+++ b/arch/powerpc/boot/dts/mgcoge.dts
@@ -0,0 +1,174 @@
+/*
+ * 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 = ð0;
+   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 = "kernel";
+   reg = <0x6 0x22>;
+   };
+   [EMAIL PROTECTED] {
+   label = "dtb";
+   reg = <0x28 0x2>;
+   };
+   };
+
+   [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 = "ramdisk";
+   reg = <0 0x7a>;
+   };
+   [EMAIL PROTECTED] {
+   label = "user";
+   reg = <0x7a 0x186>;
+   };
+   };
+   };
+
+   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>;
+

Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-06-13 Thread Scott Wood
On Fri, Jun 13, 2008 at 06:33:08PM +0200, Heiko Schocher wrote:
> Hello Scott,
> 
> here comes the updated version for the mgcoge port, with your
> suggestions:
> 
> [powerpc] Added support for the MPC8247 based board MGCOGE
> from Keymile.
> 
> Signed-off-by: Heiko Schocher <[EMAIL PROTECTED]>

Acked-by: Scott Wood <[EMAIL PROTECTED]>

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


Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-06-13 Thread Vitaly Bordug
В Fri, 13 Jun 2008 18:33:08 +0200
Heiko Schocher <[EMAIL PROTECTED]> пишет:

> Hello Scott,
> 
> here comes the updated version for the mgcoge port, with your
> suggestions:
> 
> [powerpc] Added support for the MPC8247 based board MGCOGE
> from Keymile.
> 
> Signed-off-by: Heiko Schocher <[EMAIL PROTECTED]>
Acked-by: Vitaly Bordug <[EMAIL PROTECTED]>
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-06-16 Thread David Gibson
On Fri, Jun 13, 2008 at 06:33:08PM +0200, Heiko Schocher wrote:
> Hello Scott,
> 
> here comes the updated version for the mgcoge port, with your
> suggestions:
> 
> [powerpc] Added support for the MPC8247 based board MGCOGE
> from Keymile.
> 
> Signed-off-by: Heiko Schocher <[EMAIL PROTECTED]>
> ---
>  arch/powerpc/boot/dts/mgcoge.dts  |  174 +++
>  arch/powerpc/configs/mgcoge_defconfig |  900 
> +
>  arch/powerpc/platforms/82xx/Kconfig   |8 +
>  arch/powerpc/platforms/82xx/Makefile  |1 +
>  arch/powerpc/platforms/82xx/mgcoge.c  |  130 +
>  5 files changed, 1213 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..54d49c5
> --- /dev/null
> +++ b/arch/powerpc/boot/dts/mgcoge.dts
[snip]
> + [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 = "kernel";
> + reg = <0x6 0x22>;
> + };
> + [EMAIL PROTECTED] {
> + label = "dtb";
> + reg = <0x28 0x2>;
> + };
> + };
> +
> + [EMAIL PROTECTED],0 {

>From the 'reg' below and the 'ranges' above, this looks like it should
be "[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 = "ramdisk";
> + reg = <0 0x7a>;
> + };
> + [EMAIL PROTECTED] {
> + label = "user";
> + reg = <0x7a 0x186>;
> + };
> + };
> + };

-- 
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
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-06-16 Thread Heiko Schocher
Hello David,

David Gibson wrote:
> On Fri, Jun 13, 2008 at 06:33:08PM +0200, Heiko Schocher wrote:
>> Hello Scott,
>>
>> here comes the updated version for the mgcoge port, with your
>> suggestions:
>>
>> [powerpc] Added support for the MPC8247 based board MGCOGE
>> from Keymile.
>>
>> Signed-off-by: Heiko Schocher <[EMAIL PROTECTED]>
>> ---
>>  arch/powerpc/boot/dts/mgcoge.dts  |  174 +++
>>  arch/powerpc/configs/mgcoge_defconfig |  900 
>> +
>>  arch/powerpc/platforms/82xx/Kconfig   |8 +
>>  arch/powerpc/platforms/82xx/Makefile  |1 +
>>  arch/powerpc/platforms/82xx/mgcoge.c  |  130 +
>>  5 files changed, 1213 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..54d49c5
>> --- /dev/null
>> +++ b/arch/powerpc/boot/dts/mgcoge.dts
> [snip]
[snip]
>> +[EMAIL PROTECTED],0 {
> 
>>From the 'reg' below and the 'ranges' above, this looks like it should
> be "[EMAIL PROTECTED],0".
> 
>> +compatible = "cfi-flash";
>> +reg = <1 0x0 0x200>;
>> +#address-cells = <1>;

The reg entry is wrong, the Flash is on CS5. Here the updated version of
the patch:

[powerpc]  Added support for the MPC8247 based board MGCOGE
   from Keymile.

Signed-off-by: Heiko Schocher <[EMAIL PROTECTED]>
---
 arch/powerpc/boot/dts/mgcoge.dts  |  174 +++
 arch/powerpc/configs/mgcoge_defconfig |  900 +
 arch/powerpc/platforms/82xx/Kconfig   |8 +
 arch/powerpc/platforms/82xx/Makefile  |1 +
 arch/powerpc/platforms/82xx/mgcoge.c  |  130 +
 5 files changed, 1213 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..ecce20d
--- /dev/null
+++ b/arch/powerpc/boot/dts/mgcoge.dts
@@ -0,0 +1,174 @@
+/*
+ * 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 = ð0;
+   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 = "kernel";
+   reg = <0x6 0x22>;
+   };
+   [EMAIL PROTECTED] {
+

Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-06-16 Thread Scott Wood
On Mon, Jun 16, 2008 at 11:40:30AM +0200, Heiko Schocher wrote:
> The reg entry is wrong, the Flash is on CS5. Here the updated version of
> the patch:

You need to update the ranges property as well.

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


Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-06-16 Thread Heiko Schocher
Hello Scott,

Scott Wood wrote:
> On Mon, Jun 16, 2008 at 11:40:30AM +0200, Heiko Schocher wrote:
>> The reg entry is wrong, the Flash is on CS5. Here the updated version of
>> the patch:
> 
> You need to update the ranges property as well.

Sure, here the new patch:

[powerpc]  Added support for the MPC8247 based board MGCOGE
from Keymile.

Signed-off-by: Heiko Schocher <[EMAIL PROTECTED]>
---
 arch/powerpc/boot/dts/mgcoge.dts  |  174 +++
 arch/powerpc/configs/mgcoge_defconfig |  900 +
 arch/powerpc/platforms/82xx/Kconfig   |8 +
 arch/powerpc/platforms/82xx/Makefile  |1 +
 arch/powerpc/platforms/82xx/mgcoge.c  |  130 +
 5 files changed, 1213 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..ecce20d
--- /dev/null
+++ b/arch/powerpc/boot/dts/mgcoge.dts
@@ -0,0 +1,174 @@
+/*
+ * 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 = ð0;
+   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
+ 5 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 = "kernel";
+   reg = <0x6 0x22>;
+   };
+   [EMAIL PROTECTED] {
+   label = "dtb";
+   reg = <0x28 0x2>;
+   };
+   };
+
+   [EMAIL PROTECTED],0 {
+   compatible = "cfi-flash";
+   reg = <5 0x0 0x200>;
+   #address-cells = <1>;
+   #size-cells = <1>;
+   bank-width = <2>;
+   device-width = <2>;
+   [EMAIL PROTECTED] {
+   label = "ramdisk";
+   reg = <0 0x7a>;
+   };
+   [EMAIL PROTECTED] {
+   label = "user";
+   reg = <0x7a 0x186>;
+   };
+   };
+   };
+
+   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>;
+
+   // Te

Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-06-18 Thread Heiko Schocher
Hello,

changes since the last patch:

update the Portpin initialization.

[powerpc]  Added support for the MPC8247 based board MGCOGE
   from Keymile.

Signed-off-by: Heiko Schocher <[EMAIL PROTECTED]>
---
 arch/powerpc/boot/dts/mgcoge.dts  |  174 +++
 arch/powerpc/configs/mgcoge_defconfig |  900 +
 arch/powerpc/platforms/82xx/Kconfig   |8 +
 arch/powerpc/platforms/82xx/Makefile  |1 +
 arch/powerpc/platforms/82xx/mgcoge.c  |  129 +
 5 files changed, 1212 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..633255a
--- /dev/null
+++ b/arch/powerpc/boot/dts/mgcoge.dts
@@ -0,0 +1,174 @@
+/*
+ * 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 = ð0;
+   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
+ 5 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 = "kernel";
+   reg = <0x6 0x22>;
+   };
+   [EMAIL PROTECTED] {
+   label = "dtb";
+   reg = <0x28 0x2>;
+   };
+   };
+
+   [EMAIL PROTECTED],0 {
+   compatible = "cfi-flash";
+   reg = <5 0x0 0x200>;
+   #address-cells = <1>;
+   #size-cells = <1>;
+   bank-width = <2>;
+   device-width = <2>;
+   [EMAIL PROTECTED] {
+   label = "ramdisk";
+   reg = <0 0x7a>;
+   };
+   [EMAIL PROTECTED] {
+   label = "user";
+   reg = <0x7a 0x186>;
+   };
+   };
+   };
+
+   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-ce

Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-08-15 Thread Kumar Gala


On Jun 18, 2008, at 3:38 AM, Heiko Schocher wrote:


Hello,

changes since the last patch:

update the Portpin initialization.

[powerpc]  Added support for the MPC8247 based board MGCOGE
  from Keymile.

Signed-off-by: Heiko Schocher <[EMAIL PROTECTED]>
---
arch/powerpc/boot/dts/mgcoge.dts  |  174 +++
arch/powerpc/configs/mgcoge_defconfig |  900  
+

arch/powerpc/platforms/82xx/Kconfig   |8 +
arch/powerpc/platforms/82xx/Makefile  |1 +
arch/powerpc/platforms/82xx/mgcoge.c  |  129 +
5 files changed, 1212 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


This fails to compile for with 2.6.27-rc3:

drivers/net/fs_enet/mac-scc.c: In function 'restart':
drivers/net/fs_enet/mac-scc.c:256: error: implicit declaration of  
function '__fs_out8'
drivers/net/fs_enet/mac-scc.c:265: error: 'SCC_EB' undeclared (first  
use in this function)
drivers/net/fs_enet/mac-scc.c:265: error: (Each undeclared identifier  
is reported only once
drivers/net/fs_enet/mac-scc.c:265: error: for each function it appears  
in.)

make[3]: *** [drivers/net/fs_enet/mac-scc.o] Error 1
make[2]: *** [drivers/net/fs_enet] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs


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


Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-08-15 Thread Heiko Schocher
Hello Kumar,

Kumar Gala schrieb:
> On Jun 18, 2008, at 3:38 AM, Heiko Schocher wrote:
>> changes since the last patch:
>>
>> update the Portpin initialization.
>>
>> [powerpc]  Added support for the MPC8247 based board MGCOGE
>>   from Keymile.
>>
>> Signed-off-by: Heiko Schocher <[EMAIL PROTECTED]>
>> ---
>> arch/powerpc/boot/dts/mgcoge.dts  |  174 +++
>> arch/powerpc/configs/mgcoge_defconfig |  900
>> +
>> arch/powerpc/platforms/82xx/Kconfig   |8 +
>> arch/powerpc/platforms/82xx/Makefile  |1 +
>> arch/powerpc/platforms/82xx/mgcoge.c  |  129 +
>> 5 files changed, 1212 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
> 
> This fails to compile for with 2.6.27-rc3:
> 
> drivers/net/fs_enet/mac-scc.c: In function 'restart':
> drivers/net/fs_enet/mac-scc.c:256: error: implicit declaration of
> function '__fs_out8'
> drivers/net/fs_enet/mac-scc.c:265: error: 'SCC_EB' undeclared (first use
> in this function)
> drivers/net/fs_enet/mac-scc.c:265: error: (Each undeclared identifier is
> reported only once
> drivers/net/fs_enet/mac-scc.c:265: error: for each function it appears in.)
> make[3]: *** [drivers/net/fs_enet/mac-scc.o] Error 1
> make[2]: *** [drivers/net/fs_enet] Error 2
> make[1]: *** [drivers/net] Error 2
> make: *** [drivers] Error 2
> make: *** Waiting for unfinished jobs

:-(

So in 2.6.27-rc3 lacks another patch from me :-( , see:

http://ozlabs.org/pipermail/linuxppc-dev/2008-June/057824.html

and I posted this patch First time in January 2008!

bye,
Heiko
-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-08-29 Thread Kumar Gala


On Jun 18, 2008, at 3:38 AM, Heiko Schocher wrote:


Hello,

changes since the last patch:

update the Portpin initialization.

[powerpc]  Added support for the MPC8247 based board MGCOGE
  from Keymile.

Signed-off-by: Heiko Schocher <[EMAIL PROTECTED]>
---
arch/powerpc/boot/dts/mgcoge.dts  |  174 +++
arch/powerpc/configs/mgcoge_defconfig |  900  
+

arch/powerpc/platforms/82xx/Kconfig   |8 +
arch/powerpc/platforms/82xx/Makefile  |1 +
arch/powerpc/platforms/82xx/mgcoge.c  |  129 +
5 files changed, 1212 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



applied to powerpc-next.

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


Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-08-29 Thread Jon Loeliger

Kumar Gala wrote:


arch/powerpc/boot/dts/mgcoge.dts  |  174 +++
arch/powerpc/configs/mgcoge_defconfig |  900 
+

arch/powerpc/platforms/82xx/Kconfig   |8 +
arch/powerpc/platforms/82xx/Makefile  |1 +
arch/powerpc/platforms/82xx/mgcoge.c  |  129 +
5 files changed, 1212 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



applied to powerpc-next.

- k


This is a bit ambiguous.  Do you mean your galak next branch?
Or the Ben/Paul powerpc next branch?

Thanks,
jdl

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


Re: [PATCH] [82xx] powerpc: Add support for mpc8247 based board MGCOGE from keymile.

2008-08-29 Thread Kumar Gala


On Aug 29, 2008, at 8:51 AM, Jon Loeliger wrote:


Kumar Gala wrote:


arch/powerpc/boot/dts/mgcoge.dts  |  174 +++
arch/powerpc/configs/mgcoge_defconfig |  900 ++ 
+++

arch/powerpc/platforms/82xx/Kconfig   |8 +
arch/powerpc/platforms/82xx/Makefile  |1 +
arch/powerpc/platforms/82xx/mgcoge.c  |  129 +
5 files changed, 1212 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

applied to powerpc-next.
- k


This is a bit ambiguous.  Do you mean your galak next branch?
Or the Ben/Paul powerpc next branch?


seeing as the email is from me, it means its applied to my powerpc- 
next branch.


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