diff options
author | Martyn Welch <martyn.welch@gefanuc.com> | 2010-01-11 07:23:31 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2010-02-17 22:48:05 -0500 |
commit | ae1f7553b9c9ac3762dc91ecb92574bb9fac0b1e (patch) | |
tree | 3236393a1a86242354a33348969169a2326fbb86 /arch | |
parent | 6459ba984a57e90326b3eaf7a35cc2f3fffe26a0 (diff) |
powerpc/86xx: Basic flash support for GE SBC610
Support for the SBC610 VPX Single Board Computer from GE (PowerPC MPC8641D).
This patch adds basic support for the on-board flash.
Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/boot/dts/gef_sbc610.dts | 50 | ||||
-rw-r--r-- | arch/powerpc/configs/86xx/gef_sbc610_defconfig | 23 |
2 files changed, 56 insertions, 17 deletions
diff --git a/arch/powerpc/boot/dts/gef_sbc610.dts b/arch/powerpc/boot/dts/gef_sbc610.dts index 78c336f0fcb8..bb7060078fb4 100644 --- a/arch/powerpc/boot/dts/gef_sbc610.dts +++ b/arch/powerpc/boot/dts/gef_sbc610.dts | |||
@@ -75,14 +75,48 @@ | |||
75 | interrupts = <19 2>; | 75 | interrupts = <19 2>; |
76 | interrupt-parent = <&mpic>; | 76 | interrupt-parent = <&mpic>; |
77 | 77 | ||
78 | ranges = <0 0 0xff000000 0x01000000 // 16MB Boot flash | 78 | ranges = <0 0 0xff000000 0x01000000 // 16MB Boot flash |
79 | 1 0 0xe8000000 0x08000000 // Paged Flash 0 | 79 | 1 0 0xe8000000 0x08000000 // Paged Flash 0 |
80 | 2 0 0xe0000000 0x08000000 // Paged Flash 1 | 80 | 2 0 0xe0000000 0x08000000 // Paged Flash 1 |
81 | 3 0 0xfc100000 0x00020000 // NVRAM | 81 | 3 0 0xfc100000 0x00020000 // NVRAM |
82 | 4 0 0xfc000000 0x00008000 // FPGA | 82 | 4 0 0xfc000000 0x00008000 // FPGA |
83 | 5 0 0xfc008000 0x00008000 // AFIX FPGA | 83 | 5 0 0xfc008000 0x00008000 // AFIX FPGA |
84 | 6 0 0xfd000000 0x00800000 // IO FPGA (8-bit) | 84 | 6 0 0xfd000000 0x00800000 // IO FPGA (8-bit) |
85 | 7 0 0xfd800000 0x00800000>; // IO FPGA (32-bit) | 85 | 7 0 0xfd800000 0x00800000>; // IO FPGA (32-bit) |
86 | |||
87 | /* flash@0,0 is a mirror of part of the memory in flash@1,0 | ||
88 | flash@0,0 { | ||
89 | compatible = "gef,sbc610-firmware-mirror", "cfi-flash"; | ||
90 | reg = <0x0 0x0 0x1000000>; | ||
91 | bank-width = <4>; | ||
92 | device-width = <2>; | ||
93 | #address-cells = <1>; | ||
94 | #size-cells = <1>; | ||
95 | partition@0 { | ||
96 | label = "firmware"; | ||
97 | reg = <0x0 0x1000000>; | ||
98 | read-only; | ||
99 | }; | ||
100 | }; | ||
101 | */ | ||
102 | |||
103 | flash@1,0 { | ||
104 | compatible = "gef,sbc610-paged-flash", "cfi-flash"; | ||
105 | reg = <0x1 0x0 0x8000000>; | ||
106 | bank-width = <4>; | ||
107 | device-width = <2>; | ||
108 | #address-cells = <1>; | ||
109 | #size-cells = <1>; | ||
110 | partition@0 { | ||
111 | label = "user"; | ||
112 | reg = <0x0 0x7800000>; | ||
113 | }; | ||
114 | partition@7800000 { | ||
115 | label = "firmware"; | ||
116 | reg = <0x7800000 0x800000>; | ||
117 | read-only; | ||
118 | }; | ||
119 | }; | ||
86 | 120 | ||
87 | nvram@3,0 { | 121 | nvram@3,0 { |
88 | device_type = "nvram"; | 122 | device_type = "nvram"; |
diff --git a/arch/powerpc/configs/86xx/gef_sbc610_defconfig b/arch/powerpc/configs/86xx/gef_sbc610_defconfig index 4554d9bb03e5..8d54b7e3e7fa 100644 --- a/arch/powerpc/configs/86xx/gef_sbc610_defconfig +++ b/arch/powerpc/configs/86xx/gef_sbc610_defconfig | |||
@@ -651,7 +651,7 @@ CONFIG_MTD_CONCAT=y | |||
651 | CONFIG_MTD_PARTITIONS=y | 651 | CONFIG_MTD_PARTITIONS=y |
652 | # CONFIG_MTD_REDBOOT_PARTS is not set | 652 | # CONFIG_MTD_REDBOOT_PARTS is not set |
653 | # CONFIG_MTD_CMDLINE_PARTS is not set | 653 | # CONFIG_MTD_CMDLINE_PARTS is not set |
654 | # CONFIG_MTD_OF_PARTS is not set | 654 | CONFIG_MTD_OF_PARTS=y |
655 | # CONFIG_MTD_AR7_PARTS is not set | 655 | # CONFIG_MTD_AR7_PARTS is not set |
656 | 656 | ||
657 | # | 657 | # |
@@ -671,13 +671,9 @@ CONFIG_MTD_BLOCK=y | |||
671 | # RAM/ROM/Flash chip drivers | 671 | # RAM/ROM/Flash chip drivers |
672 | # | 672 | # |
673 | CONFIG_MTD_CFI=y | 673 | CONFIG_MTD_CFI=y |
674 | # CONFIG_MTD_JEDECPROBE is not set | 674 | CONFIG_MTD_JEDECPROBE=y |
675 | CONFIG_MTD_GEN_PROBE=y | 675 | CONFIG_MTD_GEN_PROBE=y |
676 | CONFIG_MTD_CFI_ADV_OPTIONS=y | 676 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set |
677 | # CONFIG_MTD_CFI_NOSWAP is not set | ||
678 | # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set | ||
679 | CONFIG_MTD_CFI_LE_BYTE_SWAP=y | ||
680 | # CONFIG_MTD_CFI_GEOMETRY is not set | ||
681 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | 677 | CONFIG_MTD_MAP_BANK_WIDTH_1=y |
682 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | 678 | CONFIG_MTD_MAP_BANK_WIDTH_2=y |
683 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | 679 | CONFIG_MTD_MAP_BANK_WIDTH_4=y |
@@ -688,7 +684,6 @@ CONFIG_MTD_CFI_I1=y | |||
688 | CONFIG_MTD_CFI_I2=y | 684 | CONFIG_MTD_CFI_I2=y |
689 | # CONFIG_MTD_CFI_I4 is not set | 685 | # CONFIG_MTD_CFI_I4 is not set |
690 | # CONFIG_MTD_CFI_I8 is not set | 686 | # CONFIG_MTD_CFI_I8 is not set |
691 | # CONFIG_MTD_OTP is not set | ||
692 | CONFIG_MTD_CFI_INTELEXT=y | 687 | CONFIG_MTD_CFI_INTELEXT=y |
693 | CONFIG_MTD_CFI_AMDSTD=y | 688 | CONFIG_MTD_CFI_AMDSTD=y |
694 | # CONFIG_MTD_CFI_STAA is not set | 689 | # CONFIG_MTD_CFI_STAA is not set |
@@ -1729,7 +1724,17 @@ CONFIG_MISC_FILESYSTEMS=y | |||
1729 | # CONFIG_BEFS_FS is not set | 1724 | # CONFIG_BEFS_FS is not set |
1730 | # CONFIG_BFS_FS is not set | 1725 | # CONFIG_BFS_FS is not set |
1731 | # CONFIG_EFS_FS is not set | 1726 | # CONFIG_EFS_FS is not set |
1732 | # CONFIG_JFFS2_FS is not set | 1727 | CONFIG_JFFS2_FS=y |
1728 | CONFIG_JFFS2_FS_DEBUG=0 | ||
1729 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
1730 | # CONFIG_JFFS2_FS_WBUF_VERIFY is not set | ||
1731 | # CONFIG_JFFS2_SUMMARY is not set | ||
1732 | # CONFIG_JFFS2_FS_XATTR is not set | ||
1733 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
1734 | CONFIG_JFFS2_ZLIB=y | ||
1735 | # CONFIG_JFFS2_LZO is not set | ||
1736 | CONFIG_JFFS2_RTIME=y | ||
1737 | # CONFIG_JFFS2_RUBIN is not set | ||
1733 | # CONFIG_CRAMFS is not set | 1738 | # CONFIG_CRAMFS is not set |
1734 | # CONFIG_SQUASHFS is not set | 1739 | # CONFIG_SQUASHFS is not set |
1735 | # CONFIG_VXFS_FS is not set | 1740 | # CONFIG_VXFS_FS is not set |