aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2007-12-04 14:45:31 -0500
committerKumar Gala <galak@kernel.crashing.org>2008-01-23 20:33:08 -0500
commit9b6d19dd1d87fcca43ebadfad2f50cee07fbef5e (patch)
tree982239e8ded170b4cc72107c00df5d2e4e0e3f5a /arch/powerpc
parent866b6ddd283ac453d4208831119d2b8272cda832 (diff)
[POWERPC] MPC8349E-mITX: introduce localbus and pata nodes
This patch adds localbus and pata nodes to use CF IDE interface on MPC8349E-mITX boards. Patch also adds code to probe localbus. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/boot/dts/mpc8349emitx.dts17
-rw-r--r--arch/powerpc/configs/mpc834x_itx_defconfig3
-rw-r--r--arch/powerpc/platforms/83xx/mpc834x_itx.c12
3 files changed, 30 insertions, 2 deletions
diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts b/arch/powerpc/boot/dts/mpc8349emitx.dts
index a4a9fafe217a..a14399b61fa9 100644
--- a/arch/powerpc/boot/dts/mpc8349emitx.dts
+++ b/arch/powerpc/boot/dts/mpc8349emitx.dts
@@ -251,6 +251,21 @@
251 device_type = "pci"; 251 device_type = "pci";
252 }; 252 };
253 253
254 localbus@e0005000 {
255 #address-cells = <2>;
256 #size-cells = <1>;
257 compatible = "fsl,mpc8349e-localbus",
258 "fsl,pq2pro-localbus";
259 reg = <e0005000 d8>;
260 ranges = <3 0 f0000000 210>;
254 261
255 262 pata@3,0 {
263 compatible = "fsl,mpc8349emitx-pata", "ata-generic";
264 reg = <3 0 10 3 20c 4>;
265 reg-shift = <1>;
266 pio-mode = <6>;
267 interrupts = <17 8>;
268 interrupt-parent = <&ipic>;
269 };
270 };
256}; 271};
diff --git a/arch/powerpc/configs/mpc834x_itx_defconfig b/arch/powerpc/configs/mpc834x_itx_defconfig
index 6feb86e2b786..2fbe4e5344f7 100644
--- a/arch/powerpc/configs/mpc834x_itx_defconfig
+++ b/arch/powerpc/configs/mpc834x_itx_defconfig
@@ -570,7 +570,8 @@ CONFIG_SATA_SIL=y
570# CONFIG_PATA_SIS is not set 570# CONFIG_PATA_SIS is not set
571# CONFIG_PATA_VIA is not set 571# CONFIG_PATA_VIA is not set
572# CONFIG_PATA_WINBOND is not set 572# CONFIG_PATA_WINBOND is not set
573# CONFIG_PATA_PLATFORM is not set 573CONFIG_PATA_PLATFORM=y
574CONFIG_PATA_OF_PLATFORM=y
574CONFIG_MD=y 575CONFIG_MD=y
575CONFIG_BLK_DEV_MD=y 576CONFIG_BLK_DEV_MD=y
576CONFIG_MD_LINEAR=y 577CONFIG_MD_LINEAR=y
diff --git a/arch/powerpc/platforms/83xx/mpc834x_itx.c b/arch/powerpc/platforms/83xx/mpc834x_itx.c
index aa768199432d..50e8f632061c 100644
--- a/arch/powerpc/platforms/83xx/mpc834x_itx.c
+++ b/arch/powerpc/platforms/83xx/mpc834x_itx.c
@@ -23,6 +23,7 @@
23#include <linux/delay.h> 23#include <linux/delay.h>
24#include <linux/seq_file.h> 24#include <linux/seq_file.h>
25#include <linux/root_dev.h> 25#include <linux/root_dev.h>
26#include <linux/of_platform.h>
26 27
27#include <asm/system.h> 28#include <asm/system.h>
28#include <asm/atomic.h> 29#include <asm/atomic.h>
@@ -37,6 +38,17 @@
37 38
38#include "mpc83xx.h" 39#include "mpc83xx.h"
39 40
41static struct of_device_id __initdata mpc834x_itx_ids[] = {
42 { .compatible = "fsl,pq2pro-localbus", },
43 {},
44};
45
46static int __init mpc834x_itx_declare_of_platform_devices(void)
47{
48 return of_platform_bus_probe(NULL, mpc834x_itx_ids, NULL);
49}
50machine_device_initcall(mpc834x_itx, mpc834x_itx_declare_of_platform_devices);
51
40/* ************************************************************************ 52/* ************************************************************************
41 * 53 *
42 * Setup the architecture 54 * Setup the architecture