Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This properly programs and verifies the eeprom on my SPI 7i90 typical commandline: mesaflash --device 7I90 --addr /dev/spidev1.0 --spi \ --verify 7i90_spi_svst4_8.bit
- Loading branch information
Showing
3 changed files
with
163 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For size not a multiple of 4, this code is dubious. This rounds down, then read_command also uses size/4 rounded down, but memcpy uses size. Some items should be rounded up and/or converted to byte counts, or it should be asserted that size%4 == 0.