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

Another way how to read/write scratch registers #5

Open
sonicpp opened this issue Jul 29, 2022 · 1 comment
Open

Another way how to read/write scratch registers #5

sonicpp opened this issue Jul 29, 2022 · 1 comment

Comments

@sonicpp
Copy link

sonicpp commented Jul 29, 2022

Since this commit the kernel exposes scratch0-2 registers (when enabled RTC_NVMEM and RTC_DRV_OMAP configs). To read/write to these registers you can simple use file /sys/bus/nvmem/devices/omap_rtc_scratch0/nvmem (all 12 bytes are accessible by this file). But you still need to do the logic with magic number on your own, tho.

@thom-nic
Copy link
Contributor

Thanks for pointing that out! I will look into it.

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

No branches or pull requests

2 participants