-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Flash API: flash_mmap syscall allowing to obtain mapping of flash device in CPU address space #80525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flash charge API
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. |
The PR consists of:
flash_mmap
API call and type definition forflash_driver_api
callback.Fixes #80524