Hi Gabor,

This patch also adaptable to current 2.6.30 and 2.6.31.12 kernels.
I suggest to modify the target architecture of kirkwood cpu in the form.

/target/linux/kirkwood/patches-2.6.32
/target/linux/kirkwood/patches-2.6.31
/target/linux/kirkwood/patches-2.6.30
and
config-2.6.32
config-2.6.31
config-2.6.30

for better supporting with different kernels.

2010/2/8 Gabor Juhos <[email protected]>:
> Macpaul Lin írta:
>> Description:
>>
>> 1. Suggestion:
>> 1.a This patch add support of m25p80 with mx25lxxx support to kirkwood
>> based platform.
>> 1.b Because mx25lxxx series are used by many kind of platform with many CPU.
>>      I also suggest someone to merge the patch related to m25p80 in
>> /target/linux/ar71xx with this patch (for kirkwood) into
>> /target/linux/generic-2.6/patches
>
> Done, although only for 2.6.32.
>
>>
>> 2. Patch file placement:
>> /trunk/target/linux/kirkwood/patches
>>
>> 3. Patch filename:
>> 100-mtd_m25p80_add_mx25lxxx_support.patch
>>
>> Signed-off-by: Macpaul Lin <[email protected]>
>>
>> ---
>>
>> Index: linux-2.6.32.7/drivers/mtd/devices/m25p80.c
>> ===================================================================
>> --- a/drivers/mtd/devices/m25p80.c    2009-06-10 11:05:27.000000000 +0800
>> +++ b/drivers/mtd/devices/m25p80.c    2009-06-19 18:31:21.000000000 +0800
>> @@ -500,6 +500,12 @@
>>       { "at26df161a", 0x1f4601, 0, 64 * 1024, 32, SECT_4K, },
>>       { "at26df321",  0x1f4701, 0, 64 * 1024, 64, SECT_4K, },
>>
>> +     /* Macronix */
>> +     { "mx25l3205d", 0xc22016, 0, 16 * 1024, 256, },
>
>                                     ^^^^^^^^^^^^^^^ wrong values
>
>> +     { "mx25l6405d", 0xc22017, 0, 64 * 1024, 128, },
>> +     { "mx25l12805d", 0xc22018, 0, 64 * 1024, 256, },
>> +     { "mx25l12855e", 0xc22618, 0, 64 * 1024, 256, },
>> +
>>       /* Spansion -- single (large) sector size only, at least
>>        * for the chips listed here (without boot sectors).
>>        */
>> _______________________________________________
>> openwrt-devel mailing list
>> [email protected]
>> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>>
>
>



-- 
Best regards,
Macpaul Lin
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to