game-and-watch-retro-go icon indicating copy to clipboard operation
game-and-watch-retro-go copied to clipboard

gw_flash: Detect non-genuine flash chips

Open kbeckmann opened this issue 3 years ago • 0 comments

Some chips that are sourced from ebay, aliexpress and similar sources are not what they seem.

A popular chip reports JEDEC ID: C2 25 38 even though it isn't a genuine chip. It doesn't support quad i/o mode.

One way to solve this is to read a known value on the flash. If this fails, fall back using the generic SPI driver and try again.

Ideally we should probe in a better way.

kbeckmann avatar Oct 05 '21 17:10 kbeckmann