Flash API: flash_mmap syscall allowing to obtain mapping of flash device in CPU address space#80525
Flash API: flash_mmap syscall allowing to obtain mapping of flash device in CPU address space#80525de-nordic wants to merge 6 commits intozephyrproject-rtos:mainfrom
Conversation
3b1db01 to
70dcf36
Compare
70dcf36 to
98bc162
Compare
The commit adds new API function flash_map with supporting flash_driver_api callback type. The new function is provided to allow accessing flash devices, in particular internal SoC flash devices, via processor address space. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
Adds implementation for mmap callback for flash_driver_api. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
The commit adds implementation of flash_mmap API call. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
Add flash_mmap test scenario. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
Add testing of flash_mmap implementation of Flash Simulator. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
Simple tests for flash_mmap API calls. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
98bc162 to
b652cd3
Compare
Gray area, as does not require any work from other developers to existing code, even though changes flash driver api. |
|
I am marking this as DNM till I get some input from vendors of SoC devices. |
|
@de-nordic is it time to remove DNM? |
No. I will bring this into dev/arch meeting first. |
|
@mmahadevan108 @dleach02 Can you take a look in here? We have now issue in MCUboot mcu-tools/mcuboot#1661, that I have reported because people tried to hook flash_area_device_id and are now confused what that thing should return. |
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
The PR consists of:
flash_mmapAPI call and type definition forflash_driver_apicallback.Fixes #80524