aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2008-08-14 13:13:42 -0400
committerKumar Gala <galak@kernel.crashing.org>2008-09-16 11:01:34 -0400
commit307db95882fdfba372a0639e8e238cf8c542f430 (patch)
tree1d092f52687e10b07714829c035b1b697ebaf8ae
parent7cfc4e5e7f9b5fa598aa69b5344b6fd0539f71d6 (diff)
powerpc/83xx: mpc836x_mds: add support for the nor flash
This patch adds the localbus node, moves the bcsr node into the localbus node, and adds the flash node. Also enable MTD support in the defconfig. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
-rw-r--r--arch/powerpc/boot/dts/mpc836x_mds.dts23
-rw-r--r--arch/powerpc/configs/83xx/mpc836x_mds_defconfig79
2 files changed, 98 insertions, 4 deletions
diff --git a/arch/powerpc/boot/dts/mpc836x_mds.dts b/arch/powerpc/boot/dts/mpc836x_mds.dts
index a3b76a709951..ada8446ab3c6 100644
--- a/arch/powerpc/boot/dts/mpc836x_mds.dts
+++ b/arch/powerpc/boot/dts/mpc836x_mds.dts
@@ -52,9 +52,26 @@
52 reg = <0x00000000 0x10000000>; 52 reg = <0x00000000 0x10000000>;
53 }; 53 };
54 54
55 bcsr@f8000000 { 55 localbus@e0005000 {
56 device_type = "board-control"; 56 #address-cells = <2>;
57 reg = <0xf8000000 0x8000>; 57 #size-cells = <1>;
58 compatible = "fsl,mpc8360-localbus", "fsl,pq2pro-localbus",
59 "simple-bus";
60 reg = <0xe0005000 0xd8>;
61 ranges = <0 0 0xfe000000 0x02000000
62 1 0 0xf8000000 0x00008000>;
63
64 flash@0,0 {
65 compatible = "cfi-flash";
66 reg = <0 0 0x2000000>;
67 bank-width = <2>;
68 device-width = <1>;
69 };
70
71 bcsr@1,0 {
72 device_type = "board-control";
73 reg = <1 0 0x8000>;
74 };
58 }; 75 };
59 76
60 soc8360@e0000000 { 77 soc8360@e0000000 {
diff --git a/arch/powerpc/configs/83xx/mpc836x_mds_defconfig b/arch/powerpc/configs/83xx/mpc836x_mds_defconfig
index e029e9e14622..cf2706a5f34b 100644
--- a/arch/powerpc/configs/83xx/mpc836x_mds_defconfig
+++ b/arch/powerpc/configs/83xx/mpc836x_mds_defconfig
@@ -383,7 +383,84 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y
383# CONFIG_FW_LOADER is not set 383# CONFIG_FW_LOADER is not set
384# CONFIG_SYS_HYPERVISOR is not set 384# CONFIG_SYS_HYPERVISOR is not set
385# CONFIG_CONNECTOR is not set 385# CONFIG_CONNECTOR is not set
386# CONFIG_MTD is not set 386CONFIG_MTD=y
387# CONFIG_MTD_DEBUG is not set
388# CONFIG_MTD_CONCAT is not set
389CONFIG_MTD_PARTITIONS=y
390# CONFIG_MTD_REDBOOT_PARTS is not set
391CONFIG_MTD_CMDLINE_PARTS=y
392# CONFIG_MTD_OF_PARTS is not set
393# CONFIG_MTD_AR7_PARTS is not set
394
395#
396# User Modules And Translation Layers
397#
398CONFIG_MTD_CHAR=y
399CONFIG_MTD_BLKDEVS=y
400CONFIG_MTD_BLOCK=y
401# CONFIG_FTL is not set
402# CONFIG_NFTL is not set
403# CONFIG_INFTL is not set
404# CONFIG_RFD_FTL is not set
405# CONFIG_SSFDC is not set
406# CONFIG_MTD_OOPS is not set
407
408#
409# RAM/ROM/Flash chip drivers
410#
411CONFIG_MTD_CFI=y
412# CONFIG_MTD_JEDECPROBE is not set
413CONFIG_MTD_GEN_PROBE=y
414# CONFIG_MTD_CFI_ADV_OPTIONS is not set
415CONFIG_MTD_MAP_BANK_WIDTH_1=y
416CONFIG_MTD_MAP_BANK_WIDTH_2=y
417CONFIG_MTD_MAP_BANK_WIDTH_4=y
418# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
419# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
420# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
421CONFIG_MTD_CFI_I1=y
422CONFIG_MTD_CFI_I2=y
423# CONFIG_MTD_CFI_I4 is not set
424# CONFIG_MTD_CFI_I8 is not set
425# CONFIG_MTD_CFI_INTELEXT is not set
426CONFIG_MTD_CFI_AMDSTD=y
427# CONFIG_MTD_CFI_STAA is not set
428CONFIG_MTD_CFI_UTIL=y
429# CONFIG_MTD_RAM is not set
430# CONFIG_MTD_ROM is not set
431# CONFIG_MTD_ABSENT is not set
432
433#
434# Mapping drivers for chip access
435#
436# CONFIG_MTD_COMPLEX_MAPPINGS is not set
437# CONFIG_MTD_PHYSMAP is not set
438CONFIG_MTD_PHYSMAP_OF=y
439# CONFIG_MTD_INTEL_VR_NOR is not set
440# CONFIG_MTD_PLATRAM is not set
441
442#
443# Self-contained MTD device drivers
444#
445# CONFIG_MTD_PMC551 is not set
446# CONFIG_MTD_SLRAM is not set
447# CONFIG_MTD_PHRAM is not set
448# CONFIG_MTD_MTDRAM is not set
449# CONFIG_MTD_BLOCK2MTD is not set
450
451#
452# Disk-On-Chip Device Drivers
453#
454# CONFIG_MTD_DOC2000 is not set
455# CONFIG_MTD_DOC2001 is not set
456# CONFIG_MTD_DOC2001PLUS is not set
457# CONFIG_MTD_NAND is not set
458# CONFIG_MTD_ONENAND is not set
459
460#
461# UBI - Unsorted block images
462#
463# CONFIG_MTD_UBI is not set
387CONFIG_OF_DEVICE=y 464CONFIG_OF_DEVICE=y
388CONFIG_OF_I2C=y 465CONFIG_OF_I2C=y
389# CONFIG_PARPORT is not set 466# CONFIG_PARPORT is not set