[PATCH] mtd: m25p80: add support for the EON EN25Q64 chip

John Crispin blogic at openwrt.org
Wed Aug 29 07:13:26 EDT 2012


On 29/08/12 13:04, Artem Bityutskiy wrote:
> On Sun, 2012-08-26 at 10:37 +0200, Gabor Juhos wrote:
>> Signed-off-by: Gabor Juhos <juhosg at openwrt.org>
>> ---
>>  drivers/mtd/devices/m25p80.c |    1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
>> index 5d0d68c..d812552 100644
>> --- a/drivers/mtd/devices/m25p80.c
>> +++ b/drivers/mtd/devices/m25p80.c
>> @@ -638,6 +638,7 @@ static const struct spi_device_id m25p_ids[] = {
>>  	{ "en25p32", INFO(0x1c2016, 0, 64 * 1024,  64, 0) },
>>  	{ "en25q32b", INFO(0x1c3016, 0, 64 * 1024,  64, 0) },
>>  	{ "en25p64", INFO(0x1c2017, 0, 64 * 1024, 128, 0) },
>> +	{ "en25q64", INFO(0x1c3017, 0, 64 * 1024, 128, SECT_4K) },
> I've already pushed a similar patch from "John Crispin
> <blogic at openwrt.org>", but it did not have "SECT_4K". So I am not
> picking this one.
>

Hi Artem,

the patch is based on this ticket ->
https://dev.openwrt.org/ticket/12077

i verified it against the datasheet. the datasheet indicates that
SECT_4K should work, but as the patch was only runtime tested without
the SECT_4K i did not add it.

Gabor told me that the SECT_4K was runtime tested on the en25q32 which
is from the same family.

I have put the submitter of  patch in CC, maybe he can test with the
SECT_4K set.

Thanks,
John



More information about the linux-mtd mailing list