Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9065762edf5ac90e312af1f81e03dc2c964d5a86
Commit:     9065762edf5ac90e312af1f81e03dc2c964d5a86
Parent:     62cf6a9d65cd7ba66f96be25e3e8c5036c3e581e
Author:     Geoff Levand <[EMAIL PROTECTED]>
AuthorDate: Sat Jun 16 08:06:51 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Thu Jun 28 19:18:02 2007 +1000

    [POWERPC] PS3: Device tree source
    
    The PS3 device tree source.
    
    Signed-off-by: Geoff Levand <[EMAIL PROTECTED]>
    Acked-by: Segher Boessenkool <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/boot/dts/ps3.dts      |   68 ++++++++++++++++++++++++++++++++++++
 arch/powerpc/platforms/ps3/setup.c |    2 +-
 2 files changed, 69 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/boot/dts/ps3.dts b/arch/powerpc/boot/dts/ps3.dts
new file mode 100644
index 0000000..379ded2
--- /dev/null
+++ b/arch/powerpc/boot/dts/ps3.dts
@@ -0,0 +1,68 @@
+/*
+ *  PS3 Game Console device tree.
+ *
+ *  Copyright (C) 2007 Sony Computer Entertainment Inc.
+ *  Copyright 2007 Sony Corp.
+ *
+ *  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; version 2 of the License.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+/ {
+       model = "SonyPS3";
+       compatible = "sony,ps3";
+       #size-cells = <2>;
+       #address-cells = <2>;
+
+       chosen {
+       };
+
+       /*
+        * We'll get the size of the bootmem block from lv1 after startup,
+        * so we'll put a null entry here.
+        */
+
+       memory {
+               device_type = "memory";
+               reg = <0 0 0 0>;
+       };
+
+       /*
+        * The boot cpu is always zero for PS3.
+        *
+        * dtc expects a clock-frequency and timebase-frequency entries, so
+        * we'll put a null entries here.  These will be initialized after
+        * startup with data from lv1.
+        *
+        * Seems the only way currently to indicate a processor has multiple
+        * threads is with an ibm,ppc-interrupt-server#s entry.  We'll put one
+        * here so we can bring up both of ours.  See smp_setup_cpu_maps().
+        */
+
+       cpus {
+               #size-cells = <0>;
+               #address-cells = <1>;
+
+               [EMAIL PROTECTED] {
+                       device_type = "cpu";
+                       reg = <0>;
+                       ibm,ppc-interrupt-server#s = <0 1>;
+                       clock-frequency = <0>;
+                       timebase-frequency = <0>;
+                       i-cache-size = <8000>;
+                       d-cache-size = <8000>;
+                       i-cache-line-size = <80>;
+                       d-cache-line-size = <80>;
+               };
+       };
+};
diff --git a/arch/powerpc/platforms/ps3/setup.c 
b/arch/powerpc/platforms/ps3/setup.c
index ba38319..6b6eca1 100644
--- a/arch/powerpc/platforms/ps3/setup.c
+++ b/arch/powerpc/platforms/ps3/setup.c
@@ -193,7 +193,7 @@ static int __init ps3_probe(void)
        DBG(" -> %s:%d\n", __func__, __LINE__);
 
        dt_root = of_get_flat_dt_root();
-       if (!of_flat_dt_is_compatible(dt_root, "PS3"))
+       if (!of_flat_dt_is_compatible(dt_root, "sony,ps3"))
                return 0;
 
        powerpc_firmware_features |= FW_FEATURE_PS3_POSSIBLE;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to