Skip to content
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

Add power management block device driver for changing the power mode of Flash #15303

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rogeryou
Copy link
Contributor

Summary of changes

Usually, Nor Flash has more than one power mode, such as high performance mode, low power mode and deep down mode. But in QSPIF block device driver, it is not very easy to change Flash power mode. The PowerManagementBlockDevice class provides an API to change the Flash power mode if the underlying block device doesn’t support such a behavior, which is only support the MX25R6435F of QSPIF block device temporarily. But,users can add codes for other power modes of other types of Flash.
image

Impact of changes

Migration actions required

Documentation


Pull request type

[] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[x] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[x] Tests / results supplied as part of this PR

mbedgt: test suite report:

target platform_name test suite result elapsed_time (sec) copy_method
DISCO_L475VG_IOT01A-GCC_ARM DISCO_L475VG_IOT01A storage-blockdevice-tests-tests-blockdevice-power_management_block_device OK 9.71 default
mbedgt: test suite results: 1 OK

Reviewers


@ciarmcom
Copy link
Member

@rogeryou, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

@ciarmcom ciarmcom requested a review from a team June 24, 2022 01:30
@rogeryou rogeryou changed the title add for power management Add power management block device driver for changing the power mode of Flash Jun 24, 2022
@rogeryou rogeryou closed this Aug 3, 2023
@rogeryou rogeryou reopened this Aug 3, 2023
@0xc0170
Copy link
Contributor

0xc0170 commented Jun 8, 2024

Similar to the PR #15242 ,what shall we do with this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants