* [PATCH] MTD support for the AMCC Taishan
@ 2008-02-03 10:41 Imre Kaloz
2008-02-07 10:29 ` Imre Kaloz
2008-02-08 14:27 ` Stefan Roese
0 siblings, 2 replies; 15+ messages in thread
From: Imre Kaloz @ 2008-02-03 10:41 UTC (permalink / raw)
To: linuxppc-dev
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
---
arch/powerpc/boot/dts/taishan.dts | 33 +++++++++++-
arch/powerpc/configs/taishan_defconfig | 89 ++++++++++++++++++++++++++++++--
2 files changed, 116 insertions(+), 6 deletions(-)
diff --git a/arch/powerpc/boot/dts/taishan.dts b/arch/powerpc/boot/dts/taishan.dts
index 0706a4a..28c14dd 100644
--- a/arch/powerpc/boot/dts/taishan.dts
+++ b/arch/powerpc/boot/dts/taishan.dts
@@ -174,7 +174,38 @@
interrupts = <5 4>;
interrupt-parent = <&UIC1>;
- /* TODO: Add other EBC devices */
+ nor_flash@0,0 {
+ compatible = "cfi-flash";
+ bank-width = <4>;
+ device-width = <2>;
+ reg = <0 000000 4000000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ partition@0 {
+ label = "kernel";
+ reg = <0 180000>;
+ };
+ partition@180000 {
+ label = "root";
+ reg = <180000 200000>;
+ };
+ partition@380000 {
+ label = "user";
+ reg = <380000 3a80000>;
+ };
+ partition@3e00000 {
+ label = "kozio";
+ reg = <3e00000 140000>;
+ };
+ partition@3f40000 {
+ label = "env";
+ reg = <3f40000 80000>;
+ };
+ partition@3fc0000 {
+ label = "u-boot";
+ reg = <3fc0000 40000>;
+ };
+ };
};
diff --git a/arch/powerpc/configs/taishan_defconfig b/arch/powerpc/configs/taishan_defconfig
index ade84b9..4d17a5d 100644
--- a/arch/powerpc/configs/taishan_defconfig
+++ b/arch/powerpc/configs/taishan_defconfig
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
-# Linux kernel version: 2.6.24-rc6
-# Mon Dec 24 11:23:39 2007
+# Linux kernel version: 2.6.24
+# Sun Feb 3 00:40:49 2008
#
# CONFIG_PPC64 is not set
@@ -103,6 +103,7 @@ CONFIG_SLUB_DEBUG=y
# CONFIG_SLAB is not set
CONFIG_SLUB=y
# CONFIG_SLOB is not set
+CONFIG_SLABINFO=y
CONFIG_RT_MUTEXES=y
# CONFIG_TINY_SHMEM is not set
CONFIG_BASE_SMALL=0
@@ -146,7 +147,9 @@ CONFIG_DEFAULT_IOSCHED="anticipatory"
CONFIG_TAISHAN=y
# CONFIG_KATMAI is not set
# CONFIG_RAINIER is not set
+# CONFIG_WARP is not set
CONFIG_440GX=y
+# CONFIG_IPIC is not set
# CONFIG_MPIC is not set
# CONFIG_MPIC_WEIRD is not set
# CONFIG_PPC_I8259 is not set
@@ -330,7 +333,83 @@ CONFIG_FW_LOADER=y
# CONFIG_SYS_HYPERVISOR is not set
CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y
-# CONFIG_MTD is not set
+CONFIG_MTD=y
+# CONFIG_MTD_DEBUG is not set
+# CONFIG_MTD_CONCAT is not set
+CONFIG_MTD_PARTITIONS=y
+# CONFIG_MTD_REDBOOT_PARTS is not set
+CONFIG_MTD_CMDLINE_PARTS=y
+
+#
+# User Modules And Translation Layers
+#
+CONFIG_MTD_CHAR=y
+# CONFIG_MTD_BLKDEVS is not set
+# CONFIG_MTD_BLOCK is not set
+# CONFIG_MTD_BLOCK_RO is not set
+# CONFIG_FTL is not set
+# CONFIG_NFTL is not set
+# CONFIG_INFTL is not set
+# CONFIG_RFD_FTL is not set
+# CONFIG_SSFDC is not set
+# CONFIG_MTD_OOPS is not set
+
+#
+# RAM/ROM/Flash chip drivers
+#
+CONFIG_MTD_CFI=y
+# CONFIG_MTD_JEDECPROBE is not set
+CONFIG_MTD_GEN_PROBE=y
+# CONFIG_MTD_CFI_ADV_OPTIONS is not set
+CONFIG_MTD_MAP_BANK_WIDTH_1=y
+CONFIG_MTD_MAP_BANK_WIDTH_2=y
+CONFIG_MTD_MAP_BANK_WIDTH_4=y
+# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
+# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
+# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
+CONFIG_MTD_CFI_I1=y
+CONFIG_MTD_CFI_I2=y
+# CONFIG_MTD_CFI_I4 is not set
+# CONFIG_MTD_CFI_I8 is not set
+# CONFIG_MTD_CFI_INTELEXT is not set
+CONFIG_MTD_CFI_AMDSTD=y
+# CONFIG_MTD_CFI_STAA is not set
+CONFIG_MTD_CFI_UTIL=y
+# CONFIG_MTD_RAM is not set
+# CONFIG_MTD_ROM is not set
+# CONFIG_MTD_ABSENT is not set
+
+#
+# Mapping drivers for chip access
+#
+# CONFIG_MTD_COMPLEX_MAPPINGS is not set
+# CONFIG_MTD_PHYSMAP is not set
+CONFIG_MTD_PHYSMAP_OF=y
+# CONFIG_MTD_INTEL_VR_NOR is not set
+# CONFIG_MTD_PLATRAM is not set
+
+#
+# Self-contained MTD device drivers
+#
+# CONFIG_MTD_PMC551 is not set
+# CONFIG_MTD_SLRAM is not set
+# CONFIG_MTD_PHRAM is not set
+# CONFIG_MTD_MTDRAM is not set
+# CONFIG_MTD_BLOCK2MTD is not set
+
+#
+# Disk-On-Chip Device Drivers
+#
+# CONFIG_MTD_DOC2000 is not set
+# CONFIG_MTD_DOC2001 is not set
+# CONFIG_MTD_DOC2001PLUS is not set
+# CONFIG_MTD_NAND is not set
+# CONFIG_MTD_ONENAND is not set
+
+#
+# UBI - Unsorted block images
+#
+# CONFIG_MTD_UBI is not set
CONFIG_OF_DEVICE=y
# CONFIG_PARPORT is not set
CONFIG_BLK_DEV=y
@@ -385,7 +464,6 @@ CONFIG_NETDEVICES=y
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set
# CONFIG_VETH is not set
-# CONFIG_IP1000 is not set
# CONFIG_ARCNET is not set
# CONFIG_PHYLIB is not set
CONFIG_NET_ETHERNET=y
@@ -414,6 +492,7 @@ CONFIG_NETDEV_1000=y
# CONFIG_DL2K is not set
# CONFIG_E1000 is not set
# CONFIG_E1000E is not set
+# CONFIG_IP1000 is not set
# CONFIG_NS83820 is not set
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
@@ -641,6 +720,7 @@ CONFIG_TMPFS=y
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
+# CONFIG_JFFS2_FS is not set
CONFIG_CRAMFS=y
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
@@ -675,7 +755,6 @@ CONFIG_SUNRPC=y
CONFIG_MSDOS_PARTITION=y
# CONFIG_NLS is not set
# CONFIG_DLM is not set
-# CONFIG_UCC_SLOW is not set
#
# Library routines
--
1.5.2.5
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH] MTD support for the AMCC Taishan
2008-02-03 10:41 [PATCH] MTD support for the AMCC Taishan Imre Kaloz
@ 2008-02-07 10:29 ` Imre Kaloz
2008-02-07 12:00 ` Josh Boyer
2008-02-08 14:27 ` Stefan Roese
1 sibling, 1 reply; 15+ messages in thread
From: Imre Kaloz @ 2008-02-07 10:29 UTC (permalink / raw)
To: linuxppc-dev
*bump*? :) If anything is wrong with it, please let me know.
Imre
On Sun, 03 Feb 2008 11:41:44 +0100, Imre Kaloz <kaloz@openwrt.org> wrote=
:
> Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
> ---
> arch/powerpc/boot/dts/taishan.dts | 33 +++++++++++-
> arch/powerpc/configs/taishan_defconfig | 89 =
> ++++++++++++++++++++++++++++++--
> 2 files changed, 116 insertions(+), 6 deletions(-)
>
> diff --git a/arch/powerpc/boot/dts/taishan.dts =
> b/arch/powerpc/boot/dts/taishan.dts
> index 0706a4a..28c14dd 100644
> --- a/arch/powerpc/boot/dts/taishan.dts
> +++ b/arch/powerpc/boot/dts/taishan.dts
> @@ -174,7 +174,38 @@
> interrupts =3D <5 4>;
> interrupt-parent =3D <&UIC1>;
> - /* TODO: Add other EBC devices */
> + nor_flash@0,0 {
> + compatible =3D "cfi-flash";
> + bank-width =3D <4>;
> + device-width =3D <2>;
> + reg =3D <0 000000 4000000>;
> + #address-cells =3D <1>;
> + #size-cells =3D <1>;
> + partition@0 {
> + label =3D "kernel";
> + reg =3D <0 180000>;
> + };
> + partition@180000 {
> + label =3D "root";
> + reg =3D <180000 200000>;
> + };
> + partition@380000 {
> + label =3D "user";
> + reg =3D <380000 3a80000>;
> + };
> + partition@3e00000 {
> + label =3D "kozio";
> + reg =3D <3e00000 140000>;
> + };
> + partition@3f40000 {
> + label =3D "env";
> + reg =3D <3f40000 80000>;
> + };
> + partition@3fc0000 {
> + label =3D "u-boot";
> + reg =3D <3fc0000 40000>;
> + };
> + };
> };
> diff --git a/arch/powerpc/configs/taishan_defconfig =
> b/arch/powerpc/configs/taishan_defconfig
> index ade84b9..4d17a5d 100644
> --- a/arch/powerpc/configs/taishan_defconfig
> +++ b/arch/powerpc/configs/taishan_defconfig
> @@ -1,7 +1,7 @@
> #
> # Automatically generated make config: don't edit
> -# Linux kernel version: 2.6.24-rc6
> -# Mon Dec 24 11:23:39 2007
> +# Linux kernel version: 2.6.24
> +# Sun Feb 3 00:40:49 2008
> #
> # CONFIG_PPC64 is not set
> @@ -103,6 +103,7 @@ CONFIG_SLUB_DEBUG=3Dy
> # CONFIG_SLAB is not set
> CONFIG_SLUB=3Dy
> # CONFIG_SLOB is not set
> +CONFIG_SLABINFO=3Dy
> CONFIG_RT_MUTEXES=3Dy
> # CONFIG_TINY_SHMEM is not set
> CONFIG_BASE_SMALL=3D0
> @@ -146,7 +147,9 @@ CONFIG_DEFAULT_IOSCHED=3D"anticipatory"
> CONFIG_TAISHAN=3Dy
> # CONFIG_KATMAI is not set
> # CONFIG_RAINIER is not set
> +# CONFIG_WARP is not set
> CONFIG_440GX=3Dy
> +# CONFIG_IPIC is not set
> # CONFIG_MPIC is not set
> # CONFIG_MPIC_WEIRD is not set
> # CONFIG_PPC_I8259 is not set
> @@ -330,7 +333,83 @@ CONFIG_FW_LOADER=3Dy
> # CONFIG_SYS_HYPERVISOR is not set
> CONFIG_CONNECTOR=3Dy
> CONFIG_PROC_EVENTS=3Dy
> -# CONFIG_MTD is not set
> +CONFIG_MTD=3Dy
> +# CONFIG_MTD_DEBUG is not set
> +# CONFIG_MTD_CONCAT is not set
> +CONFIG_MTD_PARTITIONS=3Dy
> +# CONFIG_MTD_REDBOOT_PARTS is not set
> +CONFIG_MTD_CMDLINE_PARTS=3Dy
> +
> +#
> +# User Modules And Translation Layers
> +#
> +CONFIG_MTD_CHAR=3Dy
> +# CONFIG_MTD_BLKDEVS is not set
> +# CONFIG_MTD_BLOCK is not set
> +# CONFIG_MTD_BLOCK_RO is not set
> +# CONFIG_FTL is not set
> +# CONFIG_NFTL is not set
> +# CONFIG_INFTL is not set
> +# CONFIG_RFD_FTL is not set
> +# CONFIG_SSFDC is not set
> +# CONFIG_MTD_OOPS is not set
> +
> +#
> +# RAM/ROM/Flash chip drivers
> +#
> +CONFIG_MTD_CFI=3Dy
> +# CONFIG_MTD_JEDECPROBE is not set
> +CONFIG_MTD_GEN_PROBE=3Dy
> +# CONFIG_MTD_CFI_ADV_OPTIONS is not set
> +CONFIG_MTD_MAP_BANK_WIDTH_1=3Dy
> +CONFIG_MTD_MAP_BANK_WIDTH_2=3Dy
> +CONFIG_MTD_MAP_BANK_WIDTH_4=3Dy
> +# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
> +# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
> +# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
> +CONFIG_MTD_CFI_I1=3Dy
> +CONFIG_MTD_CFI_I2=3Dy
> +# CONFIG_MTD_CFI_I4 is not set
> +# CONFIG_MTD_CFI_I8 is not set
> +# CONFIG_MTD_CFI_INTELEXT is not set
> +CONFIG_MTD_CFI_AMDSTD=3Dy
> +# CONFIG_MTD_CFI_STAA is not set
> +CONFIG_MTD_CFI_UTIL=3Dy
> +# CONFIG_MTD_RAM is not set
> +# CONFIG_MTD_ROM is not set
> +# CONFIG_MTD_ABSENT is not set
> +
> +#
> +# Mapping drivers for chip access
> +#
> +# CONFIG_MTD_COMPLEX_MAPPINGS is not set
> +# CONFIG_MTD_PHYSMAP is not set
> +CONFIG_MTD_PHYSMAP_OF=3Dy
> +# CONFIG_MTD_INTEL_VR_NOR is not set
> +# CONFIG_MTD_PLATRAM is not set
> +
> +#
> +# Self-contained MTD device drivers
> +#
> +# CONFIG_MTD_PMC551 is not set
> +# CONFIG_MTD_SLRAM is not set
> +# CONFIG_MTD_PHRAM is not set
> +# CONFIG_MTD_MTDRAM is not set
> +# CONFIG_MTD_BLOCK2MTD is not set
> +
> +#
> +# Disk-On-Chip Device Drivers
> +#
> +# CONFIG_MTD_DOC2000 is not set
> +# CONFIG_MTD_DOC2001 is not set
> +# CONFIG_MTD_DOC2001PLUS is not set
> +# CONFIG_MTD_NAND is not set
> +# CONFIG_MTD_ONENAND is not set
> +
> +#
> +# UBI - Unsorted block images
> +#
> +# CONFIG_MTD_UBI is not set
> CONFIG_OF_DEVICE=3Dy
> # CONFIG_PARPORT is not set
> CONFIG_BLK_DEV=3Dy
> @@ -385,7 +464,6 @@ CONFIG_NETDEVICES=3Dy
> # CONFIG_EQUALIZER is not set
> # CONFIG_TUN is not set
> # CONFIG_VETH is not set
> -# CONFIG_IP1000 is not set
> # CONFIG_ARCNET is not set
> # CONFIG_PHYLIB is not set
> CONFIG_NET_ETHERNET=3Dy
> @@ -414,6 +492,7 @@ CONFIG_NETDEV_1000=3Dy
> # CONFIG_DL2K is not set
> # CONFIG_E1000 is not set
> # CONFIG_E1000E is not set
> +# CONFIG_IP1000 is not set
> # CONFIG_NS83820 is not set
> # CONFIG_HAMACHI is not set
> # CONFIG_YELLOWFIN is not set
> @@ -641,6 +720,7 @@ CONFIG_TMPFS=3Dy
> # CONFIG_BEFS_FS is not set
> # CONFIG_BFS_FS is not set
> # CONFIG_EFS_FS is not set
> +# CONFIG_JFFS2_FS is not set
> CONFIG_CRAMFS=3Dy
> # CONFIG_VXFS_FS is not set
> # CONFIG_HPFS_FS is not set
> @@ -675,7 +755,6 @@ CONFIG_SUNRPC=3Dy
> CONFIG_MSDOS_PARTITION=3Dy
> # CONFIG_NLS is not set
> # CONFIG_DLM is not set
> -# CONFIG_UCC_SLOW is not set
> #
> # Library routines
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] MTD support for the AMCC Taishan
2008-02-07 10:29 ` Imre Kaloz
@ 2008-02-07 12:00 ` Josh Boyer
2008-02-07 13:46 ` Valentine Barshak
0 siblings, 1 reply; 15+ messages in thread
From: Josh Boyer @ 2008-02-07 12:00 UTC (permalink / raw)
To: Imre Kaloz; +Cc: linuxppc-dev
On Thu, 07 Feb 2008 11:29:55 +0100
"Imre Kaloz" <kaloz@openwrt.org> wrote:
> *bump*? :) If anything is wrong with it, please let me know.
Nothing wrong that I could see. I just need to test it first.
josh
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] MTD support for the AMCC Taishan
2008-02-07 12:00 ` Josh Boyer
@ 2008-02-07 13:46 ` Valentine Barshak
2008-02-07 13:54 ` Imre Kaloz
0 siblings, 1 reply; 15+ messages in thread
From: Valentine Barshak @ 2008-02-07 13:46 UTC (permalink / raw)
To: Josh Boyer; +Cc: linuxppc-dev
Josh Boyer wrote:
> On Thu, 07 Feb 2008 11:29:55 +0100
> "Imre Kaloz" <kaloz@openwrt.org> wrote:
>
>> *bump*? :) If anything is wrong with it, please let me know.
The arch/ppc had a bit different partition table.
Something like this:
mtd0: 00180000 00040000 "kernel"
mtd1: 00200000 00040000 "root"
mtd2: 03bc0000 00040000 "user"
mtd3: 00080000 00040000 "env"
mtd4: 00040000 00040000 "u-boot"
Thanks,
Valentine.
>
> Nothing wrong that I could see. I just need to test it first.
>
> josh
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] MTD support for the AMCC Taishan
2008-02-07 13:46 ` Valentine Barshak
@ 2008-02-07 13:54 ` Imre Kaloz
2008-02-07 14:05 ` Valentine Barshak
0 siblings, 1 reply; 15+ messages in thread
From: Imre Kaloz @ 2008-02-07 13:54 UTC (permalink / raw)
To: Valentine Barshak, Josh Boyer; +Cc: linuxppc-dev
Well, arch/ppc calculates the mtd2 dynamically and doesn't create
a separate partition for kozio.
I've based this on how it's currently done for the Sequoia, too.
Imre
On Thu, 07 Feb 2008 14:46:43 +0100, Valentine Barshak
<vbarshak@ru.mvista.com> wrote:
> Josh Boyer wrote:
>> On Thu, 07 Feb 2008 11:29:55 +0100
>> "Imre Kaloz" <kaloz@openwrt.org> wrote:
>>
>>> *bump*? :) If anything is wrong with it, please let me know.
>
> The arch/ppc had a bit different partition table.
> Something like this:
> mtd0: 00180000 00040000 "kernel"
> mtd1: 00200000 00040000 "root"
> mtd2: 03bc0000 00040000 "user"
> mtd3: 00080000 00040000 "env"
> mtd4: 00040000 00040000 "u-boot"
>
> Thanks,
> Valentine.
>
>> Nothing wrong that I could see. I just need to test it first.
>> josh
>> _______________________________________________
>> Linuxppc-dev mailing list
>> Linuxppc-dev@ozlabs.org
>> https://ozlabs.org/mailman/listinfo/linuxppc-dev
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] MTD support for the AMCC Taishan
2008-02-07 13:54 ` Imre Kaloz
@ 2008-02-07 14:05 ` Valentine Barshak
2008-02-07 14:35 ` Imre Kaloz
0 siblings, 1 reply; 15+ messages in thread
From: Valentine Barshak @ 2008-02-07 14:05 UTC (permalink / raw)
To: Imre Kaloz; +Cc: linuxppc-dev, Stefan Roese
Imre Kaloz wrote:
> Well, arch/ppc calculates the mtd2 dynamically and doesn't create
> a separate partition for kozio.
That dynamic size calculation depends on the flash size.
The board I use has a 64MB NOR flash (I'm not aware of other Taishan
boards having chips of different size). So AFAIU if such board exists,
we'll need a cuboot flash-size fixup.
Thanks,
Valentine.
>
> I've based this on how it's currently done for the Sequoia, too.
>
>
> Imre
>
> On Thu, 07 Feb 2008 14:46:43 +0100, Valentine Barshak
> <vbarshak@ru.mvista.com> wrote:
>
>> Josh Boyer wrote:
>>> On Thu, 07 Feb 2008 11:29:55 +0100
>>> "Imre Kaloz" <kaloz@openwrt.org> wrote:
>>>
>>>> *bump*? :) If anything is wrong with it, please let me know.
>>
>> The arch/ppc had a bit different partition table.
>> Something like this:
>> mtd0: 00180000 00040000 "kernel"
>> mtd1: 00200000 00040000 "root"
>> mtd2: 03bc0000 00040000 "user"
>> mtd3: 00080000 00040000 "env"
>> mtd4: 00040000 00040000 "u-boot"
>>
>> Thanks,
>> Valentine.
>>
>>> Nothing wrong that I could see. I just need to test it first.
>>> josh
>>> _______________________________________________
>>> Linuxppc-dev mailing list
>>> Linuxppc-dev@ozlabs.org
>>> https://ozlabs.org/mailman/listinfo/linuxppc-dev
>>
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] MTD support for the AMCC Taishan
2008-02-07 14:05 ` Valentine Barshak
@ 2008-02-07 14:35 ` Imre Kaloz
2008-02-07 14:55 ` Valentine Barshak
0 siblings, 1 reply; 15+ messages in thread
From: Imre Kaloz @ 2008-02-07 14:35 UTC (permalink / raw)
To: Valentine Barshak; +Cc: linuxppc-dev, Stefan Roese
On Thu, 07 Feb 2008 15:05:23 +0100, Valentine Barshak
<vbarshak@ru.mvista.com> wrote:
>> Well, arch/ppc calculates the mtd2 dynamically and doesn't create
>> a separate partition for kozio.
>
> That dynamic size calculation depends on the flash size.
> The board I use has a 64MB NOR flash (I'm not aware of other Taishan
> boards having chips of different size). So AFAIU if such board exists,
> we'll need a cuboot flash-size fixup.
All Taishan boards have 64MB flash (2x32MB). Denx was doing the size
calculation
to dynamically allocate mtd2 based on the size of mtd0+mtd1 if I recall
right.
Cheers,
Imre
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] MTD support for the AMCC Taishan
2008-02-07 14:35 ` Imre Kaloz
@ 2008-02-07 14:55 ` Valentine Barshak
0 siblings, 0 replies; 15+ messages in thread
From: Valentine Barshak @ 2008-02-07 14:55 UTC (permalink / raw)
To: Imre Kaloz; +Cc: linuxppc-dev, Stefan Roese
Imre Kaloz wrote:
> On Thu, 07 Feb 2008 15:05:23 +0100, Valentine Barshak
> <vbarshak@ru.mvista.com> wrote:
>
>>> Well, arch/ppc calculates the mtd2 dynamically and doesn't create
>>> a separate partition for kozio.
>>
>> That dynamic size calculation depends on the flash size.
>> The board I use has a 64MB NOR flash (I'm not aware of other Taishan
>> boards having chips of different size). So AFAIU if such board exists,
>> we'll need a cuboot flash-size fixup.
>
>
> All Taishan boards have 64MB flash (2x32MB). Denx was doing the size
> calculation
> to dynamically allocate mtd2 based on the size of mtd0+mtd1 if I recall
> right.
>
This is actually the code:
arch/ppc/platforms/4xx/taishan.c:static int taishan_setup_flash(void)
{
taishan_nor_parts[2].size = __res.bi_flashsize -
RW_PART0_SZ - RW_PART1_SZ - RW_PART3_SZ - RW_PART4_SZ;
Thanks,
Valentine.
>
> Cheers,
> Imre
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] MTD support for the AMCC Taishan
2008-02-03 10:41 [PATCH] MTD support for the AMCC Taishan Imre Kaloz
2008-02-07 10:29 ` Imre Kaloz
@ 2008-02-08 14:27 ` Stefan Roese
2008-02-08 14:32 ` Stefan Roese
1 sibling, 1 reply; 15+ messages in thread
From: Stefan Roese @ 2008-02-08 14:27 UTC (permalink / raw)
To: linuxppc-dev
On Sunday 03 February 2008, Imre Kaloz wrote:
> Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
> ---
> arch/powerpc/boot/dts/taishan.dts | 33 +++++++++++-
> arch/powerpc/configs/taishan_defconfig | 89
> ++++++++++++++++++++++++++++++-- 2 files changed, 116 insertions(+), 6
> deletions(-)
>
> diff --git a/arch/powerpc/boot/dts/taishan.dts
> b/arch/powerpc/boot/dts/taishan.dts index 0706a4a..28c14dd 100644
> --- a/arch/powerpc/boot/dts/taishan.dts
> +++ b/arch/powerpc/boot/dts/taishan.dts
> @@ -174,7 +174,38 @@
> interrupts = <5 4>;
> interrupt-parent = <&UIC1>;
>
> - /* TODO: Add other EBC devices */
> + nor_flash@0,0 {
> + compatible = "cfi-flash";
> + bank-width = <4>;
> + device-width = <2>;
> + reg = <0 000000 4000000>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + partition@0 {
> + label = "kernel";
> + reg = <0 180000>;
> + };
> + partition@180000 {
> + label = "root";
> + reg = <180000 200000>;
> + };
> + partition@380000 {
> + label = "user";
> + reg = <380000 3a80000>;
> + };
> + partition@3e00000 {
> + label = "kozio";
> + reg = <3e00000 140000>;
> + };
Please remove the kozio partition from this list. It's not used/supported
anymore.
Thanks.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de
=====================================================================
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] MTD support for the AMCC Taishan
2008-02-08 14:27 ` Stefan Roese
@ 2008-02-08 14:32 ` Stefan Roese
2008-03-17 13:48 ` [PATCH v2] " Imre Kaloz
0 siblings, 1 reply; 15+ messages in thread
From: Stefan Roese @ 2008-02-08 14:32 UTC (permalink / raw)
To: linuxppc-dev
On Friday 08 February 2008, Stefan Roese wrote:
> > + partition@380000 {
> > + label = "user";
> > + reg = <380000 3a80000>;
> > + };
> > + partition@3e00000 {
> > + label = "kozio";
> > + reg = <3e00000 140000>;
> > + };
>
> Please remove the kozio partition from this list. It's not used/supported
> anymore.
And please extend the "user" partition accordingly.
Thanks.
Best regards,
Stefan
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2] MTD support for the AMCC Taishan
2008-02-08 14:32 ` Stefan Roese
@ 2008-03-17 13:48 ` Imre Kaloz
2008-03-17 14:27 ` Imre Kaloz
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: Imre Kaloz @ 2008-03-17 13:48 UTC (permalink / raw)
To: linuxppc-dev
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
---
arch/powerpc/boot/dts/taishan.dts | 29 +++++++++++-
arch/powerpc/configs/taishan_defconfig | 79 +++++++++++++++++++++++++++++++-
2 files changed, 106 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/boot/dts/taishan.dts b/arch/powerpc/boot/dts/taishan.dts
index 8278068..db102e9 100644
--- a/arch/powerpc/boot/dts/taishan.dts
+++ b/arch/powerpc/boot/dts/taishan.dts
@@ -174,7 +174,34 @@
interrupts = <5 4>;
interrupt-parent = <&UIC1>;
- /* TODO: Add other EBC devices */
+ nor_flash@0,0 {
+ compatible = "cfi-flash";
+ bank-width = <4>;
+ device-width = <2>;
+ reg = <0 000000 4000000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ partition@0 {
+ label = "kernel";
+ reg = <0 180000>;
+ };
+ partition@180000 {
+ label = "root";
+ reg = <180000 200000>;
+ };
+ partition@380000 {
+ label = "user";
+ reg = <380000 3bc0000>;
+ };
+ partition@3f40000 {
+ label = "env";
+ reg = <3f40000 80000>;
+ };
+ partition@3fc0000 {
+ label = "u-boot";
+ reg = <3fc0000 40000>;
+ };
+ };
};
diff --git a/arch/powerpc/configs/taishan_defconfig b/arch/powerpc/configs/taishan_defconfig
index 087aedc..e53c926 100644
--- a/arch/powerpc/configs/taishan_defconfig
+++ b/arch/powerpc/configs/taishan_defconfig
@@ -348,7 +348,83 @@ CONFIG_FW_LOADER=y
# CONFIG_SYS_HYPERVISOR is not set
CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y
-# CONFIG_MTD is not set
+CONFIG_MTD=y
+# CONFIG_MTD_DEBUG is not set
+# CONFIG_MTD_CONCAT is not set
+CONFIG_MTD_PARTITIONS=y
+# CONFIG_MTD_REDBOOT_PARTS is not set
+CONFIG_MTD_CMDLINE_PARTS=y
+
+#
+# User Modules And Translation Layers
+#
+CONFIG_MTD_CHAR=y
+# CONFIG_MTD_BLKDEVS is not set
+# CONFIG_MTD_BLOCK is not set
+# CONFIG_MTD_BLOCK_RO is not set
+# CONFIG_FTL is not set
+# CONFIG_NFTL is not set
+# CONFIG_INFTL is not set
+# CONFIG_RFD_FTL is not set
+# CONFIG_SSFDC is not set
+# CONFIG_MTD_OOPS is not set
+
+#
+# RAM/ROM/Flash chip drivers
+#
+CONFIG_MTD_CFI=y
+# CONFIG_MTD_JEDECPROBE is not set
+CONFIG_MTD_GEN_PROBE=y
+# CONFIG_MTD_CFI_ADV_OPTIONS is not set
+CONFIG_MTD_MAP_BANK_WIDTH_1=y
+CONFIG_MTD_MAP_BANK_WIDTH_2=y
+CONFIG_MTD_MAP_BANK_WIDTH_4=y
+# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
+# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
+# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
+CONFIG_MTD_CFI_I1=y
+CONFIG_MTD_CFI_I2=y
+# CONFIG_MTD_CFI_I4 is not set
+# CONFIG_MTD_CFI_I8 is not set
+# CONFIG_MTD_CFI_INTELEXT is not set
+CONFIG_MTD_CFI_AMDSTD=y
+# CONFIG_MTD_CFI_STAA is not set
+CONFIG_MTD_CFI_UTIL=y
+# CONFIG_MTD_RAM is not set
+# CONFIG_MTD_ROM is not set
+# CONFIG_MTD_ABSENT is not set
+
+#
+# Mapping drivers for chip access
+#
+# CONFIG_MTD_COMPLEX_MAPPINGS is not set
+# CONFIG_MTD_PHYSMAP is not set
+CONFIG_MTD_PHYSMAP_OF=y
+# CONFIG_MTD_INTEL_VR_NOR is not set
+# CONFIG_MTD_PLATRAM is not set
+
+#
+# Self-contained MTD device drivers
+#
+# CONFIG_MTD_PMC551 is not set
+# CONFIG_MTD_SLRAM is not set
+# CONFIG_MTD_PHRAM is not set
+# CONFIG_MTD_MTDRAM is not set
+# CONFIG_MTD_BLOCK2MTD is not set
+
+#
+# Disk-On-Chip Device Drivers
+#
+# CONFIG_MTD_DOC2000 is not set
+# CONFIG_MTD_DOC2001 is not set
+# CONFIG_MTD_DOC2001PLUS is not set
+# CONFIG_MTD_NAND is not set
+# CONFIG_MTD_ONENAND is not set
+
+#
+# UBI - Unsorted block images
+#
+# CONFIG_MTD_UBI is not set
CONFIG_OF_DEVICE=y
# CONFIG_PARPORT is not set
CONFIG_BLK_DEV=y
@@ -660,6 +736,7 @@ CONFIG_TMPFS=y
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
+# CONFIG_JFFS2_FS is not set
CONFIG_CRAMFS=y
# CONFIG_VXFS_FS is not set
# CONFIG_MINIX_FS is not set
--
1.5.2.5
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH v2] MTD support for the AMCC Taishan
2008-03-17 13:48 ` [PATCH v2] " Imre Kaloz
@ 2008-03-17 14:27 ` Imre Kaloz
2008-06-05 12:50 ` Imre Kaloz
2008-06-06 14:16 ` Stefan Roese
2 siblings, 0 replies; 15+ messages in thread
From: Imre Kaloz @ 2008-03-17 14:27 UTC (permalink / raw)
To: linuxppc-dev
On Mon, 17 Mar 2008 14:48:23 +0100, Imre Kaloz <kaloz@openwrt.org> wrote:
<snip>
Sorry, forgot to note that this version removes the "kozio" and extends
the "user" partition accordingly, as Stefan asked.
Imre
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2] MTD support for the AMCC Taishan
2008-03-17 13:48 ` [PATCH v2] " Imre Kaloz
2008-03-17 14:27 ` Imre Kaloz
@ 2008-06-05 12:50 ` Imre Kaloz
2008-06-05 13:15 ` Josh Boyer
2008-06-06 14:16 ` Stefan Roese
2 siblings, 1 reply; 15+ messages in thread
From: Imre Kaloz @ 2008-06-05 12:50 UTC (permalink / raw)
To: linuxppc-dev
bump? :)
On Mon, 17 Mar 2008 14:48:23 +0100, Imre Kaloz <kaloz@openwrt.org> wrote:
> Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
> ---
> arch/powerpc/boot/dts/taishan.dts | 29 +++++++++++-
> arch/powerpc/configs/taishan_defconfig | 79
> +++++++++++++++++++++++++++++++-
> 2 files changed, 106 insertions(+), 2 deletions(-)
>
> diff --git a/arch/powerpc/boot/dts/taishan.dts
> b/arch/powerpc/boot/dts/taishan.dts
> index 8278068..db102e9 100644
> --- a/arch/powerpc/boot/dts/taishan.dts
> +++ b/arch/powerpc/boot/dts/taishan.dts
> @@ -174,7 +174,34 @@
> interrupts = <5 4>;
> interrupt-parent = <&UIC1>;
> - /* TODO: Add other EBC devices */
> + nor_flash@0,0 {
> + compatible = "cfi-flash";
> + bank-width = <4>;
> + device-width = <2>;
> + reg = <0 000000 4000000>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + partition@0 {
> + label = "kernel";
> + reg = <0 180000>;
> + };
> + partition@180000 {
> + label = "root";
> + reg = <180000 200000>;
> + };
> + partition@380000 {
> + label = "user";
> + reg = <380000 3bc0000>;
> + };
> + partition@3f40000 {
> + label = "env";
> + reg = <3f40000 80000>;
> + };
> + partition@3fc0000 {
> + label = "u-boot";
> + reg = <3fc0000 40000>;
> + };
> + };
> };
> diff --git a/arch/powerpc/configs/taishan_defconfig
> b/arch/powerpc/configs/taishan_defconfig
> index 087aedc..e53c926 100644
> --- a/arch/powerpc/configs/taishan_defconfig
> +++ b/arch/powerpc/configs/taishan_defconfig
> @@ -348,7 +348,83 @@ CONFIG_FW_LOADER=y
> # CONFIG_SYS_HYPERVISOR is not set
> CONFIG_CONNECTOR=y
> CONFIG_PROC_EVENTS=y
> -# CONFIG_MTD is not set
> +CONFIG_MTD=y
> +# CONFIG_MTD_DEBUG is not set
> +# CONFIG_MTD_CONCAT is not set
> +CONFIG_MTD_PARTITIONS=y
> +# CONFIG_MTD_REDBOOT_PARTS is not set
> +CONFIG_MTD_CMDLINE_PARTS=y
> +
> +#
> +# User Modules And Translation Layers
> +#
> +CONFIG_MTD_CHAR=y
> +# CONFIG_MTD_BLKDEVS is not set
> +# CONFIG_MTD_BLOCK is not set
> +# CONFIG_MTD_BLOCK_RO is not set
> +# CONFIG_FTL is not set
> +# CONFIG_NFTL is not set
> +# CONFIG_INFTL is not set
> +# CONFIG_RFD_FTL is not set
> +# CONFIG_SSFDC is not set
> +# CONFIG_MTD_OOPS is not set
> +
> +#
> +# RAM/ROM/Flash chip drivers
> +#
> +CONFIG_MTD_CFI=y
> +# CONFIG_MTD_JEDECPROBE is not set
> +CONFIG_MTD_GEN_PROBE=y
> +# CONFIG_MTD_CFI_ADV_OPTIONS is not set
> +CONFIG_MTD_MAP_BANK_WIDTH_1=y
> +CONFIG_MTD_MAP_BANK_WIDTH_2=y
> +CONFIG_MTD_MAP_BANK_WIDTH_4=y
> +# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
> +# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
> +# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
> +CONFIG_MTD_CFI_I1=y
> +CONFIG_MTD_CFI_I2=y
> +# CONFIG_MTD_CFI_I4 is not set
> +# CONFIG_MTD_CFI_I8 is not set
> +# CONFIG_MTD_CFI_INTELEXT is not set
> +CONFIG_MTD_CFI_AMDSTD=y
> +# CONFIG_MTD_CFI_STAA is not set
> +CONFIG_MTD_CFI_UTIL=y
> +# CONFIG_MTD_RAM is not set
> +# CONFIG_MTD_ROM is not set
> +# CONFIG_MTD_ABSENT is not set
> +
> +#
> +# Mapping drivers for chip access
> +#
> +# CONFIG_MTD_COMPLEX_MAPPINGS is not set
> +# CONFIG_MTD_PHYSMAP is not set
> +CONFIG_MTD_PHYSMAP_OF=y
> +# CONFIG_MTD_INTEL_VR_NOR is not set
> +# CONFIG_MTD_PLATRAM is not set
> +
> +#
> +# Self-contained MTD device drivers
> +#
> +# CONFIG_MTD_PMC551 is not set
> +# CONFIG_MTD_SLRAM is not set
> +# CONFIG_MTD_PHRAM is not set
> +# CONFIG_MTD_MTDRAM is not set
> +# CONFIG_MTD_BLOCK2MTD is not set
> +
> +#
> +# Disk-On-Chip Device Drivers
> +#
> +# CONFIG_MTD_DOC2000 is not set
> +# CONFIG_MTD_DOC2001 is not set
> +# CONFIG_MTD_DOC2001PLUS is not set
> +# CONFIG_MTD_NAND is not set
> +# CONFIG_MTD_ONENAND is not set
> +
> +#
> +# UBI - Unsorted block images
> +#
> +# CONFIG_MTD_UBI is not set
> CONFIG_OF_DEVICE=y
> # CONFIG_PARPORT is not set
> CONFIG_BLK_DEV=y
> @@ -660,6 +736,7 @@ CONFIG_TMPFS=y
> # CONFIG_BEFS_FS is not set
> # CONFIG_BFS_FS is not set
> # CONFIG_EFS_FS is not set
> +# CONFIG_JFFS2_FS is not set
> CONFIG_CRAMFS=y
> # CONFIG_VXFS_FS is not set
> # CONFIG_MINIX_FS is not set
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2] MTD support for the AMCC Taishan
2008-06-05 12:50 ` Imre Kaloz
@ 2008-06-05 13:15 ` Josh Boyer
0 siblings, 0 replies; 15+ messages in thread
From: Josh Boyer @ 2008-06-05 13:15 UTC (permalink / raw)
To: Imre Kaloz; +Cc: linuxppc-dev
On Thu, 05 Jun 2008 14:50:41 +0200
"Imre Kaloz" <kaloz@openwrt.org> wrote:
> bump? :)
It won't apply anymore, but the fixups are trivial. I can do that if
Stefan acks the changes.
josh
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2] MTD support for the AMCC Taishan
2008-03-17 13:48 ` [PATCH v2] " Imre Kaloz
2008-03-17 14:27 ` Imre Kaloz
2008-06-05 12:50 ` Imre Kaloz
@ 2008-06-06 14:16 ` Stefan Roese
2 siblings, 0 replies; 15+ messages in thread
From: Stefan Roese @ 2008-06-06 14:16 UTC (permalink / raw)
To: linuxppc-dev
On Monday 17 March 2008, Imre Kaloz wrote:
> Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
Acked-by: Stefan Roese <sr@denx.de>
Best regards,
Stefan
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2008-06-06 14:17 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-03 10:41 [PATCH] MTD support for the AMCC Taishan Imre Kaloz
2008-02-07 10:29 ` Imre Kaloz
2008-02-07 12:00 ` Josh Boyer
2008-02-07 13:46 ` Valentine Barshak
2008-02-07 13:54 ` Imre Kaloz
2008-02-07 14:05 ` Valentine Barshak
2008-02-07 14:35 ` Imre Kaloz
2008-02-07 14:55 ` Valentine Barshak
2008-02-08 14:27 ` Stefan Roese
2008-02-08 14:32 ` Stefan Roese
2008-03-17 13:48 ` [PATCH v2] " Imre Kaloz
2008-03-17 14:27 ` Imre Kaloz
2008-06-05 12:50 ` Imre Kaloz
2008-06-05 13:15 ` Josh Boyer
2008-06-06 14:16 ` Stefan Roese
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).