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

os/arch/arm/src/amebasmart: I2C/I2S integration with PM #6181

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

edwakuwaku
Copy link
Contributor

No description provided.

switch (pmstate)
{
case PM_NORMAL:
pmu_unregister_sleep_callback(PMU_I2C_DEVICE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means the pm state should be normal at wakeup? I heard it could be the standby when LCD is used. For example, lcd should not be turned on but something should be working (main core should be wakeup without lcd on). In this case, is this right? @ritesh55555 please check this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Yes , for now , whenever board wakes up with an interrupt, pm state goes to NORMAL .
  2. When LCD is used, according the design given (lcd and pm) , pm should go to stand by state . So if we do that , we need to change this part and also in some other files also.

Copy link
Contributor

@ewoodev ewoodev May 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PM_NORMAL can be set in several situations.

This may not be the case when the main core wakes up.

I think it's a better way to restore this function directly from the pmu code in BSP than this.

The noti callback of this PM is not a feature for the BSP

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi all, I have pushed a commit to move the pre/post sleep callbacks to being done only during initialization stage.

- Prepare pre/post sleep process for I2C/I2S
- Move callbacks registration to be done at bootup stage, due to the PM is always needed
- Code cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants