232272cff8
This driver emulates a EEPROM device in flash. Reworked implementation with modified flash layout. The emulation represents the EEPROM in flash as a region that is a direct map of the eeprom data followed by a region where changes to the eeprom data is stored. Changes are written as address-data combinations. The size of such a combination is determined by the flash write block size and the size of the eeprom (required address space), with a minimum of 4 byte. The eeprom page needs to be a multiple of the flash page. Multiple eeprom pages is also so supported and increases the number of writes that can be performed. The eeprom size, pagesize and the flash partition used for the eeprom are defined in the dts. The flash partition should allow at least two eeprom pages. For fast read access a rambuffer can be enabled for the eeprom (by setting the option rambuf in the dts). Signed-off-by: Laczen JMS <laczenjms@gmail.com> |
||
---|---|---|
.. | ||
boards | ||
src | ||
CMakeLists.txt | ||
prj.conf | ||
prj_qemu_x86.conf | ||
testcase.yaml |