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

arch, boards: cxd56xx: Minor update for spresense #6036

Merged
merged 8 commits into from
Apr 11, 2022

Conversation

SPRESENSE
Copy link
Contributor

Summary

  • arch: cxd56xx: Fix critical section in scu driver
  • arch: cxd56xx: Fix compile warning of cxd56_emmc driver
  • arch: cxd56xx: Update loader and gnssfw version
  • boards: cxd56xx: Add callback mechanism to notice SDCard injection
  • boards: cxd56xx: Add board function for scd41 sensor driver
  • boards: cxd56xx: Add pin selection of ILI934x
  • boards: cxd56xx: Make board_late_initialize a weak function
  • boards: cxd56xx: Fix an issue i2c tool not working

Impact

Only for spresense board.

Testing

Build and test on spresense board.

Update loader and gnssfw to version 2.2.20585
Add necessary include header named debug.h for using ferr and
finfo.
Add critical section to scu one-shot sequencer.
It caused i2c tool not to work due to i2c uninitializing processing.
Since this process is not necessary in the normal case, we will
move it to the error case.
Add a weak_function to the board_late_initialize function so that
it can be replaced by another file, such as a user application.
Add Kconfig choice for selecting RST and DC pins on ILI934x LCD.
Add board function for SCD41 CO2, temperature and humidity sensor driver.
Add a mechanism to callback to an application to notice the SDCard
status is changed (inserted or ejected).

case BOARDIOC_SDCARD_SETNOTIFYCB:
{
ret = board_sdcard_set_state_cb(arg);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think passing function pointers from app to kernel is not the best thing. Why such functionality is needed?

Copy link
Contributor

Choose a reason for hiding this comment

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

Same question, could we use automount instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

Please consider enabling FS_AUTOMOUNTER_DRIVER and using a ioctl(FIOC_NOTIFY) instead of direct callback

Copy link
Contributor

Choose a reason for hiding this comment

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

If not, then the anyway we need to rework this to be a signal based notification instead of direct callback

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that such improvements should be done in another PR.

Copy link
Contributor

@jerpelea jerpelea left a comment

Choose a reason for hiding this comment

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

LGTM

@masayuki2009 masayuki2009 merged commit 64e5867 into apache:master Apr 11, 2022
@jerpelea jerpelea added this to To-Add in Release Notes - 11.0.0 Aug 30, 2022
@jerpelea jerpelea moved this from To-Add to Added in Release Notes - 11.0.0 Sep 1, 2022
@SPRESENSE SPRESENSE deleted the cxd56xx_updates branch October 19, 2022 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants