Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Anton Vorontsov and committed by
Kumar Gala
9b6d19dd 866b6ddd

+30 -2
+16 -1
arch/powerpc/boot/dts/mpc8349emitx.dts
··· 251 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 };
+2 -1
arch/powerpc/configs/mpc834x_itx_defconfig
··· 570 570 # CONFIG_PATA_SIS is not set 571 571 # CONFIG_PATA_VIA is not set 572 572 # CONFIG_PATA_WINBOND is not set 573 - # CONFIG_PATA_PLATFORM is not set 573 + CONFIG_PATA_PLATFORM=y 574 + CONFIG_PATA_OF_PLATFORM=y 574 575 CONFIG_MD=y 575 576 CONFIG_BLK_DEV_MD=y 576 577 CONFIG_MD_LINEAR=y
+12
arch/powerpc/platforms/83xx/mpc834x_itx.c
··· 23 23 #include <linux/delay.h> 24 24 #include <linux/seq_file.h> 25 25 #include <linux/root_dev.h> 26 + #include <linux/of_platform.h> 26 27 27 28 #include <asm/system.h> 28 29 #include <asm/atomic.h> ··· 37 36 #include <sysdev/fsl_soc.h> 38 37 39 38 #include "mpc83xx.h" 39 + 40 + static struct of_device_id __initdata mpc834x_itx_ids[] = { 41 + { .compatible = "fsl,pq2pro-localbus", }, 42 + {}, 43 + }; 44 + 45 + static int __init mpc834x_itx_declare_of_platform_devices(void) 46 + { 47 + return of_platform_bus_probe(NULL, mpc834x_itx_ids, NULL); 48 + } 49 + machine_device_initcall(mpc834x_itx, mpc834x_itx_declare_of_platform_devices); 40 50 41 51 /* ************************************************************************ 42 52 *