[riot-notifications] [RIOT-OS/RIOT] drivers/mtd_spi_nor: derive capacity from JEDEC ID (#14084)

benpicco notifications at github.com
Tue May 19 18:25:40 CEST 2020


@benpicco commented on this pull request.



> +    if ((id->manuf == SPI_NOR_JEDEC_ADESTO) &&
+        (id->device[0] & 0xE0) == 0x80) {

On these older chips, device ID 2 seems to always be 0, 1 or two - it encodes the product version and "Sub Code".

I think if we check for that, we should be good.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14084#discussion_r427434273
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200519/c9527ada/attachment.htm>


More information about the notifications mailing list