aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/85xx
diff options
context:
space:
mode:
authorWolfgang Grandegger <wg@grandegger.com>2008-06-06 07:50:04 -0400
committerKumar Gala <galak@kernel.crashing.org>2008-06-10 11:33:53 -0400
commit6dd1b64a26d9209c09488e9fa257e7744823bf29 (patch)
treeb61365a5fc59681c793abd769ca1ac78421c6c9b /arch/powerpc/platforms/85xx
parent4fb035f69e3d08506b65d33b97be1b0e78af39a2 (diff)
powerpc/85xx: add board support for the TQM8548 modules
This patch adds support for the TQM8548 modules from TQ-Components GmbH (http://www.tqc.de). Signed-off-by: Wolfgang Grandegger <wg@grandegger.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/85xx')
-rw-r--r--arch/powerpc/platforms/85xx/Kconfig8
-rw-r--r--arch/powerpc/platforms/85xx/tqm85xx.c15
2 files changed, 21 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig
index 7ff29d53dc2..91d67ee8e6d 100644
--- a/arch/powerpc/platforms/85xx/Kconfig
+++ b/arch/powerpc/platforms/85xx/Kconfig
@@ -74,6 +74,14 @@ config TQM8541
74 select TQM85xx 74 select TQM85xx
75 select CPM2 75 select CPM2
76 76
77config TQM8548
78 bool "TQ Components TQM8548"
79 help
80 This option enables support for the TQ Components TQM8548 board.
81 select DEFAULT_UIMAGE
82 select PPC_CPM_NEW_BINDING
83 select TQM85xx
84
77config TQM8555 85config TQM8555
78 bool "TQ Components TQM8555" 86 bool "TQ Components TQM8555"
79 help 87 help
diff --git a/arch/powerpc/platforms/85xx/tqm85xx.c b/arch/powerpc/platforms/85xx/tqm85xx.c
index a682cbcdfb9..d850880d696 100644
--- a/arch/powerpc/platforms/85xx/tqm85xx.c
+++ b/arch/powerpc/platforms/85xx/tqm85xx.c
@@ -120,8 +120,18 @@ static void __init tqm85xx_setup_arch(void)
120#endif 120#endif
121 121
122#ifdef CONFIG_PCI 122#ifdef CONFIG_PCI
123 for_each_compatible_node(np, "pci", "fsl,mpc8540-pci") 123 for_each_node_by_type(np, "pci") {
124 fsl_add_bridge(np, 1); 124 if (of_device_is_compatible(np, "fsl,mpc8540-pci") ||
125 of_device_is_compatible(np, "fsl,mpc8548-pcie")) {
126 struct resource rsrc;
127 if (!of_address_to_resource(np, 0, &rsrc)) {
128 if ((rsrc.start & 0xfffff) == 0x8000)
129 fsl_add_bridge(np, 1);
130 else
131 fsl_add_bridge(np, 0);
132 }
133 }
134 }
125#endif 135#endif
126} 136}
127 137
@@ -167,6 +177,7 @@ static int __init tqm85xx_probe(void)
167 177
168 if ((of_flat_dt_is_compatible(root, "tqc,tqm8540")) || 178 if ((of_flat_dt_is_compatible(root, "tqc,tqm8540")) ||
169 (of_flat_dt_is_compatible(root, "tqc,tqm8541")) || 179 (of_flat_dt_is_compatible(root, "tqc,tqm8541")) ||
180 (of_flat_dt_is_compatible(root, "tqc,tqm8548")) ||
170 (of_flat_dt_is_compatible(root, "tqc,tqm8555")) || 181 (of_flat_dt_is_compatible(root, "tqc,tqm8555")) ||
171 (of_flat_dt_is_compatible(root, "tqc,tqm8560"))) 182 (of_flat_dt_is_compatible(root, "tqc,tqm8560")))
172 return 1; 183 return 1;