[PATCH linux dev-4.7 2/2] mtd: spi-nor: fix spi register address for AST2400
Alexander Amelkin
a.amelkin at yadro.com
Mon Aug 20 19:20:26 AEST 2018
Yes, sure. That was a typo.
16.08.2018 06:34, Lei YU wrote:
> I think the mail subject should be patch linux dev-4.17, instead of dev-4.7.
>
> Tested-by: Lei YU <mine260309 at gmail.com>
> On Wed, Aug 15, 2018 at 11:15 PM Alexander Amelkin <a.amelkin at yadro.com> wrote:
>> According to AST2400 datasheet v1.4 the SPI Flash Read Timing
>> Setting register is at offset 0x14. There is no register at
>> offset 0x94 (unlike FMC controller and AST2500).
>>
>> Signed-off-by: Alexander Soldatov <a.soldatov at yadro.com>
>> ---
>> drivers/mtd/spi-nor/aspeed-smc.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/mtd/spi-nor/aspeed-smc.c b/drivers/mtd/spi-nor/aspeed-smc.c
>> index c9cd20f..9ddf24b 100644
>> --- a/drivers/mtd/spi-nor/aspeed-smc.c
>> +++ b/drivers/mtd/spi-nor/aspeed-smc.c
>> @@ -71,7 +71,7 @@ static const struct aspeed_smc_info spi_2400_info = {
>> .hastype = false,
>> .we0 = 0,
>> .ctl0 = 0x04,
>> - .timing = 0x94,
>> + .timing = 0x14,
>> .set_4b = aspeed_smc_chip_set_4b_spi_2400,
>> .optimize_read = aspeed_smc_optimize_read,
>> };
>> --
>> 2.7.4
>>
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20180820/b91c6787/attachment.sig>
More information about the openbmc
mailing list