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

entropy: rpi_pico: implement entropy driver for RP2350 #83346

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

Conversation

xudongzheng
Copy link
Contributor

Use get_rand_64() from Pico SDK for entropy.

This is somewhat based on #66764.

Use get_rand_64() from Pico SDK for entropy.

Signed-off-by: Xudong Zheng <[email protected]>
@@ -151,6 +151,18 @@ if(CONFIG_HAS_RPI_PICO)
zephyr_include_directories_ifdef(CONFIG_PICOSDK_USE_CLAIM
${common_dir}/hardware_claim/include)

zephyr_library_sources_ifdef(CONFIG_PICOSDK_USE_RAND
${rp2_common_dir}/hardware_timer/timer.c
${rp2_common_dir}/pico_rand/rand.c
Copy link
Member

Choose a reason for hiding this comment

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

This code uses pico-sdk's spin-lock feature, not zephyr's one.
I think it can't use as is.
We need to implements zephyr's own TRNG driver.

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

Successfully merging this pull request may close these issues.

4 participants