-
Couldn't load subscription status.
- Fork 8.1k
drivers: entropy: sf32lb: add trng driver support #98467
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
base: main
Are you sure you want to change the base?
Conversation
Add sifli,sf32lb-trng Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
92e62df to
6c90384
Compare
| } | ||
|
|
||
| static DEVICE_API(entropy, entropy_sf32lb_api) = { | ||
| .get_entropy = entropy_sf32lb_get_entropy, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider adding support get_entropy_isr (non-blocking version)
Add trng for sifli sf32lb platform Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
Add trng driver for sf32lb platform Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
Enable trng on sf32lb52_devkit_lcd board Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
6c90384 to
607d84d
Compare
|
| } | ||
|
|
||
| for (uint16_t i = 0U; i < length; i += 4) { | ||
| uint8_t pos = (i & TRNG_RAND_MASK); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does TRNG feed registers with new random data when read? If not, returned data won't be random but repeat on rollover.



Add entropy driver for sf32lb platform