[PATCH linux dev-4.10 6/6] mtd: spi-nor: aspeed: optimize read mode

Cédric Le Goater clg at kaod.org
Tue Mar 28 17:44:57 AEDT 2017


On 03/27/2017 12:36 PM, Benjamin Herrenschmidt wrote:
> On Fri, 2017-03-24 at 15:44 +0100, Cédric Le Goater wrote:
>> Only for SPI controllers as U-Boot should have done it already for
>> the
>> FMC controller using DMAs.
>>
>> The algo first reads a golden buffer at low speed and then performs
>> reads with different clocks and delay cycles settings to find the
>> fastest configuration for the chip.
>>
>> Based on the pflash tool.
>>
>> Signed-off-by: Cédric Le Goater <clg at kaod.org>
>> ---
>>
>>  TODO: may be add a chicken switch ? 
> 
> A module parameter (which can also be passed as a kernel command line
> arg) to disable it, yes.

I have added a kernel parameter in my branch :

	https://github.com/legoater/linux/commits/openbmc-4.10

Cheers,

C.



More information about the openbmc mailing list