Skip to content

Conversation

@ck-telecom
Copy link
Contributor

@ck-telecom ck-telecom commented Oct 29, 2025

Add entropy driver for sf32lb platform

Add sifli,sf32lb-trng

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
}

static DEVICE_API(entropy, entropy_sf32lb_api) = {
.get_entropy = entropy_sf32lb_get_entropy,
Copy link
Member

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>
@sonarqubecloud
Copy link

}

for (uint16_t i = 0U; i < length; i += 4) {
uint8_t pos = (i & TRNG_RAND_MASK);
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants