linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] 85xx: Add suport for TQM8548 and some TQM85xx fixes
@ 2008-05-30  6:49 Wolfgang Grandegger
  2008-05-30  6:49 ` [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules Wolfgang Grandegger
  0 siblings, 1 reply; 25+ messages in thread
From: Wolfgang Grandegger @ 2008-05-30  6:49 UTC (permalink / raw)
  To: Linuxppc-dev

the following series of patches adds support for the TQM8548 modules from
TQ Components (http://www.tqc.de) and fixes furthermore some issues with
other TQM85xx modules.

The NAND support is based on the patch with the subject
"[PATCH] [NAND] driver extension to support NAND on TQM85xx modules"
posted to this list a few minutes ago.

Wolfgang.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-05-30  6:49 [PATCH 0/4] 85xx: Add suport for TQM8548 and some TQM85xx fixes Wolfgang Grandegger
@ 2008-05-30  6:49 ` Wolfgang Grandegger
  2008-05-30  6:49   ` [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash Wolfgang Grandegger
                     ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Wolfgang Grandegger @ 2008-05-30  6:49 UTC (permalink / raw)
  To: Linuxppc-dev

This patch adds support for the TQM8548 modules from TQ-Components
GmbH (http://www.tqc.de).

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
---
 arch/powerpc/boot/Makefile                  |    1 +
 arch/powerpc/boot/dts/tqm8548.dts           |  370 +++++++++
 arch/powerpc/boot/wrapper                   |    2 +-
 arch/powerpc/configs/85xx/tqm8548_defconfig | 1111 +++++++++++++++++++++++++++
 arch/powerpc/platforms/85xx/Kconfig         |    8 +
 arch/powerpc/platforms/85xx/tqm85xx.c       |   14 +-
 6 files changed, 1503 insertions(+), 3 deletions(-)
 create mode 100644 arch/powerpc/boot/dts/tqm8548.dts
 create mode 100644 arch/powerpc/configs/85xx/tqm8548_defconfig

diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index f5e0b2a..d5dc0c5 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -254,6 +254,7 @@ image-$(CONFIG_MPC85xx_DS)		+= cuImage.mpc8544ds \
 					   cuImage.mpc8572ds
 image-$(CONFIG_TQM8540)			+= cuImage.tqm8540
 image-$(CONFIG_TQM8541)			+= cuImage.tqm8541
+image-$(CONFIG_TQM8548)			+= cuImage.tqm8548
 image-$(CONFIG_TQM8555)			+= cuImage.tqm8555
 image-$(CONFIG_TQM8560)			+= cuImage.tqm8560
 image-$(CONFIG_SBC8548)			+= cuImage.sbc8548
diff --git a/arch/powerpc/boot/dts/tqm8548.dts b/arch/powerpc/boot/dts/tqm8548.dts
new file mode 100644
index 0000000..d09250a
--- /dev/null
+++ b/arch/powerpc/boot/dts/tqm8548.dts
@@ -0,0 +1,370 @@
+/*
+ * TQM8548 Device Tree Source
+ *
+ * Copyright 2006 Freescale Semiconductor Inc.
+ * Copyright 2008 Wolfgang Grandegger <wg@denx.de>
+ *
+ * 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 = "tqm,8548";
+	compatible = "tqm,8548", "tqm,85xx";
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	aliases {
+		ethernet0 = &enet0;
+		ethernet1 = &enet1;
+		ethernet2 = &enet2;
+		ethernet3 = &enet3;
+
+		serial0 = &serial0;
+		serial1 = &serial1;
+		pci0 = &pci0;
+		pci1 = &pci1;
+	};
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		PowerPC,8548@0 {
+			device_type = "cpu";
+			reg = <0>;
+			d-cache-line-size = <32>;	// 32 bytes
+			i-cache-line-size = <32>;	// 32 bytes
+			d-cache-size = <0x8000>;	// L1, 32K
+			i-cache-size = <0x8000>;	// L1, 32K
+			timebase-frequency = <0>;	// from U-Boot
+			bus-frequency = <0>;	// from U-Boot
+			clock-frequency = <0>;	// from U-Boot
+		};
+	};
+
+	memory {
+		device_type = "memory";
+		reg = <0x00000000 0x20000000>;
+	};
+
+	soc8548@e0000000 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		device_type = "soc";
+		ranges = <0x0 0xe0000000 0x100000>;
+		reg = <0xe0000000 0x1000>;	// CCSRBAR
+		bus-frequency = <0>;
+
+		memory-controller@2000 {
+			compatible = "fsl,8548-memory-controller";
+			reg = <0x2000 0x1000>;
+			interrupt-parent = <&mpic>;
+			interrupts = <18 2>;
+		};
+
+		l2-cache-controller@20000 {
+			compatible = "fsl,8548-l2-cache-controller";
+			reg = <0x20000 0x1000>;
+			cache-line-size = <32>;	// 32 bytes
+			cache-size = <0x80000>;	// L2, 512K
+			interrupt-parent = <&mpic>;
+			interrupts = <16 2>;
+		};
+
+		i2c@3000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			cell-index = <0>;
+			compatible = "fsl-i2c";
+			reg = <0x3000 0x100>;
+			interrupts = <43 2>;
+			interrupt-parent = <&mpic>;
+			dfsrr;
+		};
+
+		i2c@3100 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			cell-index = <1>;
+			compatible = "fsl-i2c";
+			reg = <0x3100 0x100>;
+			interrupts = <43 2>;
+			interrupt-parent = <&mpic>;
+			dfsrr;
+		};
+
+		mdio@24520 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "fsl,gianfar-mdio";
+			reg = <0x24520 0x20>;
+
+			phy1: ethernet-phy@0 {
+				interrupt-parent = <&mpic>;
+				interrupts = <8 1>;
+				reg = <1>;
+				device_type = "ethernet-phy";
+			};
+			phy2: ethernet-phy@1 {
+				interrupt-parent = <&mpic>;
+				interrupts = <8 1>;
+				reg = <2>;
+				device_type = "ethernet-phy";
+			};
+			phy3: ethernet-phy@3 {
+				interrupt-parent = <&mpic>;
+				interrupts = <8 1>;
+				reg = <3>;
+				device_type = "ethernet-phy";
+			};
+			phy4: ethernet-phy@4 {
+				interrupt-parent = <&mpic>;
+				interrupts = <8 1>;
+				reg = <4>;
+				device_type = "ethernet-phy";
+			};
+			phy5: ethernet-phy@5 {
+				interrupt-parent = <&mpic>;
+				interrupts = <8 1>;
+				reg = <5>;
+				device_type = "ethernet-phy";
+			};
+		};
+
+		enet0: ethernet@24000 {
+			cell-index = <0>;
+			device_type = "network";
+			model = "eTSEC";
+			compatible = "gianfar";
+			reg = <0x24000 0x1000>;
+			local-mac-address = [ 00 00 00 00 00 00 ];
+			interrupts = <29 2 30 2 34 2>;
+			interrupt-parent = <&mpic>;
+			phy-handle = <&phy2>;
+		};
+
+		enet1: ethernet@25000 {
+			cell-index = <1>;
+			device_type = "network";
+			model = "eTSEC";
+			compatible = "gianfar";
+			reg = <0x25000 0x1000>;
+			local-mac-address = [ 00 00 00 00 00 00 ];
+			interrupts = <35 2 36 2 40 2>;
+			interrupt-parent = <&mpic>;
+			phy-handle = <&phy1>;
+		};
+
+		enet2: ethernet@26000 {
+			cell-index = <2>;
+			device_type = "network";
+			model = "eTSEC";
+			compatible = "gianfar";
+			reg = <0x26000 0x1000>;
+			local-mac-address = [ 00 00 00 00 00 00 ];
+			interrupts = <31 2 32 2 33 2>;
+			interrupt-parent = <&mpic>;
+			phy-handle = <&phy3>;
+		};
+
+		enet3: ethernet@27000 {
+			cell-index = <3>;
+			device_type = "network";
+			model = "eTSEC";
+			compatible = "gianfar";
+			reg = <0x27000 0x1000>;
+			local-mac-address = [ 00 00 00 00 00 00 ];
+			interrupts = <37 2 38 2 39 2>;
+			interrupt-parent = <&mpic>;
+			phy-handle = <&phy4>;
+		};
+
+		serial0: serial@4500 {
+			cell-index = <0>;
+			device_type = "serial";
+			compatible = "ns16550";
+			reg = <0x4500 0x100>;	// reg base, size
+			clock-frequency = <0>;	// should we fill in in uboot?
+			current-speed = <115200>;
+			interrupts = <42 2>;
+			interrupt-parent = <&mpic>;
+		};
+
+		serial1: serial@4600 {
+			cell-index = <1>;
+			device_type = "serial";
+			compatible = "ns16550";
+			reg = <0x4600 0x100>;	// reg base, size
+			clock-frequency = <0>;	// should we fill in in uboot?
+			current-speed = <115200>;
+			interrupts = <42 2>;
+			interrupt-parent = <&mpic>;
+		};
+
+		global-utilities@e0000 {	// global utilities reg
+			compatible = "fsl,mpc8548-guts";
+			reg = <0xe0000 0x1000>;
+			fsl,has-rstcr;
+		};
+
+		mpic: pic@40000 {
+			clock-frequency = <0>;
+			interrupt-controller;
+			#address-cells = <0>;
+			#interrupt-cells = <2>;
+			reg = <0x40000 0x40000>;
+			compatible = "chrp,open-pic";
+			device_type = "open-pic";
+                        big-endian;
+		};
+	};
+
+	localbus@e0005000 {
+		compatible = "fsl,mpc8548-localbus", "fsl,pq3-localbus",
+			     "simple-bus";
+		#address-cells = <2>;
+		#size-cells = <1>;
+		reg = <0xe0005000 0x100>;	// BRx, ORx, etc.
+
+		ranges = <
+			0 0x0 0xfc000000 0x04000000	// NOR FLASH bank 1
+			1 0x0 0xf8000000 0x08000000	// NOR FLASH bank 0
+			2 0x0 0xe3000000 0x00008000	// CAN (2 x i82527)
+			3 0x0 0xe3010000 0x00008000	// NAND FLASH
+
+		>;
+
+		flash@1,0 {
+			#address-cells = <1>;
+			#size-cells = <1>;
+			compatible = "cfi-flash";
+			reg = <1 0x0 0x8000000>;
+			bank-width = <4>;
+			device-width = <1>;
+
+			partition@0 {
+                                label = "kernel";
+                                reg = <0x00000000 0x00200000>;
+                        };
+                        partition@200000 {
+                                label = "root";
+                                reg = <0x00200000 0x00300000>;
+                        };
+                        partition@500000 {
+                                label = "user";
+                                reg = <0x00500000 0x07a00000>;
+                        };
+                        partition@7f00000 {
+                                label = "env1";
+                                reg = <0x07f00000 0x00040000>;
+                        };
+                        partition@7f40000 {
+                                label = "env2";
+                                reg = <0x07f40000 0x00040000>;
+                        };
+                        partition@7f80000 {
+                                label = "u-boot";
+                                reg = <0x07f80000 0x00080000>;
+                                read-only;
+                        };
+		};
+
+/* CAN support must be enabled in U-Boot before Linux can use it
+		can0@2,0 {
+			compatible = "intel,82527"; // Bosch CC770
+			reg = <2 0x0 0x100>;
+			interrupts = <4 0>;
+			interrupt-parent = <&mpic>;
+		};
+
+		can1@2,100 {
+			compatible = "intel,82527"; // Bosch CC770
+			reg = <2 0x100 0x100>;
+			interrupts = <4 0>;
+			interrupt-parent = <&mpic>;
+		};
+*/
+
+/* NAND support must be enabled in U-Boot before Linux can use it
+		upm@3,0 {
+			#address-cells = <0>;
+			#size-cells = <0>;
+			reg = <3 0x0 0x800>;
+			fsl,upm-addr-offset = <0x10>;
+			fsl,upm-cmd-offset = <0x08>;
+			chip-delay = <25>; // in micro-seconds
+
+			nand@0 {
+				#address-cells = <1>;
+				#size-cells = <1>;
+
+				partition@0 {
+					    label = "fs";
+					    reg = <0x00000000 0x01000000>;
+				};
+			};
+		};
+*/
+	};
+
+	pci0: pci@e0008000 {
+		cell-index = <0>;
+		#interrupt-cells = <1>;
+		#size-cells = <2>;
+		#address-cells = <3>;
+		compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
+		device_type = "pci";
+		reg = <0xe0008000 0x1000>;
+		clock-frequency = <33333333>;
+		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
+		interrupt-map = <
+				/* IDSEL 28 */
+				 0xe000 0 0 1 &mpic 2 1
+				 0xe000 0 0 2 &mpic 3 1>;
+
+		interrupt-parent = <&mpic>;
+		interrupts = <24 2>;
+		bus-range = <0 0>;
+		ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000
+			  0x01000000 0 0x00000000 0xe2000000 0 0x01000000>;
+	};
+
+	pci1: pcie@e000a000 {
+		cell-index = <2>;
+		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
+		interrupt-map = <
+			/* IDSEL 0x0 (PEX) */
+			0x00000 0 0 1 &mpic 0 1
+			0x00000 0 0 2 &mpic 1 1
+			0x00000 0 0 3 &mpic 2 1
+			0x00000 0 0 4 &mpic 3 1>;
+
+		interrupt-parent = <&mpic>;
+		interrupts = <26 2>;
+		bus-range = <0 0xff>;
+		ranges = <0x02000000 0 0xc0000000 0xc0000000 0 0x20000000
+			  0x01000000 0 0x00000000 0xef000000 0 0x08000000>;
+		clock-frequency = <33333333>;
+		#interrupt-cells = <1>;
+		#size-cells = <2>;
+		#address-cells = <3>;
+		reg = <0xe000a000 0x1000>;
+		compatible = "fsl,mpc8548-pcie";
+		device_type = "pci";
+		pcie@0 {
+			reg = <0 0 0 0 0>;
+			#size-cells = <2>;
+			#address-cells = <3>;
+			device_type = "pci";
+			ranges = <0x02000000 0 0xc0000000 0x02000000 0
+			          0xc0000000 0 0x20000000
+				  0x01000000 0 0x00000000 0x01000000 0
+				  0x00000000 0 0x08000000>;
+		};
+	};
+};
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index d6c96d9..e2a4bb2 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -177,7 +177,7 @@ cuboot*)
     *-tqm8541|*-mpc8560*|*-tqm8560|*-tqm8555|*-ksi8560*)
         platformo=$object/cuboot-85xx-cpm2.o
         ;;
-    *-mpc85*|*-tqm8540|*-sbc85*)
+    *-mpc85*|*-tqm8540|*-tqm8548|*-sbc85*)
         platformo=$object/cuboot-85xx.o
         ;;
     esac
diff --git a/arch/powerpc/configs/85xx/tqm8548_defconfig b/arch/powerpc/configs/85xx/tqm8548_defconfig
new file mode 100644
index 0000000..75428dc
--- /dev/null
+++ b/arch/powerpc/configs/85xx/tqm8548_defconfig
@@ -0,0 +1,1111 @@
+#
+# Automatically generated make config: don't edit
+# Linux kernel version: 2.6.26-rc3
+# Fri May 23 12:53:14 2008
+#
+# CONFIG_PPC64 is not set
+
+#
+# Processor support
+#
+# CONFIG_6xx is not set
+CONFIG_PPC_85xx=y
+# CONFIG_PPC_8xx is not set
+# CONFIG_40x is not set
+# CONFIG_44x is not set
+# CONFIG_E200 is not set
+CONFIG_E500=y
+CONFIG_BOOKE=y
+CONFIG_FSL_BOOKE=y
+CONFIG_FSL_EMB_PERFMON=y
+# CONFIG_PHYS_64BIT is not set
+CONFIG_SPE=y
+# CONFIG_PPC_MM_SLICES is not set
+CONFIG_PPC32=y
+CONFIG_WORD_SIZE=32
+CONFIG_PPC_MERGE=y
+CONFIG_MMU=y
+CONFIG_GENERIC_CMOS_UPDATE=y
+CONFIG_GENERIC_TIME=y
+CONFIG_GENERIC_TIME_VSYSCALL=y
+CONFIG_GENERIC_CLOCKEVENTS=y
+CONFIG_GENERIC_HARDIRQS=y
+# CONFIG_HAVE_SETUP_PER_CPU_AREA is not set
+CONFIG_IRQ_PER_CPU=y
+CONFIG_STACKTRACE_SUPPORT=y
+CONFIG_LOCKDEP_SUPPORT=y
+CONFIG_RWSEM_XCHGADD_ALGORITHM=y
+CONFIG_ARCH_HAS_ILOG2_U32=y
+CONFIG_GENERIC_HWEIGHT=y
+CONFIG_GENERIC_CALIBRATE_DELAY=y
+CONFIG_GENERIC_FIND_NEXT_BIT=y
+# CONFIG_ARCH_NO_VIRT_TO_BUS is not set
+CONFIG_PPC=y
+CONFIG_EARLY_PRINTK=y
+CONFIG_GENERIC_NVRAM=y
+CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
+CONFIG_ARCH_MAY_HAVE_PC_FDC=y
+CONFIG_PPC_OF=y
+CONFIG_OF=y
+CONFIG_PPC_UDBG_16550=y
+# CONFIG_GENERIC_TBSYNC is not set
+CONFIG_AUDIT_ARCH=y
+CONFIG_GENERIC_BUG=y
+CONFIG_DEFAULT_UIMAGE=y
+# CONFIG_PPC_DCR_NATIVE is not set
+# CONFIG_PPC_DCR_MMIO is not set
+CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
+
+#
+# General setup
+#
+CONFIG_EXPERIMENTAL=y
+CONFIG_BROKEN_ON_SMP=y
+CONFIG_INIT_ENV_ARG_LIMIT=32
+CONFIG_LOCALVERSION=""
+CONFIG_LOCALVERSION_AUTO=y
+CONFIG_SWAP=y
+CONFIG_SYSVIPC=y
+CONFIG_SYSVIPC_SYSCTL=y
+# CONFIG_POSIX_MQUEUE is not set
+# CONFIG_BSD_PROCESS_ACCT is not set
+# CONFIG_TASKSTATS is not set
+# CONFIG_AUDIT is not set
+# CONFIG_IKCONFIG is not set
+CONFIG_LOG_BUF_SHIFT=14
+# CONFIG_CGROUPS is not set
+CONFIG_GROUP_SCHED=y
+# CONFIG_FAIR_GROUP_SCHED is not set
+# CONFIG_RT_GROUP_SCHED is not set
+CONFIG_USER_SCHED=y
+# CONFIG_CGROUP_SCHED is not set
+CONFIG_SYSFS_DEPRECATED=y
+CONFIG_SYSFS_DEPRECATED_V2=y
+# CONFIG_RELAY is not set
+# CONFIG_NAMESPACES is not set
+CONFIG_BLK_DEV_INITRD=y
+CONFIG_INITRAMFS_SOURCE=""
+# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
+CONFIG_SYSCTL=y
+CONFIG_EMBEDDED=y
+CONFIG_SYSCTL_SYSCALL=y
+CONFIG_SYSCTL_SYSCALL_CHECK=y
+CONFIG_KALLSYMS=y
+# CONFIG_KALLSYMS_ALL is not set
+# CONFIG_KALLSYMS_EXTRA_PASS is not set
+CONFIG_HOTPLUG=y
+CONFIG_PRINTK=y
+CONFIG_BUG=y
+CONFIG_ELF_CORE=y
+CONFIG_COMPAT_BRK=y
+CONFIG_BASE_FULL=y
+CONFIG_FUTEX=y
+CONFIG_ANON_INODES=y
+CONFIG_EPOLL=y
+CONFIG_SIGNALFD=y
+CONFIG_TIMERFD=y
+CONFIG_EVENTFD=y
+CONFIG_SHMEM=y
+CONFIG_VM_EVENT_COUNTERS=y
+CONFIG_SLUB_DEBUG=y
+# CONFIG_SLAB is not set
+CONFIG_SLUB=y
+# CONFIG_SLOB is not set
+# CONFIG_PROFILING is not set
+# CONFIG_MARKERS is not set
+CONFIG_HAVE_OPROFILE=y
+# CONFIG_KPROBES is not set
+CONFIG_HAVE_KPROBES=y
+CONFIG_HAVE_KRETPROBES=y
+# CONFIG_HAVE_DMA_ATTRS is not set
+CONFIG_PROC_PAGE_MONITOR=y
+CONFIG_SLABINFO=y
+CONFIG_RT_MUTEXES=y
+# CONFIG_TINY_SHMEM is not set
+CONFIG_BASE_SMALL=0
+CONFIG_MODULES=y
+# CONFIG_MODULE_FORCE_LOAD is not set
+CONFIG_MODULE_UNLOAD=y
+# CONFIG_MODULE_FORCE_UNLOAD is not set
+# CONFIG_MODVERSIONS is not set
+# CONFIG_MODULE_SRCVERSION_ALL is not set
+# CONFIG_KMOD is not set
+CONFIG_BLOCK=y
+# CONFIG_LBD is not set
+# CONFIG_BLK_DEV_IO_TRACE is not set
+# CONFIG_LSF is not set
+# CONFIG_BLK_DEV_BSG is not set
+
+#
+# IO Schedulers
+#
+CONFIG_IOSCHED_NOOP=y
+CONFIG_IOSCHED_AS=y
+CONFIG_IOSCHED_DEADLINE=y
+CONFIG_IOSCHED_CFQ=y
+CONFIG_DEFAULT_AS=y
+# CONFIG_DEFAULT_DEADLINE is not set
+# CONFIG_DEFAULT_CFQ is not set
+# CONFIG_DEFAULT_NOOP is not set
+CONFIG_DEFAULT_IOSCHED="anticipatory"
+CONFIG_CLASSIC_RCU=y
+
+#
+# Platform support
+#
+# CONFIG_PPC_MPC512x is not set
+# CONFIG_PPC_MPC5121 is not set
+# CONFIG_PPC_CELL is not set
+# CONFIG_PPC_CELL_NATIVE is not set
+# CONFIG_PQ2ADS is not set
+CONFIG_MPC85xx=y
+# CONFIG_MPC8540_ADS is not set
+# CONFIG_MPC8560_ADS is not set
+# CONFIG_MPC85xx_CDS is not set
+# CONFIG_MPC85xx_MDS is not set
+# CONFIG_MPC85xx_DS is not set
+# CONFIG_KSI8560 is not set
+# CONFIG_STX_GP3 is not set
+# CONFIG_TQM8540 is not set
+# CONFIG_TQM8541 is not set
+CONFIG_TQM8548=y
+# CONFIG_TQM8555 is not set
+# CONFIG_TQM8560 is not set
+# CONFIG_SBC8548 is not set
+# CONFIG_SBC8560 is not set
+CONFIG_TQM85xx=y
+# CONFIG_IPIC is not set
+CONFIG_MPIC=y
+# CONFIG_MPIC_WEIRD is not set
+# CONFIG_PPC_I8259 is not set
+# CONFIG_PPC_RTAS is not set
+# CONFIG_MMIO_NVRAM is not set
+# CONFIG_PPC_MPC106 is not set
+# CONFIG_PPC_970_NAP is not set
+# CONFIG_PPC_INDIRECT_IO is not set
+# CONFIG_GENERIC_IOMAP is not set
+# CONFIG_CPU_FREQ is not set
+# CONFIG_CPM2 is not set
+CONFIG_PPC_CPM_NEW_BINDING=y
+# CONFIG_FSL_ULI1575 is not set
+
+#
+# Kernel options
+#
+# CONFIG_HIGHMEM is not set
+CONFIG_TICK_ONESHOT=y
+CONFIG_NO_HZ=y
+CONFIG_HIGH_RES_TIMERS=y
+CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
+# CONFIG_HZ_100 is not set
+CONFIG_HZ_250=y
+# CONFIG_HZ_300 is not set
+# CONFIG_HZ_1000 is not set
+CONFIG_HZ=250
+# CONFIG_SCHED_HRTICK is not set
+CONFIG_PREEMPT_NONE=y
+# CONFIG_PREEMPT_VOLUNTARY is not set
+# CONFIG_PREEMPT is not set
+CONFIG_BINFMT_ELF=y
+CONFIG_BINFMT_MISC=y
+CONFIG_MATH_EMULATION=y
+# CONFIG_IOMMU_HELPER is not set
+CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
+CONFIG_ARCH_HAS_WALK_MEMORY=y
+CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y
+CONFIG_ARCH_FLATMEM_ENABLE=y
+CONFIG_ARCH_POPULATES_NODE_MAP=y
+CONFIG_SELECT_MEMORY_MODEL=y
+CONFIG_FLATMEM_MANUAL=y
+# CONFIG_DISCONTIGMEM_MANUAL is not set
+# CONFIG_SPARSEMEM_MANUAL is not set
+CONFIG_FLATMEM=y
+CONFIG_FLAT_NODE_MEM_MAP=y
+# CONFIG_SPARSEMEM_STATIC is not set
+# CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set
+CONFIG_PAGEFLAGS_EXTENDED=y
+CONFIG_SPLIT_PTLOCK_CPUS=4
+# CONFIG_RESOURCES_64BIT is not set
+CONFIG_ZONE_DMA_FLAG=1
+CONFIG_BOUNCE=y
+CONFIG_VIRT_TO_BUS=y
+CONFIG_FORCE_MAX_ZONEORDER=11
+CONFIG_PROC_DEVICETREE=y
+# CONFIG_CMDLINE_BOOL is not set
+# CONFIG_PM is not set
+# CONFIG_SECCOMP is not set
+CONFIG_ISA_DMA_API=y
+
+#
+# Bus options
+#
+CONFIG_ZONE_DMA=y
+CONFIG_PPC_INDIRECT_PCI=y
+CONFIG_FSL_SOC=y
+CONFIG_FSL_PCI=y
+CONFIG_FSL_LBC=y
+CONFIG_PCI=y
+CONFIG_PCI_DOMAINS=y
+CONFIG_PCI_SYSCALL=y
+CONFIG_PCIEPORTBUS=y
+CONFIG_PCIEAER=y
+# CONFIG_PCIEASPM is not set
+CONFIG_ARCH_SUPPORTS_MSI=y
+# CONFIG_PCI_MSI is not set
+CONFIG_PCI_LEGACY=y
+# CONFIG_PCI_DEBUG is not set
+# CONFIG_PCCARD is not set
+# CONFIG_HOTPLUG_PCI is not set
+# CONFIG_HAS_RAPIDIO is not set
+
+#
+# Advanced setup
+#
+# CONFIG_ADVANCED_OPTIONS is not set
+
+#
+# Default settings for advanced configuration options are used
+#
+CONFIG_LOWMEM_SIZE=0x30000000
+CONFIG_PAGE_OFFSET=0xc0000000
+CONFIG_KERNEL_START=0xc0000000
+CONFIG_PHYSICAL_START=0x00000000
+CONFIG_PHYSICAL_ALIGN=0x10000000
+CONFIG_TASK_SIZE=0xc0000000
+
+#
+# Networking
+#
+CONFIG_NET=y
+
+#
+# Networking options
+#
+CONFIG_PACKET=y
+# CONFIG_PACKET_MMAP is not set
+CONFIG_UNIX=y
+CONFIG_XFRM=y
+CONFIG_XFRM_USER=y
+# CONFIG_XFRM_SUB_POLICY is not set
+# CONFIG_XFRM_MIGRATE is not set
+# CONFIG_XFRM_STATISTICS is not set
+# CONFIG_NET_KEY is not set
+CONFIG_INET=y
+CONFIG_IP_MULTICAST=y
+# CONFIG_IP_ADVANCED_ROUTER is not set
+CONFIG_IP_FIB_HASH=y
+CONFIG_IP_PNP=y
+CONFIG_IP_PNP_DHCP=y
+CONFIG_IP_PNP_BOOTP=y
+# CONFIG_IP_PNP_RARP is not set
+# CONFIG_NET_IPIP is not set
+# CONFIG_NET_IPGRE is not set
+# CONFIG_IP_MROUTE is not set
+# CONFIG_ARPD is not set
+CONFIG_SYN_COOKIES=y
+# CONFIG_INET_AH is not set
+# CONFIG_INET_ESP is not set
+# CONFIG_INET_IPCOMP is not set
+# CONFIG_INET_XFRM_TUNNEL is not set
+# CONFIG_INET_TUNNEL is not set
+CONFIG_INET_XFRM_MODE_TRANSPORT=y
+CONFIG_INET_XFRM_MODE_TUNNEL=y
+CONFIG_INET_XFRM_MODE_BEET=y
+# CONFIG_INET_LRO is not set
+CONFIG_INET_DIAG=y
+CONFIG_INET_TCP_DIAG=y
+# CONFIG_TCP_CONG_ADVANCED is not set
+CONFIG_TCP_CONG_CUBIC=y
+CONFIG_DEFAULT_TCP_CONG="cubic"
+# CONFIG_TCP_MD5SIG is not set
+# CONFIG_IPV6 is not set
+# CONFIG_NETWORK_SECMARK is not set
+# CONFIG_NETFILTER is not set
+# CONFIG_IP_DCCP is not set
+# CONFIG_IP_SCTP is not set
+# CONFIG_TIPC is not set
+# CONFIG_ATM is not set
+# CONFIG_BRIDGE is not set
+# CONFIG_VLAN_8021Q is not set
+# CONFIG_DECNET is not set
+# CONFIG_LLC2 is not set
+# CONFIG_IPX is not set
+# CONFIG_ATALK is not set
+# CONFIG_X25 is not set
+# CONFIG_LAPB is not set
+# CONFIG_ECONET is not set
+# CONFIG_WAN_ROUTER is not set
+# CONFIG_NET_SCHED is not set
+
+#
+# Network testing
+#
+# CONFIG_NET_PKTGEN is not set
+# CONFIG_HAMRADIO is not set
+CONFIG_CAN=y
+CONFIG_CAN_RAW=y
+CONFIG_CAN_BCM=y
+
+#
+# CAN Device Drivers
+#
+# CONFIG_CAN_VCAN is not set
+CONFIG_CAN_OLD_DRIVERS=y
+# CONFIG_CAN_SJA1000_OLD is not set
+CONFIG_CAN_I82527_OLD=y
+CONFIG_CAN_TQM=y
+# CONFIG_CAN_MSCAN_OLD is not set
+# CONFIG_CAN_CCAN_OLD is not set
+# CONFIG_CAN_SLCAN is not set
+# CONFIG_CAN_SJA1000 is not set
+# CONFIG_CAN_MSCAN is not set
+CONFIG_CAN_DEBUG_DEVICES=y
+# CONFIG_IRDA is not set
+# CONFIG_BT is not set
+# CONFIG_AF_RXRPC is not set
+
+#
+# Wireless
+#
+# CONFIG_CFG80211 is not set
+# CONFIG_WIRELESS_EXT is not set
+# CONFIG_MAC80211 is not set
+# CONFIG_IEEE80211 is not set
+# CONFIG_RFKILL is not set
+# CONFIG_NET_9P is not set
+
+#
+# Device Drivers
+#
+
+#
+# Generic Driver Options
+#
+CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+CONFIG_STANDALONE=y
+CONFIG_PREVENT_FIRMWARE_BUILD=y
+# CONFIG_FW_LOADER is not set
+# CONFIG_DEBUG_DRIVER is not set
+# CONFIG_DEBUG_DEVRES is not set
+# CONFIG_SYS_HYPERVISOR is not set
+# CONFIG_CONNECTOR is not set
+CONFIG_MTD=y
+# CONFIG_MTD_DEBUG is not set
+# CONFIG_MTD_CONCAT is not set
+CONFIG_MTD_PARTITIONS=y
+# CONFIG_MTD_REDBOOT_PARTS is not set
+# CONFIG_MTD_CMDLINE_PARTS is not set
+CONFIG_MTD_OF_PARTS=y
+# CONFIG_MTD_AR7_PARTS is not set
+
+#
+# User Modules And Translation Layers
+#
+CONFIG_MTD_CHAR=y
+CONFIG_MTD_BLKDEVS=y
+# CONFIG_MTD_BLOCK is not set
+# CONFIG_MTD_BLOCK_RO is not set
+# CONFIG_FTL is not set
+# CONFIG_NFTL is not set
+# CONFIG_INFTL is not set
+# CONFIG_RFD_FTL is not set
+# CONFIG_SSFDC is not set
+# CONFIG_MTD_OOPS is not set
+
+#
+# RAM/ROM/Flash chip drivers
+#
+CONFIG_MTD_CFI=y
+# CONFIG_MTD_JEDECPROBE is not set
+CONFIG_MTD_GEN_PROBE=y
+# CONFIG_MTD_CFI_ADV_OPTIONS is not set
+CONFIG_MTD_MAP_BANK_WIDTH_1=y
+CONFIG_MTD_MAP_BANK_WIDTH_2=y
+CONFIG_MTD_MAP_BANK_WIDTH_4=y
+# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
+# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
+# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
+CONFIG_MTD_CFI_I1=y
+CONFIG_MTD_CFI_I2=y
+# CONFIG_MTD_CFI_I4 is not set
+# CONFIG_MTD_CFI_I8 is not set
+# CONFIG_MTD_CFI_INTELEXT is not set
+CONFIG_MTD_CFI_AMDSTD=y
+# CONFIG_MTD_CFI_STAA is not set
+CONFIG_MTD_CFI_UTIL=y
+# CONFIG_MTD_RAM is not set
+# CONFIG_MTD_ROM is not set
+# CONFIG_MTD_ABSENT is not set
+
+#
+# Mapping drivers for chip access
+#
+# CONFIG_MTD_COMPLEX_MAPPINGS is not set
+# CONFIG_MTD_PHYSMAP is not set
+CONFIG_MTD_PHYSMAP_OF=y
+# CONFIG_MTD_INTEL_VR_NOR is not set
+# CONFIG_MTD_PLATRAM is not set
+
+#
+# Self-contained MTD device drivers
+#
+# CONFIG_MTD_PMC551 is not set
+# CONFIG_MTD_SLRAM is not set
+# CONFIG_MTD_PHRAM is not set
+# CONFIG_MTD_MTDRAM is not set
+# CONFIG_MTD_BLOCK2MTD is not set
+
+#
+# Disk-On-Chip Device Drivers
+#
+# CONFIG_MTD_DOC2000 is not set
+# CONFIG_MTD_DOC2001 is not set
+# CONFIG_MTD_DOC2001PLUS is not set
+CONFIG_MTD_NAND=y
+# CONFIG_MTD_NAND_VERIFY_WRITE is not set
+CONFIG_MTD_NAND_ECC_SMC=y
+# CONFIG_MTD_NAND_MUSEUM_IDS is not set
+CONFIG_MTD_NAND_IDS=y
+# CONFIG_MTD_NAND_DISKONCHIP is not set
+# CONFIG_MTD_NAND_CAFE is not set
+# CONFIG_MTD_NAND_NANDSIM is not set
+# CONFIG_MTD_NAND_PLATFORM is not set
+# CONFIG_MTD_NAND_FSL_ELBC is not set
+CONFIG_MTD_NAND_FSL_UPM=y
+# CONFIG_MTD_ONENAND is not set
+
+#
+# UBI - Unsorted block images
+#
+CONFIG_MTD_UBI=m
+CONFIG_MTD_UBI_WL_THRESHOLD=4096
+CONFIG_MTD_UBI_BEB_RESERVE=1
+# CONFIG_MTD_UBI_GLUEBI is not set
+
+#
+# UBI debugging options
+#
+# CONFIG_MTD_UBI_DEBUG is not set
+CONFIG_OF_DEVICE=y
+# CONFIG_PARPORT is not set
+CONFIG_BLK_DEV=y
+# CONFIG_BLK_DEV_FD is not set
+# CONFIG_BLK_CPQ_DA is not set
+# CONFIG_BLK_CPQ_CISS_DA is not set
+# CONFIG_BLK_DEV_DAC960 is not set
+# CONFIG_BLK_DEV_UMEM is not set
+# CONFIG_BLK_DEV_COW_COMMON is not set
+CONFIG_BLK_DEV_LOOP=y
+# CONFIG_BLK_DEV_CRYPTOLOOP is not set
+# CONFIG_BLK_DEV_NBD is not set
+# CONFIG_BLK_DEV_SX8 is not set
+CONFIG_BLK_DEV_RAM=y
+CONFIG_BLK_DEV_RAM_COUNT=16
+CONFIG_BLK_DEV_RAM_SIZE=32768
+# CONFIG_BLK_DEV_XIP is not set
+# CONFIG_CDROM_PKTCDVD is not set
+# CONFIG_ATA_OVER_ETH is not set
+CONFIG_MISC_DEVICES=y
+# CONFIG_PHANTOM is not set
+# CONFIG_EEPROM_93CX6 is not set
+# CONFIG_SGI_IOC4 is not set
+# CONFIG_TIFM_CORE is not set
+# CONFIG_ENCLOSURE_SERVICES is not set
+CONFIG_HAVE_IDE=y
+CONFIG_IDE=y
+CONFIG_IDE_MAX_HWIFS=4
+CONFIG_BLK_DEV_IDE=y
+
+#
+# Please see Documentation/ide/ide.txt for help/info on IDE drives
+#
+# CONFIG_BLK_DEV_IDE_SATA is not set
+# CONFIG_BLK_DEV_IDEDISK is not set
+# CONFIG_IDEDISK_MULTI_MODE is not set
+# CONFIG_BLK_DEV_IDECD is not set
+# CONFIG_BLK_DEV_IDETAPE is not set
+# CONFIG_BLK_DEV_IDEFLOPPY is not set
+# CONFIG_IDE_TASK_IOCTL is not set
+CONFIG_IDE_PROC_FS=y
+
+#
+# IDE chipset support/bugfixes
+#
+CONFIG_IDE_GENERIC=y
+# CONFIG_BLK_DEV_PLATFORM is not set
+CONFIG_BLK_DEV_IDEDMA_SFF=y
+
+#
+# PCI IDE chipsets support
+#
+CONFIG_BLK_DEV_IDEPCI=y
+CONFIG_IDEPCI_PCIBUS_ORDER=y
+# CONFIG_BLK_DEV_OFFBOARD is not set
+CONFIG_BLK_DEV_GENERIC=y
+# CONFIG_BLK_DEV_OPTI621 is not set
+CONFIG_BLK_DEV_IDEDMA_PCI=y
+# CONFIG_BLK_DEV_AEC62XX is not set
+# CONFIG_BLK_DEV_ALI15X3 is not set
+# CONFIG_BLK_DEV_AMD74XX is not set
+# CONFIG_BLK_DEV_CMD64X is not set
+# CONFIG_BLK_DEV_TRIFLEX is not set
+# CONFIG_BLK_DEV_CY82C693 is not set
+# CONFIG_BLK_DEV_CS5520 is not set
+# CONFIG_BLK_DEV_CS5530 is not set
+# CONFIG_BLK_DEV_HPT34X is not set
+# CONFIG_BLK_DEV_HPT366 is not set
+# CONFIG_BLK_DEV_JMICRON is not set
+# CONFIG_BLK_DEV_SC1200 is not set
+# CONFIG_BLK_DEV_PIIX is not set
+# CONFIG_BLK_DEV_IT8213 is not set
+# CONFIG_BLK_DEV_IT821X is not set
+# CONFIG_BLK_DEV_NS87415 is not set
+# CONFIG_BLK_DEV_PDC202XX_OLD is not set
+# CONFIG_BLK_DEV_PDC202XX_NEW is not set
+# CONFIG_BLK_DEV_SVWKS is not set
+# CONFIG_BLK_DEV_SIIMAGE is not set
+# CONFIG_BLK_DEV_SL82C105 is not set
+# CONFIG_BLK_DEV_SLC90E66 is not set
+# CONFIG_BLK_DEV_TRM290 is not set
+CONFIG_BLK_DEV_VIA82CXXX=y
+# CONFIG_BLK_DEV_TC86C001 is not set
+CONFIG_BLK_DEV_IDEDMA=y
+# CONFIG_BLK_DEV_HD_ONLY is not set
+# CONFIG_BLK_DEV_HD is not set
+
+#
+# SCSI device support
+#
+# CONFIG_RAID_ATTRS is not set
+# CONFIG_SCSI is not set
+# CONFIG_SCSI_DMA is not set
+# CONFIG_SCSI_NETLINK is not set
+# CONFIG_ATA is not set
+# CONFIG_MD is not set
+# CONFIG_FUSION is not set
+
+#
+# IEEE 1394 (FireWire) support
+#
+# CONFIG_FIREWIRE is not set
+# CONFIG_IEEE1394 is not set
+# CONFIG_I2O is not set
+# CONFIG_MACINTOSH_DRIVERS is not set
+CONFIG_NETDEVICES=y
+# CONFIG_NETDEVICES_MULTIQUEUE is not set
+# CONFIG_DUMMY is not set
+# CONFIG_BONDING is not set
+# CONFIG_MACVLAN is not set
+# CONFIG_EQUALIZER is not set
+# CONFIG_TUN is not set
+# CONFIG_VETH is not set
+# CONFIG_ARCNET is not set
+CONFIG_PHYLIB=y
+
+#
+# MII PHY device drivers
+#
+# CONFIG_MARVELL_PHY is not set
+# CONFIG_DAVICOM_PHY is not set
+# CONFIG_QSEMI_PHY is not set
+# CONFIG_LXT_PHY is not set
+# CONFIG_CICADA_PHY is not set
+# CONFIG_VITESSE_PHY is not set
+# CONFIG_SMSC_PHY is not set
+# CONFIG_BROADCOM_PHY is not set
+# CONFIG_ICPLUS_PHY is not set
+# CONFIG_REALTEK_PHY is not set
+# CONFIG_FIXED_PHY is not set
+# CONFIG_MDIO_BITBANG is not set
+CONFIG_NET_ETHERNET=y
+CONFIG_MII=y
+# CONFIG_HAPPYMEAL is not set
+# CONFIG_SUNGEM is not set
+# CONFIG_CASSINI is not set
+# CONFIG_NET_VENDOR_3COM is not set
+# CONFIG_NET_TULIP is not set
+# CONFIG_HP100 is not set
+# CONFIG_IBM_NEW_EMAC_ZMII is not set
+# CONFIG_IBM_NEW_EMAC_RGMII is not set
+# CONFIG_IBM_NEW_EMAC_TAH is not set
+# CONFIG_IBM_NEW_EMAC_EMAC4 is not set
+# CONFIG_NET_PCI is not set
+# CONFIG_B44 is not set
+CONFIG_NETDEV_1000=y
+# CONFIG_ACENIC is not set
+# CONFIG_DL2K is not set
+CONFIG_E1000=y
+CONFIG_E1000_NAPI=y
+# CONFIG_E1000_DISABLE_PACKET_SPLIT is not set
+# CONFIG_E1000E is not set
+# CONFIG_E1000E_ENABLED is not set
+# CONFIG_IP1000 is not set
+# CONFIG_IGB is not set
+# CONFIG_NS83820 is not set
+# CONFIG_HAMACHI is not set
+# CONFIG_YELLOWFIN is not set
+# CONFIG_R8169 is not set
+# CONFIG_SIS190 is not set
+# CONFIG_SKGE is not set
+# CONFIG_SKY2 is not set
+# CONFIG_VIA_VELOCITY is not set
+# CONFIG_TIGON3 is not set
+# CONFIG_BNX2 is not set
+CONFIG_GIANFAR=y
+CONFIG_GFAR_NAPI=y
+# CONFIG_QLA3XXX is not set
+# CONFIG_ATL1 is not set
+CONFIG_NETDEV_10000=y
+# CONFIG_CHELSIO_T1 is not set
+# CONFIG_CHELSIO_T3 is not set
+# CONFIG_IXGBE is not set
+# CONFIG_IXGB is not set
+# CONFIG_S2IO is not set
+# CONFIG_MYRI10GE is not set
+# CONFIG_NETXEN_NIC is not set
+# CONFIG_NIU is not set
+# CONFIG_MLX4_CORE is not set
+# CONFIG_TEHUTI is not set
+# CONFIG_BNX2X is not set
+# CONFIG_SFC is not set
+# CONFIG_TR is not set
+
+#
+# Wireless LAN
+#
+# CONFIG_WLAN_PRE80211 is not set
+# CONFIG_WLAN_80211 is not set
+# CONFIG_IWLWIFI_LEDS is not set
+# CONFIG_WAN is not set
+# CONFIG_FDDI is not set
+# CONFIG_HIPPI is not set
+# CONFIG_PPP is not set
+# CONFIG_SLIP is not set
+# CONFIG_NETCONSOLE is not set
+# CONFIG_NETPOLL is not set
+# CONFIG_NET_POLL_CONTROLLER is not set
+# CONFIG_ISDN is not set
+# CONFIG_PHONE is not set
+
+#
+# Input device support
+#
+CONFIG_INPUT=y
+# CONFIG_INPUT_FF_MEMLESS is not set
+# CONFIG_INPUT_POLLDEV is not set
+
+#
+# Userland interfaces
+#
+# CONFIG_INPUT_MOUSEDEV is not set
+# CONFIG_INPUT_JOYDEV is not set
+# CONFIG_INPUT_EVDEV is not set
+# CONFIG_INPUT_EVBUG is not set
+
+#
+# Input Device Drivers
+#
+# CONFIG_INPUT_KEYBOARD is not set
+# CONFIG_INPUT_MOUSE is not set
+# CONFIG_INPUT_JOYSTICK is not set
+# CONFIG_INPUT_TABLET is not set
+# CONFIG_INPUT_TOUCHSCREEN is not set
+# CONFIG_INPUT_MISC is not set
+
+#
+# Hardware I/O ports
+#
+# CONFIG_SERIO is not set
+# CONFIG_GAMEPORT is not set
+
+#
+# Character devices
+#
+# CONFIG_VT is not set
+CONFIG_DEVKMEM=y
+# CONFIG_SERIAL_NONSTANDARD is not set
+# CONFIG_NOZOMI is not set
+
+#
+# Serial drivers
+#
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_8250_PCI=y
+CONFIG_SERIAL_8250_NR_UARTS=4
+CONFIG_SERIAL_8250_RUNTIME_UARTS=4
+# CONFIG_SERIAL_8250_EXTENDED is not set
+CONFIG_SERIAL_8250_SHARE_IRQ=y
+
+#
+# Non-8250 serial port support
+#
+# CONFIG_SERIAL_UARTLITE is not set
+CONFIG_SERIAL_CORE=y
+CONFIG_SERIAL_CORE_CONSOLE=y
+# CONFIG_SERIAL_JSM is not set
+# CONFIG_SERIAL_OF_PLATFORM is not set
+CONFIG_UNIX98_PTYS=y
+CONFIG_LEGACY_PTYS=y
+CONFIG_LEGACY_PTY_COUNT=256
+# CONFIG_IPMI_HANDLER is not set
+# CONFIG_HW_RANDOM is not set
+# CONFIG_NVRAM is not set
+CONFIG_GEN_RTC=y
+# CONFIG_GEN_RTC_X is not set
+# CONFIG_R3964 is not set
+# CONFIG_APPLICOM is not set
+# CONFIG_RAW_DRIVER is not set
+# CONFIG_TCG_TPM is not set
+CONFIG_DEVPORT=y
+# CONFIG_I2C is not set
+# CONFIG_SPI is not set
+# CONFIG_W1 is not set
+# CONFIG_POWER_SUPPLY is not set
+CONFIG_HWMON=y
+# CONFIG_HWMON_VID is not set
+# CONFIG_SENSORS_I5K_AMB is not set
+# CONFIG_SENSORS_F71805F is not set
+# CONFIG_SENSORS_F71882FG is not set
+# CONFIG_SENSORS_IT87 is not set
+# CONFIG_SENSORS_PC87360 is not set
+# CONFIG_SENSORS_PC87427 is not set
+# CONFIG_SENSORS_SIS5595 is not set
+# CONFIG_SENSORS_SMSC47M1 is not set
+# CONFIG_SENSORS_SMSC47B397 is not set
+# CONFIG_SENSORS_VIA686A is not set
+# CONFIG_SENSORS_VT1211 is not set
+# CONFIG_SENSORS_VT8231 is not set
+# CONFIG_SENSORS_W83627HF is not set
+# CONFIG_SENSORS_W83627EHF is not set
+# CONFIG_HWMON_DEBUG_CHIP is not set
+# CONFIG_THERMAL is not set
+# CONFIG_WATCHDOG is not set
+
+#
+# Sonics Silicon Backplane
+#
+CONFIG_SSB_POSSIBLE=y
+# CONFIG_SSB is not set
+
+#
+# Multifunction device drivers
+#
+# CONFIG_MFD_SM501 is not set
+# CONFIG_HTC_PASIC3 is not set
+
+#
+# Multimedia devices
+#
+
+#
+# Multimedia core support
+#
+# CONFIG_VIDEO_DEV is not set
+# CONFIG_DVB_CORE is not set
+# CONFIG_VIDEO_MEDIA is not set
+
+#
+# Multimedia drivers
+#
+CONFIG_DAB=y
+
+#
+# Graphics support
+#
+# CONFIG_AGP is not set
+# CONFIG_DRM is not set
+# CONFIG_VGASTATE is not set
+CONFIG_VIDEO_OUTPUT_CONTROL=y
+# CONFIG_FB is not set
+# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
+
+#
+# Display device support
+#
+# CONFIG_DISPLAY_SUPPORT is not set
+
+#
+# Sound
+#
+# CONFIG_SOUND is not set
+CONFIG_HID_SUPPORT=y
+CONFIG_HID=y
+# CONFIG_HID_DEBUG is not set
+# CONFIG_HIDRAW is not set
+CONFIG_USB_SUPPORT=y
+CONFIG_USB_ARCH_HAS_HCD=y
+CONFIG_USB_ARCH_HAS_OHCI=y
+CONFIG_USB_ARCH_HAS_EHCI=y
+# CONFIG_USB is not set
+# CONFIG_USB_OTG_WHITELIST is not set
+# CONFIG_USB_OTG_BLACKLIST_HUB is not set
+
+#
+# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
+#
+# CONFIG_USB_GADGET is not set
+# CONFIG_MMC is not set
+# CONFIG_MEMSTICK is not set
+# CONFIG_NEW_LEDS is not set
+# CONFIG_ACCESSIBILITY is not set
+# CONFIG_INFINIBAND is not set
+# CONFIG_EDAC is not set
+# CONFIG_RTC_CLASS is not set
+# CONFIG_DMADEVICES is not set
+# CONFIG_UIO is not set
+
+#
+# File systems
+#
+CONFIG_EXT2_FS=y
+# CONFIG_EXT2_FS_XATTR is not set
+# CONFIG_EXT2_FS_XIP is not set
+CONFIG_EXT3_FS=y
+CONFIG_EXT3_FS_XATTR=y
+# CONFIG_EXT3_FS_POSIX_ACL is not set
+# CONFIG_EXT3_FS_SECURITY is not set
+# CONFIG_EXT4DEV_FS is not set
+CONFIG_JBD=y
+CONFIG_FS_MBCACHE=y
+# CONFIG_REISERFS_FS is not set
+# CONFIG_JFS_FS is not set
+# CONFIG_FS_POSIX_ACL is not set
+# CONFIG_XFS_FS is not set
+# CONFIG_OCFS2_FS is not set
+CONFIG_DNOTIFY=y
+CONFIG_INOTIFY=y
+CONFIG_INOTIFY_USER=y
+# CONFIG_QUOTA is not set
+# CONFIG_AUTOFS_FS is not set
+# CONFIG_AUTOFS4_FS is not set
+# CONFIG_FUSE_FS is not set
+
+#
+# CD-ROM/DVD Filesystems
+#
+# CONFIG_ISO9660_FS is not set
+# CONFIG_UDF_FS is not set
+
+#
+# DOS/FAT/NT Filesystems
+#
+# CONFIG_MSDOS_FS is not set
+# CONFIG_VFAT_FS is not set
+# CONFIG_NTFS_FS is not set
+
+#
+# Pseudo filesystems
+#
+CONFIG_PROC_FS=y
+CONFIG_PROC_KCORE=y
+CONFIG_PROC_SYSCTL=y
+CONFIG_SYSFS=y
+CONFIG_TMPFS=y
+# CONFIG_TMPFS_POSIX_ACL is not set
+# CONFIG_HUGETLB_PAGE is not set
+# CONFIG_CONFIGFS_FS is not set
+
+#
+# Miscellaneous filesystems
+#
+# CONFIG_ADFS_FS is not set
+# CONFIG_AFFS_FS is not set
+# CONFIG_HFS_FS is not set
+# CONFIG_HFSPLUS_FS is not set
+# CONFIG_BEFS_FS is not set
+# CONFIG_BFS_FS is not set
+# CONFIG_EFS_FS is not set
+# CONFIG_JFFS2_FS is not set
+# CONFIG_CRAMFS is not set
+# CONFIG_VXFS_FS is not set
+# CONFIG_MINIX_FS is not set
+# CONFIG_HPFS_FS is not set
+# CONFIG_QNX4FS_FS is not set
+# CONFIG_ROMFS_FS is not set
+# CONFIG_SYSV_FS is not set
+# CONFIG_UFS_FS is not set
+CONFIG_NETWORK_FILESYSTEMS=y
+CONFIG_NFS_FS=y
+# CONFIG_NFS_V3 is not set
+# CONFIG_NFS_V4 is not set
+# CONFIG_NFSD is not set
+CONFIG_ROOT_NFS=y
+CONFIG_LOCKD=y
+CONFIG_NFS_COMMON=y
+CONFIG_SUNRPC=y
+# CONFIG_SUNRPC_BIND34 is not set
+# CONFIG_RPCSEC_GSS_KRB5 is not set
+# CONFIG_RPCSEC_GSS_SPKM3 is not set
+# CONFIG_SMB_FS is not set
+# CONFIG_CIFS is not set
+# CONFIG_NCP_FS is not set
+# CONFIG_CODA_FS is not set
+# CONFIG_AFS_FS is not set
+
+#
+# Partition Types
+#
+CONFIG_PARTITION_ADVANCED=y
+# CONFIG_ACORN_PARTITION is not set
+# CONFIG_OSF_PARTITION is not set
+# CONFIG_AMIGA_PARTITION is not set
+# CONFIG_ATARI_PARTITION is not set
+# CONFIG_MAC_PARTITION is not set
+# CONFIG_MSDOS_PARTITION is not set
+# CONFIG_LDM_PARTITION is not set
+# CONFIG_SGI_PARTITION is not set
+# CONFIG_ULTRIX_PARTITION is not set
+# CONFIG_SUN_PARTITION is not set
+# CONFIG_KARMA_PARTITION is not set
+# CONFIG_EFI_PARTITION is not set
+# CONFIG_SYSV68_PARTITION is not set
+# CONFIG_NLS is not set
+# CONFIG_DLM is not set
+
+#
+# Library routines
+#
+CONFIG_BITREVERSE=y
+# CONFIG_GENERIC_FIND_FIRST_BIT is not set
+# CONFIG_CRC_CCITT is not set
+# CONFIG_CRC16 is not set
+# CONFIG_CRC_ITU_T is not set
+CONFIG_CRC32=y
+# CONFIG_CRC7 is not set
+# CONFIG_LIBCRC32C is not set
+CONFIG_PLIST=y
+CONFIG_HAS_IOMEM=y
+CONFIG_HAS_IOPORT=y
+CONFIG_HAS_DMA=y
+CONFIG_HAVE_LMB=y
+
+#
+# Kernel hacking
+#
+# CONFIG_PRINTK_TIME is not set
+CONFIG_ENABLE_WARN_DEPRECATED=y
+CONFIG_ENABLE_MUST_CHECK=y
+CONFIG_FRAME_WARN=1024
+# CONFIG_MAGIC_SYSRQ is not set
+# CONFIG_UNUSED_SYMBOLS is not set
+# CONFIG_DEBUG_FS is not set
+# CONFIG_HEADERS_CHECK is not set
+CONFIG_DEBUG_KERNEL=y
+# CONFIG_DEBUG_SHIRQ is not set
+CONFIG_DETECT_SOFTLOCKUP=y
+CONFIG_SCHED_DEBUG=y
+# CONFIG_SCHEDSTATS is not set
+# CONFIG_TIMER_STATS is not set
+# CONFIG_DEBUG_OBJECTS is not set
+# CONFIG_SLUB_DEBUG_ON is not set
+# CONFIG_SLUB_STATS is not set
+# CONFIG_DEBUG_RT_MUTEXES is not set
+# CONFIG_RT_MUTEX_TESTER is not set
+# CONFIG_DEBUG_SPINLOCK is not set
+CONFIG_DEBUG_MUTEXES=y
+# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
+# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
+# CONFIG_DEBUG_KOBJECT is not set
+# CONFIG_DEBUG_BUGVERBOSE is not set
+# CONFIG_DEBUG_INFO is not set
+# CONFIG_DEBUG_VM is not set
+# CONFIG_DEBUG_WRITECOUNT is not set
+# CONFIG_DEBUG_LIST is not set
+# CONFIG_DEBUG_SG is not set
+# CONFIG_BOOT_PRINTK_DELAY is not set
+# CONFIG_RCU_TORTURE_TEST is not set
+# CONFIG_BACKTRACE_SELF_TEST is not set
+# CONFIG_FAULT_INJECTION is not set
+# CONFIG_SAMPLES is not set
+# CONFIG_DEBUG_STACKOVERFLOW is not set
+# CONFIG_DEBUG_STACK_USAGE is not set
+# CONFIG_DEBUG_PAGEALLOC is not set
+# CONFIG_DEBUGGER is not set
+# CONFIG_IRQSTACKS is not set
+# CONFIG_BDI_SWITCH is not set
+# CONFIG_PPC_EARLY_DEBUG is not set
+
+#
+# Security options
+#
+# CONFIG_KEYS is not set
+# CONFIG_SECURITY is not set
+# CONFIG_SECURITY_FILE_CAPABILITIES is not set
+CONFIG_CRYPTO=y
+
+#
+# Crypto core or helper
+#
+# CONFIG_CRYPTO_MANAGER is not set
+# CONFIG_CRYPTO_GF128MUL is not set
+# CONFIG_CRYPTO_NULL is not set
+# CONFIG_CRYPTO_CRYPTD is not set
+# CONFIG_CRYPTO_AUTHENC is not set
+# CONFIG_CRYPTO_TEST is not set
+
+#
+# Authenticated Encryption with Associated Data
+#
+# CONFIG_CRYPTO_CCM is not set
+# CONFIG_CRYPTO_GCM is not set
+# CONFIG_CRYPTO_SEQIV is not set
+
+#
+# Block modes
+#
+# CONFIG_CRYPTO_CBC is not set
+# CONFIG_CRYPTO_CTR is not set
+# CONFIG_CRYPTO_CTS is not set
+# CONFIG_CRYPTO_ECB is not set
+# CONFIG_CRYPTO_LRW is not set
+# CONFIG_CRYPTO_PCBC is not set
+# CONFIG_CRYPTO_XTS is not set
+
+#
+# Hash modes
+#
+# CONFIG_CRYPTO_HMAC is not set
+# CONFIG_CRYPTO_XCBC is not set
+
+#
+# Digest
+#
+# CONFIG_CRYPTO_CRC32C is not set
+# CONFIG_CRYPTO_MD4 is not set
+# CONFIG_CRYPTO_MD5 is not set
+# CONFIG_CRYPTO_MICHAEL_MIC is not set
+# CONFIG_CRYPTO_SHA1 is not set
+# CONFIG_CRYPTO_SHA256 is not set
+# CONFIG_CRYPTO_SHA512 is not set
+# CONFIG_CRYPTO_TGR192 is not set
+# CONFIG_CRYPTO_WP512 is not set
+
+#
+# Ciphers
+#
+# CONFIG_CRYPTO_AES is not set
+# CONFIG_CRYPTO_ANUBIS is not set
+# CONFIG_CRYPTO_ARC4 is not set
+# CONFIG_CRYPTO_BLOWFISH is not set
+# CONFIG_CRYPTO_CAMELLIA is not set
+# CONFIG_CRYPTO_CAST5 is not set
+# CONFIG_CRYPTO_CAST6 is not set
+# CONFIG_CRYPTO_DES is not set
+# CONFIG_CRYPTO_FCRYPT is not set
+# CONFIG_CRYPTO_KHAZAD is not set
+# CONFIG_CRYPTO_SALSA20 is not set
+# CONFIG_CRYPTO_SEED is not set
+# CONFIG_CRYPTO_SERPENT is not set
+# CONFIG_CRYPTO_TEA is not set
+# CONFIG_CRYPTO_TWOFISH is not set
+
+#
+# Compression
+#
+# CONFIG_CRYPTO_DEFLATE is not set
+# CONFIG_CRYPTO_LZO is not set
+CONFIG_CRYPTO_HW=y
+# CONFIG_CRYPTO_DEV_HIFN_795X is not set
+# CONFIG_PPC_CLOCK is not set
+# CONFIG_VIRTUALIZATION is not set
diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig
index 7ff29d5..91d67ee 100644
--- a/arch/powerpc/platforms/85xx/Kconfig
+++ b/arch/powerpc/platforms/85xx/Kconfig
@@ -74,6 +74,14 @@ config TQM8541
 	select TQM85xx
 	select CPM2
 
+config TQM8548
+	bool "TQ Components TQM8548"
+	help
+	  This option enables support for the TQ Components TQM8548 board.
+	select DEFAULT_UIMAGE
+	select PPC_CPM_NEW_BINDING
+	select TQM85xx
+
 config TQM8555
 	bool "TQ Components TQM8555"
 	help
diff --git a/arch/powerpc/platforms/85xx/tqm85xx.c b/arch/powerpc/platforms/85xx/tqm85xx.c
index 77681ac..5746a40 100644
--- a/arch/powerpc/platforms/85xx/tqm85xx.c
+++ b/arch/powerpc/platforms/85xx/tqm85xx.c
@@ -120,8 +120,17 @@ static void __init tqm85xx_setup_arch(void)
 #endif
 
 #ifdef CONFIG_PCI
-	for_each_compatible_node(np, "pci", "fsl,mpc8540-pci")
-		fsl_add_bridge(np, 1);
+	for_each_node_by_type(np, "pci") {
+		if (of_device_is_compatible(np, "fsl,mpc8540-pci") ||
+		    of_device_is_compatible(np, "fsl,mpc8548-pcie")) {
+			struct resource rsrc;
+			of_address_to_resource(np, 0, &rsrc);
+			if ((rsrc.start & 0xfffff) == 0x8000)
+				fsl_add_bridge(np, 1);
+			else
+				fsl_add_bridge(np, 0);
+		}
+	}
 #endif
 }
 
@@ -167,6 +176,7 @@ static int __init tqm85xx_probe(void)
 
 	if ((of_flat_dt_is_compatible(root, "tqm,8540")) ||
 	    (of_flat_dt_is_compatible(root, "tqm,8541")) ||
+	    (of_flat_dt_is_compatible(root, "tqm,8548")) ||
 	    (of_flat_dt_is_compatible(root, "tqm,8555")) ||
 	    (of_flat_dt_is_compatible(root, "tqm,8560")))
 		return 1;
-- 
1.5.4.2

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash
  2008-05-30  6:49 ` [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules Wolfgang Grandegger
@ 2008-05-30  6:49   ` Wolfgang Grandegger
  2008-05-30  6:49     ` [PATCH 3/4] [POWERPC] 85xx: add local bus nodes for Flash and CAN to tqm8560.dts Wolfgang Grandegger
                       ` (2 more replies)
  2008-05-30  7:01   ` [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules Stephen Rothwell
                     ` (2 subsequent siblings)
  3 siblings, 3 replies; 25+ messages in thread
From: Wolfgang Grandegger @ 2008-05-30  6:49 UTC (permalink / raw)
  To: Linuxppc-dev

Some TQM85xx boards could be equipped with up to 1 GiB (NOR) flash
memory and therefore a modified memory map is required and setup by
the board loader. This patch adds an appropriate DTS file.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
---
 arch/powerpc/boot/dts/tqm8548-bigflash.dts |  371 ++++++++++++++++++++++++++++
 1 files changed, 371 insertions(+), 0 deletions(-)
 create mode 100644 arch/powerpc/boot/dts/tqm8548-bigflash.dts

diff --git a/arch/powerpc/boot/dts/tqm8548-bigflash.dts b/arch/powerpc/boot/dts/tqm8548-bigflash.dts
new file mode 100644
index 0000000..895bb80
--- /dev/null
+++ b/arch/powerpc/boot/dts/tqm8548-bigflash.dts
@@ -0,0 +1,371 @@
+/*
+ * TQM8548 Device Tree Source
+ *
+ * Copyright 2006 Freescale Semiconductor Inc.
+ * Copyright 2008 Wolfgang Grandegger <wg@denx.de>
+ *
+ * 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 = "tqm,8548";
+	compatible = "tqm,8548", "tqm,85xx";
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	aliases {
+		ethernet0 = &enet0;
+		ethernet1 = &enet1;
+		ethernet2 = &enet2;
+		ethernet3 = &enet3;
+
+		serial0 = &serial0;
+		serial1 = &serial1;
+		pci0 = &pci0;
+		pci1 = &pci1;
+	};
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		PowerPC,8548@0 {
+			device_type = "cpu";
+			reg = <0>;
+			d-cache-line-size = <32>;	// 32 bytes
+			i-cache-line-size = <32>;	// 32 bytes
+			d-cache-size = <0x8000>;	// L1, 32K
+			i-cache-size = <0x8000>;	// L1, 32K
+			timebase-frequency = <0>;	// from U-Boot
+			bus-frequency = <0>;	// from U-Boot
+			clock-frequency = <0>;	// from U-Boot
+		};
+	};
+
+	memory {
+		device_type = "memory";
+		reg = <0x00000000 0x20000000>;
+	};
+
+	soc8548@e0000000 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		device_type = "soc";
+		ranges = <0x0 0xa0000000 0x100000>;
+		reg = <0xa0000000 0x1000>;	// CCSRBAR
+		bus-frequency = <0>;
+
+		memory-controller@2000 {
+			compatible = "fsl,8548-memory-controller";
+			reg = <0x2000 0x1000>;
+			interrupt-parent = <&mpic>;
+			interrupts = <18 2>;
+		};
+
+		l2-cache-controller@20000 {
+			compatible = "fsl,8548-l2-cache-controller";
+			reg = <0x20000 0x1000>;
+			cache-line-size = <32>;	// 32 bytes
+			cache-size = <0x80000>;	// L2, 512K
+			interrupt-parent = <&mpic>;
+			interrupts = <16 2>;
+		};
+
+		i2c@3000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			cell-index = <0>;
+			compatible = "fsl-i2c";
+			reg = <0x3000 0x100>;
+			interrupts = <43 2>;
+			interrupt-parent = <&mpic>;
+			dfsrr;
+		};
+
+		i2c@3100 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			cell-index = <1>;
+			compatible = "fsl-i2c";
+			reg = <0x3100 0x100>;
+			interrupts = <43 2>;
+			interrupt-parent = <&mpic>;
+			dfsrr;
+		};
+
+		mdio@24520 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "fsl,gianfar-mdio";
+			reg = <0x24520 0x20>;
+
+			phy1: ethernet-phy@0 {
+				interrupt-parent = <&mpic>;
+				interrupts = <8 1>;
+				reg = <1>;
+				device_type = "ethernet-phy";
+			};
+			phy2: ethernet-phy@1 {
+				interrupt-parent = <&mpic>;
+				interrupts = <8 1>;
+				reg = <2>;
+				device_type = "ethernet-phy";
+			};
+			phy3: ethernet-phy@3 {
+				interrupt-parent = <&mpic>;
+				interrupts = <8 1>;
+				reg = <3>;
+				device_type = "ethernet-phy";
+			};
+			phy4: ethernet-phy@4 {
+				interrupt-parent = <&mpic>;
+				interrupts = <8 1>;
+				reg = <4>;
+				device_type = "ethernet-phy";
+			};
+			phy5: ethernet-phy@5 {
+				interrupt-parent = <&mpic>;
+				interrupts = <8 1>;
+				reg = <5>;
+				device_type = "ethernet-phy";
+			};
+		};
+
+		enet0: ethernet@24000 {
+			cell-index = <0>;
+			device_type = "network";
+			model = "eTSEC";
+			compatible = "gianfar";
+			reg = <0x24000 0x1000>;
+			local-mac-address = [ 00 00 00 00 00 00 ];
+			interrupts = <29 2 30 2 34 2>;
+			interrupt-parent = <&mpic>;
+			phy-handle = <&phy2>;
+		};
+
+		enet1: ethernet@25000 {
+			cell-index = <1>;
+			device_type = "network";
+			model = "eTSEC";
+			compatible = "gianfar";
+			reg = <0x25000 0x1000>;
+			local-mac-address = [ 00 00 00 00 00 00 ];
+			interrupts = <35 2 36 2 40 2>;
+			interrupt-parent = <&mpic>;
+			phy-handle = <&phy1>;
+		};
+
+		enet2: ethernet@26000 {
+			cell-index = <2>;
+			device_type = "network";
+			model = "eTSEC";
+			compatible = "gianfar";
+			reg = <0x26000 0x1000>;
+			local-mac-address = [ 00 00 00 00 00 00 ];
+			interrupts = <31 2 32 2 33 2>;
+			interrupt-parent = <&mpic>;
+			phy-handle = <&phy3>;
+		};
+
+		enet3: ethernet@27000 {
+			cell-index = <3>;
+			device_type = "network";
+			model = "eTSEC";
+			compatible = "gianfar";
+			reg = <0x27000 0x1000>;
+			local-mac-address = [ 00 00 00 00 00 00 ];
+			interrupts = <37 2 38 2 39 2>;
+			interrupt-parent = <&mpic>;
+			phy-handle = <&phy4>;
+		};
+
+		serial0: serial@4500 {
+			cell-index = <0>;
+			device_type = "serial";
+			compatible = "ns16550";
+			reg = <0x4500 0x100>;	// reg base, size
+			clock-frequency = <0>;	// should we fill in in uboot?
+			current-speed = <115200>;
+			interrupts = <42 2>;
+			interrupt-parent = <&mpic>;
+		};
+
+		serial1: serial@4600 {
+			cell-index = <1>;
+			device_type = "serial";
+			compatible = "ns16550";
+			reg = <0x4600 0x100>;	// reg base, size
+			clock-frequency = <0>;	// should we fill in in uboot?
+			current-speed = <115200>;
+			interrupts = <42 2>;
+			interrupt-parent = <&mpic>;
+		};
+
+		global-utilities@e0000 {	// global utilities reg
+			compatible = "fsl,mpc8548-guts";
+			reg = <0xe0000 0x1000>;
+			fsl,has-rstcr;
+		};
+
+		mpic: pic@40000 {
+			clock-frequency = <0>;
+			interrupt-controller;
+			#address-cells = <0>;
+			#interrupt-cells = <2>;
+			reg = <0x40000 0x40000>;
+			compatible = "chrp,open-pic";
+			device_type = "open-pic";
+                        big-endian;
+		};
+	};
+
+	localbus@e0005000 {
+		compatible = "fsl,mpc8548-localbus", "fsl,pq3-localbus",
+			     "simple-bus";
+		#address-cells = <2>;
+		#size-cells = <1>;
+		reg = <0xa0005000 0x100>;	// BRx, ORx, etc.
+
+		ranges = <
+			0 0x0 0xfc000000 0x04000000	// NOR FLASH bank 1
+			1 0x0 0xf8000000 0x08000000	// NOR FLASH bank 0
+			2 0x0 0xa3000000 0x00008000	// CAN (2 x i82527)
+			3 0x0 0xa3010000 0x00008000	// NAND FLASH
+
+		>;
+
+		flash@1,0 {
+			#address-cells = <1>;
+			#size-cells = <1>;
+			compatible = "cfi-flash";
+			reg = <1 0x0 0x8000000>;
+			bank-width = <4>;
+			device-width = <1>;
+
+			partition@0 {
+				label = "kernel";
+				reg = <0x00000000 0x00200000>;
+			};
+			partition@200000 {
+				label = "root";
+				reg = <0x00200000 0x00300000>;
+			};
+			partition@500000 {
+				label = "user";
+				reg = <0x00500000 0x07a00000>;
+			};
+			partition@7f00000 {
+				label = "env1";
+				reg = <0x07f00000 0x00040000>;
+			};
+			partition@7f40000 {
+				label = "env2";
+				reg = <0x07f40000 0x00040000>;
+			};
+			partition@7f80000 {
+				label = "u-boot";
+				reg = <0x07f80000 0x00080000>;
+				read-only;
+			};
+		};
+
+/* CAN support must be enabled in U-Boot before Linux can use it
+		can0@2,0 {
+			compatible = "intel,82527"; // Bosch CC770
+			reg = <2 0x0 0x100>;
+			interrupts = <4 0>;
+			interrupt-parent = <&mpic>;
+		};
+
+		can1@2,100 {
+			compatible = "intel,82527"; // Bosch CC770
+			reg = <2 0x100 0x100>;
+			interrupts = <4 0>;
+			interrupt-parent = <&mpic>;
+		};
+*/
+
+/* NAND support must be enabled in U-Boot before Linux can use it
+		upm@3,0 {
+			#address-cells = <0>;
+			#size-cells = <0>;
+			compatible = "fsl,upm-nand";
+			reg = <3 0x0 0x800>;
+			fsl,upm-addr-offset = <0x10>;
+			fsl,upm-cmd-offset = <0x08>;
+			chip-delay = <25>; // in micro-seconds
+
+			nand@0 {
+				#address-cells = <1>;
+				#size-cells = <1>;
+
+				partition@0 {
+					    label = "fs";
+					    reg = <0x00000000 0x01000000>;
+				};
+			};
+		};
+*/
+	};
+
+	pci0: pci@e0008000 {
+		cell-index = <0>;
+		#interrupt-cells = <1>;
+		#size-cells = <2>;
+		#address-cells = <3>;
+		compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
+		device_type = "pci";
+		reg = <0xa0008000 0x1000>;
+		clock-frequency = <33333333>;
+		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
+		interrupt-map = <
+				/* IDSEL 28 */
+				 0xe000 0 0 1 &mpic 2 1
+				 0xe000 0 0 2 &mpic 3 1>;
+
+		interrupt-parent = <&mpic>;
+		interrupts = <24 2>;
+		bus-range = <0 0>;
+		ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000
+			  0x01000000 0 0x00000000 0xa2000000 0 0x01000000>;
+	};
+
+	pci1: pcie@e000a000 {
+		cell-index = <2>;
+		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
+		interrupt-map = <
+			/* IDSEL 0x0 (PEX) */
+			0x00000 0 0 1 &mpic 0 1
+			0x00000 0 0 2 &mpic 1 1
+			0x00000 0 0 3 &mpic 2 1
+			0x00000 0 0 4 &mpic 3 1>;
+
+		interrupt-parent = <&mpic>;
+		interrupts = <26 2>;
+		bus-range = <0 0xff>;
+		ranges = <0x02000000 0 0xb0000000 0xb0000000 0 0x10000000
+			  0x01000000 0 0x00000000 0xaf000000 0 0x08000000>;
+		clock-frequency = <33333333>;
+		#interrupt-cells = <1>;
+		#size-cells = <2>;
+		#address-cells = <3>;
+		reg = <0xa000a000 0x1000>;
+		compatible = "fsl,mpc8548-pcie";
+		device_type = "pci";
+		pcie@0 {
+			reg = <0 0 0 0 0>;
+			#size-cells = <2>;
+			#address-cells = <3>;
+			device_type = "pci";
+			ranges = <0x02000000 0 0xb0000000 0x02000000 0
+			          0xb0000000 0 0x10000000
+				  0x01000000 0 0x00000000 0x01000000 0
+				  0x00000000 0 0x08000000>;
+		};
+	};
+};
-- 
1.5.4.2

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH 3/4] [POWERPC] 85xx: add local bus nodes for Flash and CAN to tqm8560.dts
  2008-05-30  6:49   ` [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash Wolfgang Grandegger
@ 2008-05-30  6:49     ` Wolfgang Grandegger
  2008-05-30  6:49       ` [PATCH 4/4] [POWERPC] 85xx: correct vendor prefix in DTS files for TQM85xx modules Wolfgang Grandegger
  2008-05-30 12:28     ` [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash Anton Vorontsov
  2008-05-30 20:01     ` Kumar Gala
  2 siblings, 1 reply; 25+ messages in thread
From: Wolfgang Grandegger @ 2008-05-30  6:49 UTC (permalink / raw)
  To: Linuxppc-dev

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
---
 arch/powerpc/boot/dts/tqm8560.dts |   66 +++++++++++++++++++++++++++++++++++++
 1 files changed, 66 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/boot/dts/tqm8560.dts b/arch/powerpc/boot/dts/tqm8560.dts
index b9ac6c9..c2c25cd 100644
--- a/arch/powerpc/boot/dts/tqm8560.dts
+++ b/arch/powerpc/boot/dts/tqm8560.dts
@@ -2,6 +2,7 @@
  * TQM 8560 Device Tree Source
  *
  * Copyright 2008 Freescale Semiconductor Inc.
+ * Copyright 2008 Wolfgang Grandegger <wg@grandegger.com>
  *
  * 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
@@ -221,6 +222,71 @@
 		};
 	};
 
+	localbus@e0005000 {
+		compatible = "fsl,mpc8560-localbus", "fsl,pq3-localbus",
+			     "simple-bus";
+		#address-cells = <2>;
+		#size-cells = <1>;
+		reg = <0xe0005000 0x100>;	// BRx, ORx, etc.
+
+		ranges = <
+			0 0x0 0xfc000000 0x04000000	// NOR FLASH bank 1
+			1 0x0 0xf8000000 0x08000000	// NOR FLASH bank 0
+			2 0x0 0xe3000000 0x00008000	// CAN (2 x i82527)
+		>;
+
+		flash@1,0 {
+			#address-cells = <1>;
+			#size-cells = <1>;
+			compatible = "cfi-flash";
+			reg = <1 0x0 0x8000000>;
+			bank-width = <4>;
+			device-width = <1>;
+
+			partition@0 {
+				label = "kernel";
+				reg = <0x00000000 0x00200000>;
+			};
+			partition@200000 {
+				label = "root";
+				reg = <0x00200000 0x00300000>;
+			};
+			partition@500000 {
+				label = "user";
+				reg = <0x00500000 0x07a00000>;
+			};
+			partition@7f00000 {
+				label = "env1";
+				reg = <0x07f00000 0x00040000>;
+			};
+			partition@7f40000 {
+				label = "env2";
+				reg = <0x07f40000 0x00040000>;
+			};
+			partition@7f80000 {
+				label = "u-boot";
+				reg = <0x07f80000 0x00080000>;
+				read-only;
+			};
+		};
+
+/* CAN must be enabled and initialized by U-Boot
+		can0@2,0 {
+			compatible = "intel,82527"; // Bosch CC770
+			reg = <2 0x0 0x100>;
+			interrupts = <4 0>;
+			interrupt-parent = <&mpic>;
+		};
+
+		can1@2,100 {
+			compatible = "intel,82527"; // Bosch CC770
+			reg = <2 0x100 0x100>;
+			interrupts = <4 0>;
+			interrupt-parent = <&mpic>;
+		};
+*/
+	};
+
 	pci0: pci@e0008000 {
 		cell-index = <0>;
 		#interrupt-cells = <1>;
-- 
1.5.4.2

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH 4/4] [POWERPC] 85xx: correct vendor prefix in DTS files for TQM85xx modules
  2008-05-30  6:49     ` [PATCH 3/4] [POWERPC] 85xx: add local bus nodes for Flash and CAN to tqm8560.dts Wolfgang Grandegger
@ 2008-05-30  6:49       ` Wolfgang Grandegger
  0 siblings, 0 replies; 25+ messages in thread
From: Wolfgang Grandegger @ 2008-05-30  6:49 UTC (permalink / raw)
  To: Linuxppc-dev

Like for the TQM5200, the vendor prefix "tqc," is now used for all
TQM85xx modules from TQ-Components GmbH (http://www.tqc.de) in the
corresponding DTS files.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
---
 arch/powerpc/boot/dts/tqm8540.dts          |    4 ++--
 arch/powerpc/boot/dts/tqm8541.dts          |    4 ++--
 arch/powerpc/boot/dts/tqm8548-bigflash.dts |    4 ++--
 arch/powerpc/boot/dts/tqm8548.dts          |    4 ++--
 arch/powerpc/boot/dts/tqm8555.dts          |    4 ++--
 arch/powerpc/boot/dts/tqm8560.dts          |    4 ++--
 arch/powerpc/platforms/85xx/tqm85xx.c      |   10 +++++-----
 7 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/arch/powerpc/boot/dts/tqm8540.dts b/arch/powerpc/boot/dts/tqm8540.dts
index 1addb3a..20e2496 100644
--- a/arch/powerpc/boot/dts/tqm8540.dts
+++ b/arch/powerpc/boot/dts/tqm8540.dts
@@ -12,8 +12,8 @@
 /dts-v1/;
 
 / {
-	model = "tqm,8540";
-	compatible = "tqm,8540", "tqm,85xx";
+	model = "tqc,8540";
+	compatible = "tqc,8540", "tqc,85xx";
 	#address-cells = <1>;
 	#size-cells = <1>;
 
diff --git a/arch/powerpc/boot/dts/tqm8541.dts b/arch/powerpc/boot/dts/tqm8541.dts
index 9e01093..1cf1e4e 100644
--- a/arch/powerpc/boot/dts/tqm8541.dts
+++ b/arch/powerpc/boot/dts/tqm8541.dts
@@ -12,8 +12,8 @@
 /dts-v1/;
 
 / {
-	model = "tqm,8541";
-	compatible = "tqm,8541", "tqm,85xx";
+	model = "tqc,8541";
+	compatible = "tqc,8541", "tqc,85xx";
 	#address-cells = <1>;
 	#size-cells = <1>;
 
diff --git a/arch/powerpc/boot/dts/tqm8548-bigflash.dts b/arch/powerpc/boot/dts/tqm8548-bigflash.dts
index 895bb80..4f8f033 100644
--- a/arch/powerpc/boot/dts/tqm8548-bigflash.dts
+++ b/arch/powerpc/boot/dts/tqm8548-bigflash.dts
@@ -13,8 +13,8 @@
 /dts-v1/;
 
 / {
-	model = "tqm,8548";
-	compatible = "tqm,8548", "tqm,85xx";
+	model = "tqc,8548";
+	compatible = "tqc,8548", "tqc,85xx";
 	#address-cells = <1>;
 	#size-cells = <1>;
 
diff --git a/arch/powerpc/boot/dts/tqm8548.dts b/arch/powerpc/boot/dts/tqm8548.dts
index d09250a..1155dc0 100644
--- a/arch/powerpc/boot/dts/tqm8548.dts
+++ b/arch/powerpc/boot/dts/tqm8548.dts
@@ -13,8 +13,8 @@
 /dts-v1/;
 
 / {
-	model = "tqm,8548";
-	compatible = "tqm,8548", "tqm,85xx";
+	model = "tqc,8548";
+	compatible = "tqc,8548", "tqc,85xx";
 	#address-cells = <1>;
 	#size-cells = <1>;
 
diff --git a/arch/powerpc/boot/dts/tqm8555.dts b/arch/powerpc/boot/dts/tqm8555.dts
index a20eb06..da7b90a 100644
--- a/arch/powerpc/boot/dts/tqm8555.dts
+++ b/arch/powerpc/boot/dts/tqm8555.dts
@@ -12,8 +12,8 @@
 /dts-v1/;
 
 / {
-	model = "tqm,8555";
-	compatible = "tqm,8555", "tqm,85xx";
+	model = "tqc,8555";
+	compatible = "tqc,8555", "tqc,85xx";
 	#address-cells = <1>;
 	#size-cells = <1>;
 
diff --git a/arch/powerpc/boot/dts/tqm8560.dts b/arch/powerpc/boot/dts/tqm8560.dts
index c2c25cd..12c7ca6 100644
--- a/arch/powerpc/boot/dts/tqm8560.dts
+++ b/arch/powerpc/boot/dts/tqm8560.dts
@@ -13,8 +13,8 @@
 /dts-v1/;
 
 / {
-	model = "tqm,8560";
-	compatible = "tqm,8560", "tqm,85xx";
+	model = "tqc,8560";
+	compatible = "tqc,8560", "tqc,85xx";
 	#address-cells = <1>;
 	#size-cells = <1>;
 
diff --git a/arch/powerpc/platforms/85xx/tqm85xx.c b/arch/powerpc/platforms/85xx/tqm85xx.c
index 5746a40..45418df 100644
--- a/arch/powerpc/platforms/85xx/tqm85xx.c
+++ b/arch/powerpc/platforms/85xx/tqm85xx.c
@@ -174,11 +174,11 @@ static int __init tqm85xx_probe(void)
 {
 	unsigned long root = of_get_flat_dt_root();
 
-	if ((of_flat_dt_is_compatible(root, "tqm,8540")) ||
-	    (of_flat_dt_is_compatible(root, "tqm,8541")) ||
-	    (of_flat_dt_is_compatible(root, "tqm,8548")) ||
-	    (of_flat_dt_is_compatible(root, "tqm,8555")) ||
-	    (of_flat_dt_is_compatible(root, "tqm,8560")))
+	if ((of_flat_dt_is_compatible(root, "tqc,8540")) ||
+	    (of_flat_dt_is_compatible(root, "tqc,8541")) ||
+	    (of_flat_dt_is_compatible(root, "tqc,8548")) ||
+	    (of_flat_dt_is_compatible(root, "tqc,8555")) ||
+	    (of_flat_dt_is_compatible(root, "tqc,8560")))
 		return 1;
 
 	return 0;
-- 
1.5.4.2

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-05-30  6:49 ` [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules Wolfgang Grandegger
  2008-05-30  6:49   ` [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash Wolfgang Grandegger
@ 2008-05-30  7:01   ` Stephen Rothwell
  2008-05-30  7:12     ` Wolfgang Grandegger
  2008-05-30  8:24   ` Arnd Bergmann
  2008-06-02  2:03   ` David Gibson
  3 siblings, 1 reply; 25+ messages in thread
From: Stephen Rothwell @ 2008-05-30  7:01 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: Linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 737 bytes --]

Hi Wolfgang,

On Fri, 30 May 2008 08:49:45 +0200 Wolfgang Grandegger <wg@grandegger.com> wrote:
>
> +++ b/arch/powerpc/platforms/85xx/tqm85xx.c
> @@ -120,8 +120,17 @@ static void __init tqm85xx_setup_arch(void)
>  #endif
>  
>  #ifdef CONFIG_PCI
> -	for_each_compatible_node(np, "pci", "fsl,mpc8540-pci")
> -		fsl_add_bridge(np, 1);
> +	for_each_node_by_type(np, "pci") {
> +		if (of_device_is_compatible(np, "fsl,mpc8540-pci") ||
> +		    of_device_is_compatible(np, "fsl,mpc8548-pcie")) {
> +			struct resource rsrc;
> +			of_address_to_resource(np, 0, &rsrc);

What happens if of_address_to_resource fails?

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-05-30  7:01   ` [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules Stephen Rothwell
@ 2008-05-30  7:12     ` Wolfgang Grandegger
  0 siblings, 0 replies; 25+ messages in thread
From: Wolfgang Grandegger @ 2008-05-30  7:12 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Linuxppc-dev

Stephen Rothwell wrote:
> Hi Wolfgang,
> 
> On Fri, 30 May 2008 08:49:45 +0200 Wolfgang Grandegger <wg@grandegger.com> wrote:
>> +++ b/arch/powerpc/platforms/85xx/tqm85xx.c
>> @@ -120,8 +120,17 @@ static void __init tqm85xx_setup_arch(void)
>>  #endif
>>  
>>  #ifdef CONFIG_PCI
>> -	for_each_compatible_node(np, "pci", "fsl,mpc8540-pci")
>> -		fsl_add_bridge(np, 1);
>> +	for_each_node_by_type(np, "pci") {
>> +		if (of_device_is_compatible(np, "fsl,mpc8540-pci") ||
>> +		    of_device_is_compatible(np, "fsl,mpc8548-pcie")) {
>> +			struct resource rsrc;
>> +			of_address_to_resource(np, 0, &rsrc);
> 
> What happens if of_address_to_resource fails?

Checking the return code is missing, of course. Obviously a cut & paste
from a bad source (sbc8548.c).

Will fix.

Wolfgang.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-05-30  6:49 ` [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules Wolfgang Grandegger
  2008-05-30  6:49   ` [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash Wolfgang Grandegger
  2008-05-30  7:01   ` [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules Stephen Rothwell
@ 2008-05-30  8:24   ` Arnd Bergmann
  2008-06-02  2:03   ` David Gibson
  3 siblings, 0 replies; 25+ messages in thread
From: Arnd Bergmann @ 2008-05-30  8:24 UTC (permalink / raw)
  To: linuxppc-dev

T24gRnJpZGF5IDMwIE1heSAyMDA4LCBXb2xmZ2FuZyBHcmFuZGVnZ2VyIHdyb3RlOgo+IAo+IKAj
aWZkZWYgQ09ORklHX1BDSQo+IC2goKCgoKCgZm9yX2VhY2hfY29tcGF0aWJsZV9ub2RlKG5wLCAi
cGNpIiwgImZzbCxtcGM4NTQwLXBjaSIpCj4gLaCgoKCgoKCgoKCgoKCgoGZzbF9hZGRfYnJpZGdl
KG5wLCAxKTsKPiAroKCgoKCgoGZvcl9lYWNoX25vZGVfYnlfdHlwZShucCwgInBjaSIpIHsKPiAr
oKCgoKCgoKCgoKCgoKCgaWYgKG9mX2RldmljZV9pc19jb21wYXRpYmxlKG5wLCAiZnNsLG1wYzg1
NDAtcGNpIikgfHwKPiAroKCgoKCgoKCgoKCgoKCgIKAgoG9mX2RldmljZV9pc19jb21wYXRpYmxl
KG5wLCAiZnNsLG1wYzg1NDgtcGNpZSIpKSB7Cj4gK6CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgc3Ry
dWN0IHJlc291cmNlIHJzcmM7Cj4gK6CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgb2ZfYWRkcmVzc190
b19yZXNvdXJjZShucCwgMCwgJnJzcmMpOwo+ICugoKCgoKCgoKCgoKCgoKCgoKCgoKCgoGlmICgo
cnNyYy5zdGFydCAmIDB4ZmZmZmYpID09IDB4ODAwMCkKPiAroKCgoKCgoKCgoKCgoKCgoKCgoKCg
oKCgoKCgoKCgoGZzbF9hZGRfYnJpZGdlKG5wLCAxKTsKPiAroKCgoKCgoKCgoKCgoKCgoKCgoKCg
oKBlbHNlCj4gK6CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKBmc2xfYWRkX2JyaWRnZShu
cCwgMCk7Cj4gK6CgoKCgoKCgoKCgoKCgoH0KPiAroKCgoKCgoH0KPiCgI2VuZGlmCgpUaGlzIGxv
b2tzIGxpa2UgYSB2ZXJ5IHdyb25nIHRvIGZpZ3VyZSBvdXQgd2hhdCBpcyBhIHByaW1hcnkgYnJp
ZGdlLgpJIGRvIHJlYWxpemUgdGhhdCB5b3UgY29waWVkIGl0IGZyb20gb3RoZXIgcGxhY2VzLCBi
dXQgdGhhdCBkb2Vzbid0Cm1ha2UgaXQgYmV0dGVyLgpDYW4ndCB3ZSBjaGFuZ2UgZnNsX2FkZF9i
cmlkZ2UgdG8gZmlndXJlIHRoaXMgb3V0IGF1dG9tYXRpY2FsbHk/CkEgbXVjaCBiZXR0ZXIgaGV1
cmlzdGljIHNob3VsZCBiZSB0byBtYWtlIGEgYnJpZGdlIHByaW1hcnkgaWYKaXQgaGFzIGFuICJJ
U0EiIGNoaWxkIGJ1cy4gRG9lcyB0aGF0IHdvcmsgZm9yIGFsbCBleGlzdGluZyBzeXN0ZW1zPwoK
CUFybmQgPD48Cg==

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash
  2008-05-30  6:49   ` [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash Wolfgang Grandegger
  2008-05-30  6:49     ` [PATCH 3/4] [POWERPC] 85xx: add local bus nodes for Flash and CAN to tqm8560.dts Wolfgang Grandegger
@ 2008-05-30 12:28     ` Anton Vorontsov
  2008-05-30 18:02       ` Wolfgang Grandegger
  2008-05-30 20:01     ` Kumar Gala
  2 siblings, 1 reply; 25+ messages in thread
From: Anton Vorontsov @ 2008-05-30 12:28 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: Linuxppc-dev

On Fri, May 30, 2008 at 08:49:46AM +0200, Wolfgang Grandegger wrote:
> Some TQM85xx boards could be equipped with up to 1 GiB (NOR) flash
> memory and therefore a modified memory map is required and setup by
> the board loader. This patch adds an appropriate DTS file.
> 
> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
> ---
[...]
> +/* NAND support must be enabled in U-Boot before Linux can use it

nand/fsl_upm.c can detect this in run-time. That is, if BRx/ORx aren't
configured, fsl_upm_find() will return ENODEV/ENOENT/EINVAL, depending
on what exactly is mis-configured.

> +		upm@3,0 {
> +			#address-cells = <0>;
> +			#size-cells = <0>;
> +			compatible = "fsl,upm-nand";
> +			reg = <3 0x0 0x800>;
> +			fsl,upm-addr-offset = <0x10>;
> +			fsl,upm-cmd-offset = <0x08>;
> +			chip-delay = <25>; // in micro-seconds
> +
> +			nand@0 {
> +				#address-cells = <1>;
> +				#size-cells = <1>;
> +
> +				partition@0 {
> +					    label = "fs";
> +					    reg = <0x00000000 0x01000000>;
> +				};
> +			};
> +		};
> +*/
> +	};

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash
  2008-05-30 12:28     ` [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash Anton Vorontsov
@ 2008-05-30 18:02       ` Wolfgang Grandegger
  0 siblings, 0 replies; 25+ messages in thread
From: Wolfgang Grandegger @ 2008-05-30 18:02 UTC (permalink / raw)
  To: avorontsov; +Cc: Linuxppc-dev

Anton Vorontsov wrote:
> On Fri, May 30, 2008 at 08:49:46AM +0200, Wolfgang Grandegger wrote:
>> Some TQM85xx boards could be equipped with up to 1 GiB (NOR) flash
>> memory and therefore a modified memory map is required and setup by
>> the board loader. This patch adds an appropriate DTS file.
>>
>> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
>> ---
> [...]
>> +/* NAND support must be enabled in U-Boot before Linux can use it
> 
> nand/fsl_upm.c can detect this in run-time. That is, if BRx/ORx aren't
> configured, fsl_upm_find() will return ENODEV/ENOENT/EINVAL, depending
> on what exactly is mis-configured.

Ah, I saw that and I could test UPBx configuration for the CAN as well.

Wolfgang.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash
  2008-05-30  6:49   ` [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash Wolfgang Grandegger
  2008-05-30  6:49     ` [PATCH 3/4] [POWERPC] 85xx: add local bus nodes for Flash and CAN to tqm8560.dts Wolfgang Grandegger
  2008-05-30 12:28     ` [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash Anton Vorontsov
@ 2008-05-30 20:01     ` Kumar Gala
  2008-05-30 20:07       ` Scott Wood
  2 siblings, 1 reply; 25+ messages in thread
From: Kumar Gala @ 2008-05-30 20:01 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: Linuxppc-dev


On May 30, 2008, at 1:49 AM, Wolfgang Grandegger wrote:

> Some TQM85xx boards could be equipped with up to 1 GiB (NOR) flash
> memory and therefore a modified memory map is required and setup by
> the board loader. This patch adds an appropriate DTS file.
>
> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
> ---
> arch/powerpc/boot/dts/tqm8548-bigflash.dts |  371 +++++++++++++++++++ 
> +++++++++
> 1 files changed, 371 insertions(+), 0 deletions(-)
> create mode 100644 arch/powerpc/boot/dts/tqm8548-bigflash.dts
>
> diff --git a/arch/powerpc/boot/dts/tqm8548-bigflash.dts b/arch/ 
> powerpc/boot/dts/tqm8548-bigflash.dts
> new file mode 100644
> index 0000000..895bb80
> --- /dev/null
> +++ b/arch/powerpc/boot/dts/tqm8548-bigflash.dts
> @@ -0,0 +1,371 @@
> +/*
> + * TQM8548 Device Tree Source
> + *
> + * Copyright 2006 Freescale Semiconductor Inc.
> + * Copyright 2008 Wolfgang Grandegger <wg@denx.de>
> + *
> + * 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 = "tqm,8548";
> +	compatible = "tqm,8548", "tqm,85xx";
> +	#address-cells = <1>;
> +	#size-cells = <1>;
> +
> +	aliases {
> +		ethernet0 = &enet0;
> +		ethernet1 = &enet1;
> +		ethernet2 = &enet2;
> +		ethernet3 = &enet3;
> +
> +		serial0 = &serial0;
> +		serial1 = &serial1;
> +		pci0 = &pci0;
> +		pci1 = &pci1;
> +	};
> +
> +	cpus {
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +
> +		PowerPC,8548@0 {
> +			device_type = "cpu";
> +			reg = <0>;
> +			d-cache-line-size = <32>;	// 32 bytes
> +			i-cache-line-size = <32>;	// 32 bytes
> +			d-cache-size = <0x8000>;	// L1, 32K
> +			i-cache-size = <0x8000>;	// L1, 32K
> +			timebase-frequency = <0>;	// from U-Boot
> +			bus-frequency = <0>;	// from U-Boot
> +			clock-frequency = <0>;	// from U-Boot

add next-level-cache = <&L2>;

>
> +		};
> +	};
> +
> +	memory {
> +		device_type = "memory";
> +		reg = <0x00000000 0x20000000>;
> +	};
> +
> +	soc8548@e0000000 {
> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +		device_type = "soc";
> +		ranges = <0x0 0xa0000000 0x100000>;
> +		reg = <0xa0000000 0x1000>;	// CCSRBAR
> +		bus-frequency = <0>;
> +
> +		memory-controller@2000 {
> +			compatible = "fsl,8548-memory-controller";
> +			reg = <0x2000 0x1000>;
> +			interrupt-parent = <&mpic>;
> +			interrupts = <18 2>;
> +		};
> +
> +		l2-cache-controller@20000 {

add L2 label (L2 : l2-cache-...)

> +			compatible = "fsl,8548-l2-cache-controller";
> +			reg = <0x20000 0x1000>;
> +			cache-line-size = <32>;	// 32 bytes
> +			cache-size = <0x80000>;	// L2, 512K
> +			interrupt-parent = <&mpic>;
> +			interrupts = <16 2>;
> +		};
> +
> +


>
> +		mpic: pic@40000 {
> +			clock-frequency = <0>;
remove clock-frequency

>
> +			interrupt-controller;
> +			#address-cells = <0>;
> +			#interrupt-cells = <2>;
> +			reg = <0x40000 0x40000>;
> +			compatible = "chrp,open-pic";
> +			device_type = "open-pic";
> +                        big-endian;

remove big-endian.
>
> +		};
> +	};
> +

- k

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash
  2008-05-30 20:01     ` Kumar Gala
@ 2008-05-30 20:07       ` Scott Wood
  2008-05-30 20:10         ` Kumar Gala
  0 siblings, 1 reply; 25+ messages in thread
From: Scott Wood @ 2008-05-30 20:07 UTC (permalink / raw)
  To: Kumar Gala; +Cc: Linuxppc-dev

Kumar Gala wrote:
>> +        mpic: pic@40000 {
>> +            clock-frequency = <0>;
> remove clock-frequency

Where would one express the PIC timer frequency, then?

> 
>>
>> +            interrupt-controller;
>> +            #address-cells = <0>;
>> +            #interrupt-cells = <2>;
>> +            reg = <0x40000 0x40000>;
>> +            compatible = "chrp,open-pic";
>> +            device_type = "open-pic";
>> +                        big-endian;
> 
> remove big-endian.

I thought this was part of the open-pic binding.

In any case, if these are to go, we should remove them from existing 
trees and from the examples in bwof.txt before complaining about them in 
new boards...

-Scott

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash
  2008-05-30 20:07       ` Scott Wood
@ 2008-05-30 20:10         ` Kumar Gala
  0 siblings, 0 replies; 25+ messages in thread
From: Kumar Gala @ 2008-05-30 20:10 UTC (permalink / raw)
  To: Scott Wood; +Cc: Linuxppc-dev


On May 30, 2008, at 3:07 PM, Scott Wood wrote:

> Kumar Gala wrote:
>>> +        mpic: pic@40000 {
>>> +            clock-frequency = <0>;
>> remove clock-frequency
>
> Where would one express the PIC timer frequency, then?
>
>>>
>>> +            interrupt-controller;
>>> +            #address-cells = <0>;
>>> +            #interrupt-cells = <2>;
>>> +            reg = <0x40000 0x40000>;
>>> +            compatible = "chrp,open-pic";
>>> +            device_type = "open-pic";
>>> +                        big-endian;
>> remove big-endian.
>
> I thought this was part of the open-pic binding.
>
> In any case, if these are to go, we should remove them from existing  
> trees and from the examples in bwof.txt before complaining about  
> them in new boards...

I've got a patch for this.  will update the examples in bwof.txt

- k

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-05-30  6:49 ` [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules Wolfgang Grandegger
                     ` (2 preceding siblings ...)
  2008-05-30  8:24   ` Arnd Bergmann
@ 2008-06-02  2:03   ` David Gibson
  2008-06-02  6:31     ` Wolfgang Grandegger
  2008-06-02 23:13     ` Kumar Gala
  3 siblings, 2 replies; 25+ messages in thread
From: David Gibson @ 2008-06-02  2:03 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: Linuxppc-dev

On Fri, May 30, 2008 at 08:49:45AM +0200, Wolfgang Grandegger wrote:
> This patch adds support for the TQM8548 modules from TQ-Components
> GmbH (http://www.tqc.de).

[snip]
> index 0000000..d09250a
> --- /dev/null
> +++ b/arch/powerpc/boot/dts/tqm8548.dts
> @@ -0,0 +1,370 @@
> +/*
> + * TQM8548 Device Tree Source
> + *
> + * Copyright 2006 Freescale Semiconductor Inc.
> + * Copyright 2008 Wolfgang Grandegger <wg@denx.de>
> + *
> + * 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/;

[snip]
> +		i2c@3000 {
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			cell-index = <0>;
[...]
> +		enet0: ethernet@24000 {
> +			cell-index = <0>;
[...]
> +		serial0: serial@4500 {
> +			cell-index = <0>;
[...]
> +	pci0: pci@e0008000 {
> +		cell-index = <0>;

You have a whole lot of 'cell-index' properties through both these
trees, and they all look wrong.  cell-index is a hack, which should be
avoided wherever practical - it should only be used when the index is
used to offset into some global register block, never simply to
differentiate (use reg for that) or name the devices (use aliases for
that).

-- 
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

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-06-02  2:03   ` David Gibson
@ 2008-06-02  6:31     ` Wolfgang Grandegger
  2008-06-02 23:13     ` Kumar Gala
  1 sibling, 0 replies; 25+ messages in thread
From: Wolfgang Grandegger @ 2008-06-02  6:31 UTC (permalink / raw)
  To: Wolfgang Grandegger, Linuxppc-dev

David Gibson wrote:
> On Fri, May 30, 2008 at 08:49:45AM +0200, Wolfgang Grandegger wrote:
>> This patch adds support for the TQM8548 modules from TQ-Components
>> GmbH (http://www.tqc.de).
> 
> [snip]
>> index 0000000..d09250a
>> --- /dev/null
>> +++ b/arch/powerpc/boot/dts/tqm8548.dts
>> @@ -0,0 +1,370 @@
>> +/*
>> + * TQM8548 Device Tree Source
>> + *
>> + * Copyright 2006 Freescale Semiconductor Inc.
>> + * Copyright 2008 Wolfgang Grandegger <wg@denx.de>
>> + *
>> + * 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/;
> 
> [snip]
>> +		i2c@3000 {
>> +			#address-cells = <1>;
>> +			#size-cells = <0>;
>> +			cell-index = <0>;
> [...]
>> +		enet0: ethernet@24000 {
>> +			cell-index = <0>;
> [...]
>> +		serial0: serial@4500 {
>> +			cell-index = <0>;
> [...]
>> +	pci0: pci@e0008000 {
>> +		cell-index = <0>;
> 
> You have a whole lot of 'cell-index' properties through both these
> trees, and they all look wrong.  cell-index is a hack, which should be
> avoided wherever practical - it should only be used when the index is
> used to offset into some global register block, never simply to
> differentiate (use reg for that) or name the devices (use aliases for
> that).

OK, I can remove them from the TQM85*.dts files but I think the problem
is more general. It seems to be frequently used for similar purposes,
also in the code, at least in 2.6.26-rc4:

  $ cd linux-2.6/arch/powerpc/boot/dts
  $ grep -l 'cell-index' *.dts | wc -l
  58

Wolfgang

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-06-02  2:03   ` David Gibson
  2008-06-02  6:31     ` Wolfgang Grandegger
@ 2008-06-02 23:13     ` Kumar Gala
  2008-06-03 10:08       ` Wolfgang Grandegger
  1 sibling, 1 reply; 25+ messages in thread
From: Kumar Gala @ 2008-06-02 23:13 UTC (permalink / raw)
  To: David Gibson; +Cc: Linuxppc-dev


On Jun 1, 2008, at 9:03 PM, David Gibson wrote:

> On Fri, May 30, 2008 at 08:49:45AM +0200, Wolfgang Grandegger wrote:
>> This patch adds support for the TQM8548 modules from TQ-Components
>> GmbH (http://www.tqc.de).
>
> [snip]
>> index 0000000..d09250a
>> --- /dev/null
>> +++ b/arch/powerpc/boot/dts/tqm8548.dts
>> @@ -0,0 +1,370 @@
>> +/*
>> + * TQM8548 Device Tree Source
>> + *
>> + * Copyright 2006 Freescale Semiconductor Inc.
>> + * Copyright 2008 Wolfgang Grandegger <wg@denx.de>
>> + *
>> + * 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/;
>
> [snip]
>> +		i2c@3000 {
>> +			#address-cells = <1>;
>> +			#size-cells = <0>;
>> +			cell-index = <0>;
> [...]
>> +		enet0: ethernet@24000 {
>> +			cell-index = <0>;
> [...]
>> +		serial0: serial@4500 {
>> +			cell-index = <0>;
> [...]
>> +	pci0: pci@e0008000 {
>> +		cell-index = <0>;
>
> You have a whole lot of 'cell-index' properties through both these
> trees, and they all look wrong.  cell-index is a hack, which should be
> avoided wherever practical - it should only be used when the index is
> used to offset into some global register block, never simply to
> differentiate (use reg for that) or name the devices (use aliases for
> that).

this is why FSL device tree's have cell-index.  We have global control  
registers that need to know such things.

- k

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-06-02 23:13     ` Kumar Gala
@ 2008-06-03 10:08       ` Wolfgang Grandegger
  2008-06-03 14:33         ` Kumar Gala
  0 siblings, 1 reply; 25+ messages in thread
From: Wolfgang Grandegger @ 2008-06-03 10:08 UTC (permalink / raw)
  To: Kumar Gala; +Cc: Linuxppc-dev, David Gibson

Kumar Gala wrote:
> 
> On Jun 1, 2008, at 9:03 PM, David Gibson wrote:
> 
>> On Fri, May 30, 2008 at 08:49:45AM +0200, Wolfgang Grandegger wrote:
>>> This patch adds support for the TQM8548 modules from TQ-Components
>>> GmbH (http://www.tqc.de).
>>
>> [snip]
>>> index 0000000..d09250a
>>> --- /dev/null
>>> +++ b/arch/powerpc/boot/dts/tqm8548.dts
>>> @@ -0,0 +1,370 @@
>>> +/*
>>> + * TQM8548 Device Tree Source
>>> + *
>>> + * Copyright 2006 Freescale Semiconductor Inc.
>>> + * Copyright 2008 Wolfgang Grandegger <wg@denx.de>
>>> + *
>>> + * 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/;
>>
>> [snip]
>>> +        i2c@3000 {
>>> +            #address-cells = <1>;
>>> +            #size-cells = <0>;
>>> +            cell-index = <0>;
>> [...]
>>> +        enet0: ethernet@24000 {
>>> +            cell-index = <0>;
>> [...]
>>> +        serial0: serial@4500 {
>>> +            cell-index = <0>;
>> [...]
>>> +    pci0: pci@e0008000 {
>>> +        cell-index = <0>;
>>
>> You have a whole lot of 'cell-index' properties through both these
>> trees, and they all look wrong.  cell-index is a hack, which should be
>> avoided wherever practical - it should only be used when the index is
>> used to offset into some global register block, never simply to
>> differentiate (use reg for that) or name the devices (use aliases for
>> that).
> 
> this is why FSL device tree's have cell-index.  We have global control
> registers that need to know such things.

Should I remove them or not? OF is still a mystery for me :-(.

Wolfgang.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-06-03 10:08       ` Wolfgang Grandegger
@ 2008-06-03 14:33         ` Kumar Gala
  2008-06-03 22:39           ` David Gibson
  0 siblings, 1 reply; 25+ messages in thread
From: Kumar Gala @ 2008-06-03 14:33 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: Linuxppc-dev, David Gibson


On Jun 3, 2008, at 5:08 AM, Wolfgang Grandegger wrote:

> Kumar Gala wrote:
>>
>> On Jun 1, 2008, at 9:03 PM, David Gibson wrote:
>>
>>> On Fri, May 30, 2008 at 08:49:45AM +0200, Wolfgang Grandegger wrote:
>>>> This patch adds support for the TQM8548 modules from TQ-Components
>>>> GmbH (http://www.tqc.de).
>>>
>>> [snip]
>>>> index 0000000..d09250a
>>>> --- /dev/null
>>>> +++ b/arch/powerpc/boot/dts/tqm8548.dts
>>>> @@ -0,0 +1,370 @@
>>>> +/*
>>>> + * TQM8548 Device Tree Source
>>>> + *
>>>> + * Copyright 2006 Freescale Semiconductor Inc.
>>>> + * Copyright 2008 Wolfgang Grandegger <wg@denx.de>
>>>> + *
>>>> + * 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/;
>>>
>>> [snip]
>>>> +        i2c@3000 {
>>>> +            #address-cells = <1>;
>>>> +            #size-cells = <0>;
>>>> +            cell-index = <0>;
>>> [...]
>>>> +        enet0: ethernet@24000 {
>>>> +            cell-index = <0>;
>>> [...]
>>>> +        serial0: serial@4500 {
>>>> +            cell-index = <0>;
>>> [...]
>>>> +    pci0: pci@e0008000 {
>>>> +        cell-index = <0>;
>>>
>>> You have a whole lot of 'cell-index' properties through both these
>>> trees, and they all look wrong.  cell-index is a hack, which  
>>> should be
>>> avoided wherever practical - it should only be used when the index  
>>> is
>>> used to offset into some global register block, never simply to
>>> differentiate (use reg for that) or name the devices (use aliases  
>>> for
>>> that).
>>
>> this is why FSL device tree's have cell-index.  We have global  
>> control
>> registers that need to know such things.
>
> Should I remove them or not? OF is still a mystery for me :-(.

Don't remove them.

- k

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-06-03 14:33         ` Kumar Gala
@ 2008-06-03 22:39           ` David Gibson
  2008-06-04  9:43             ` Wolfgang Grandegger
  0 siblings, 1 reply; 25+ messages in thread
From: David Gibson @ 2008-06-03 22:39 UTC (permalink / raw)
  To: Kumar Gala; +Cc: Linuxppc-dev

On Tue, Jun 03, 2008 at 09:33:12AM -0500, Kumar Gala wrote:
> On Jun 3, 2008, at 5:08 AM, Wolfgang Grandegger wrote:
>> Kumar Gala wrote:
>>> On Jun 1, 2008, at 9:03 PM, David Gibson wrote:
>>>> On Fri, May 30, 2008 at 08:49:45AM +0200, Wolfgang Grandegger wrote:
[snip]
>>>> You have a whole lot of 'cell-index' properties through both these
>>>> trees, and they all look wrong.  cell-index is a hack, which  
>>>> should be
>>>> avoided wherever practical - it should only be used when the index  
>>>> is
>>>> used to offset into some global register block, never simply to
>>>> differentiate (use reg for that) or name the devices (use aliases  
>>>> for
>>>> that).
>>>
>>> this is why FSL device tree's have cell-index.  We have global  
>>> control
>>> registers that need to know such things.
>>
>> Should I remove them or not? OF is still a mystery for me :-(.
>
> Don't remove them.

Yes, they're ok, given this usage.

-- 
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

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-06-03 22:39           ` David Gibson
@ 2008-06-04  9:43             ` Wolfgang Grandegger
  2008-06-04 13:27               ` Kumar Gala
  0 siblings, 1 reply; 25+ messages in thread
From: Wolfgang Grandegger @ 2008-06-04  9:43 UTC (permalink / raw)
  To: Kumar Gala, Wolfgang Grandegger, Linuxppc-dev

David Gibson wrote:
> On Tue, Jun 03, 2008 at 09:33:12AM -0500, Kumar Gala wrote:
>> On Jun 3, 2008, at 5:08 AM, Wolfgang Grandegger wrote:
>>> Kumar Gala wrote:
>>>> On Jun 1, 2008, at 9:03 PM, David Gibson wrote:
>>>>> On Fri, May 30, 2008 at 08:49:45AM +0200, Wolfgang Grandegger wrote:
> [snip]
>>>>> You have a whole lot of 'cell-index' properties through both these
>>>>> trees, and they all look wrong.  cell-index is a hack, which  
>>>>> should be
>>>>> avoided wherever practical - it should only be used when the index  
>>>>> is
>>>>> used to offset into some global register block, never simply to
>>>>> differentiate (use reg for that) or name the devices (use aliases  
>>>>> for
>>>>> that).
>>>> this is why FSL device tree's have cell-index.  We have global  
>>>> control
>>>> registers that need to know such things.
>>> Should I remove them or not? OF is still a mystery for me :-(.
>> Don't remove them.
> 
> Yes, they're ok, given this usage.

I'm puzzled. Could someone point me to some real code where cell-index
is used as a pointer into some global data. Sorry for my ignorance.

Thanks.

Wolfgang.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-06-04  9:43             ` Wolfgang Grandegger
@ 2008-06-04 13:27               ` Kumar Gala
  2008-06-05  6:43                 ` Wolfgang Grandegger
  0 siblings, 1 reply; 25+ messages in thread
From: Kumar Gala @ 2008-06-04 13:27 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: Linuxppc-dev


On Jun 4, 2008, at 4:43 AM, Wolfgang Grandegger wrote:

> David Gibson wrote:
>> On Tue, Jun 03, 2008 at 09:33:12AM -0500, Kumar Gala wrote:
>>> On Jun 3, 2008, at 5:08 AM, Wolfgang Grandegger wrote:
>>>> Kumar Gala wrote:
>>>>> On Jun 1, 2008, at 9:03 PM, David Gibson wrote:
>>>>>> On Fri, May 30, 2008 at 08:49:45AM +0200, Wolfgang Grandegger  
>>>>>> wrote:
>> [snip]
>>>>>> You have a whole lot of 'cell-index' properties through both  
>>>>>> these
>>>>>> trees, and they all look wrong.  cell-index is a hack, which
>>>>>> should be
>>>>>> avoided wherever practical - it should only be used when the  
>>>>>> index
>>>>>> is
>>>>>> used to offset into some global register block, never simply to
>>>>>> differentiate (use reg for that) or name the devices (use aliases
>>>>>> for
>>>>>> that).
>>>>> this is why FSL device tree's have cell-index.  We have global
>>>>> control
>>>>> registers that need to know such things.
>>>> Should I remove them or not? OF is still a mystery for me :-(.
>>> Don't remove them.
>>
>> Yes, they're ok, given this usage.
>
> I'm puzzled. Could someone point me to some real code where cell-index
> is used as a pointer into some global data. Sorry for my ignorance.

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

- k

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-06-04 13:27               ` Kumar Gala
@ 2008-06-05  6:43                 ` Wolfgang Grandegger
  2008-06-05  7:43                   ` Kumar Gala
  0 siblings, 1 reply; 25+ messages in thread
From: Wolfgang Grandegger @ 2008-06-05  6:43 UTC (permalink / raw)
  To: Kumar Gala; +Cc: Linuxppc-dev

Kumar Gala wrote:
> 
> On Jun 4, 2008, at 4:43 AM, Wolfgang Grandegger wrote:
> 
>> David Gibson wrote:
>>> On Tue, Jun 03, 2008 at 09:33:12AM -0500, Kumar Gala wrote:
>>>> On Jun 3, 2008, at 5:08 AM, Wolfgang Grandegger wrote:
>>>>> Kumar Gala wrote:
>>>>>> On Jun 1, 2008, at 9:03 PM, David Gibson wrote:
>>>>>>> On Fri, May 30, 2008 at 08:49:45AM +0200, Wolfgang Grandegger wrote:
>>> [snip]
>>>>>>> You have a whole lot of 'cell-index' properties through both these
>>>>>>> trees, and they all look wrong.  cell-index is a hack, which
>>>>>>> should be
>>>>>>> avoided wherever practical - it should only be used when the index
>>>>>>> is
>>>>>>> used to offset into some global register block, never simply to
>>>>>>> differentiate (use reg for that) or name the devices (use aliases
>>>>>>> for
>>>>>>> that).
>>>>>> this is why FSL device tree's have cell-index.  We have global
>>>>>> control
>>>>>> registers that need to know such things.
>>>>> Should I remove them or not? OF is still a mystery for me :-(.
>>>> Don't remove them.
>>>
>>> Yes, they're ok, given this usage.
>>
>> I'm puzzled. Could someone point me to some real code where cell-index
>> is used as a pointer into some global data. Sorry for my ignorance.
> 
> http://ozlabs.org/pipermail/linuxppc-dev/2008-June/057254.html

Yep, I saw that it's used for I2C (and SPI). But "cell-index" is also
defined for network, serial and PCI nodes, which are also assigned via
aliases.

Wolfgang.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-06-05  6:43                 ` Wolfgang Grandegger
@ 2008-06-05  7:43                   ` Kumar Gala
  2008-06-05  7:49                     ` Wolfgang Grandegger
  2008-06-05 11:00                     ` David Gibson
  0 siblings, 2 replies; 25+ messages in thread
From: Kumar Gala @ 2008-06-05  7:43 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: Linuxppc-dev

>>>>
>>> I'm puzzled. Could someone point me to some real code where cell- 
>>> index
>>> is used as a pointer into some global data. Sorry for my ignorance.
>>
>> http://ozlabs.org/pipermail/linuxppc-dev/2008-June/057254.html
>
> Yep, I saw that it's used for I2C (and SPI). But "cell-index" is also
> defined for network, serial and PCI nodes, which are also assigned via
> aliases.

Some of this is for the future.  There are other SoC registers (like  
on 85xx in GUTS) that need index information.

- k

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-06-05  7:43                   ` Kumar Gala
@ 2008-06-05  7:49                     ` Wolfgang Grandegger
  2008-06-05 11:00                     ` David Gibson
  1 sibling, 0 replies; 25+ messages in thread
From: Wolfgang Grandegger @ 2008-06-05  7:49 UTC (permalink / raw)
  To: Kumar Gala; +Cc: Linuxppc-dev

Kumar Gala wrote:
>>>>>
>>>> I'm puzzled. Could someone point me to some real code where cell-index
>>>> is used as a pointer into some global data. Sorry for my ignorance.
>>>
>>> http://ozlabs.org/pipermail/linuxppc-dev/2008-June/057254.html
>>
>> Yep, I saw that it's used for I2C (and SPI). But "cell-index" is also
>> defined for network, serial and PCI nodes, which are also assigned via
>> aliases.
> 
> Some of this is for the future.  There are other SoC registers (like on
> 85xx in GUTS) that need index information.

Ah, OK, Thanks.

Wolfgang.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules
  2008-06-05  7:43                   ` Kumar Gala
  2008-06-05  7:49                     ` Wolfgang Grandegger
@ 2008-06-05 11:00                     ` David Gibson
  1 sibling, 0 replies; 25+ messages in thread
From: David Gibson @ 2008-06-05 11:00 UTC (permalink / raw)
  To: Kumar Gala; +Cc: Linuxppc-dev

On Thu, Jun 05, 2008 at 02:43:59AM -0500, Kumar Gala wrote:
>>>>>
>>>> I'm puzzled. Could someone point me to some real code where cell- 
>>>> index
>>>> is used as a pointer into some global data. Sorry for my ignorance.
>>>
>>> http://ozlabs.org/pipermail/linuxppc-dev/2008-June/057254.html
>>
>> Yep, I saw that it's used for I2C (and SPI). But "cell-index" is also
>> defined for network, serial and PCI nodes, which are also assigned via
>> aliases.
>
> Some of this is for the future.  There are other SoC registers (like on 
> 85xx in GUTS) that need index information.

Likewise for 4xx (where the 'cell-index' notation originated), the
index value is the number used throughout the user manual and
(thereby) in power control registers and the like.

-- 
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

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2008-06-05 11:00 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-30  6:49 [PATCH 0/4] 85xx: Add suport for TQM8548 and some TQM85xx fixes Wolfgang Grandegger
2008-05-30  6:49 ` [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules Wolfgang Grandegger
2008-05-30  6:49   ` [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash Wolfgang Grandegger
2008-05-30  6:49     ` [PATCH 3/4] [POWERPC] 85xx: add local bus nodes for Flash and CAN to tqm8560.dts Wolfgang Grandegger
2008-05-30  6:49       ` [PATCH 4/4] [POWERPC] 85xx: correct vendor prefix in DTS files for TQM85xx modules Wolfgang Grandegger
2008-05-30 12:28     ` [PATCH 2/4] [POWERPC] 85xx: support for the TQM8548 module using the big Flash Anton Vorontsov
2008-05-30 18:02       ` Wolfgang Grandegger
2008-05-30 20:01     ` Kumar Gala
2008-05-30 20:07       ` Scott Wood
2008-05-30 20:10         ` Kumar Gala
2008-05-30  7:01   ` [PATCH 1/4] [POWERPC] 85xx: add board support for the TQM8548 modules Stephen Rothwell
2008-05-30  7:12     ` Wolfgang Grandegger
2008-05-30  8:24   ` Arnd Bergmann
2008-06-02  2:03   ` David Gibson
2008-06-02  6:31     ` Wolfgang Grandegger
2008-06-02 23:13     ` Kumar Gala
2008-06-03 10:08       ` Wolfgang Grandegger
2008-06-03 14:33         ` Kumar Gala
2008-06-03 22:39           ` David Gibson
2008-06-04  9:43             ` Wolfgang Grandegger
2008-06-04 13:27               ` Kumar Gala
2008-06-05  6:43                 ` Wolfgang Grandegger
2008-06-05  7:43                   ` Kumar Gala
2008-06-05  7:49                     ` Wolfgang Grandegger
2008-06-05 11:00                     ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).