Skip to content

Commit

Permalink
drivers: entropy: Add support for SCE5 to entropy driver
Browse files Browse the repository at this point in the history
add support SCE5 to entropy driver for Renesas RA

Signed-off-by: Danh Doan <[email protected]>
  • Loading branch information
Danh Doan authored and khoa-nguyen-18 committed Dec 13, 2024
1 parent 8b5212b commit 6a234c9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/entropy/Kconfig.renesas_ra
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
config ENTROPY_RENESAS_RA
bool "Renesas RA TRNG driver"
default y
depends on DT_HAS_RENESAS_RA_RSIP_E51A_TRNG_ENABLED || DT_HAS_RENESAS_RA_SCE7_RNG_ENABLED
depends on DT_HAS_RENESAS_RA_RSIP_E51A_TRNG_ENABLED || DT_HAS_RENESAS_RA_SCE7_RNG_ENABLED \
|| DT_HAS_RENESAS_RA_SCE5_RNG_ENABLED
select ENTROPY_HAS_DRIVER
select USE_RA_FSP_SCE
help
Expand Down
1 change: 1 addition & 0 deletions drivers/entropy/entropy_renesas_ra.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ static int entropy_renesas_ra_init(const struct device *dev)
CONFIG_ENTROPY_INIT_PRIORITY, &entropy_renesas_ra_api)

DT_FOREACH_STATUS_OKAY(renesas_ra_rsip_e51a_trng, RENESAS_RA_ENTROPY_INIT)
DT_FOREACH_STATUS_OKAY(renesas_ra_sce5_rng, RENESAS_RA_ENTROPY_INIT)
DT_FOREACH_STATUS_OKAY(renesas_ra_sce7_rng, RENESAS_RA_ENTROPY_INIT)
8 changes: 8 additions & 0 deletions dts/bindings/rng/renesas,ra-sce5-rng.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0

description: Renesas RA SCE5 TRNG

compatible: "renesas,ra-sce5-rng"

include: base.yaml
7 changes: 7 additions & 0 deletions modules/Kconfig.renesas_fsp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ config HAS_RENESAS_RA_SCE7
help
Includes SCE7 implementation for SCE driver

config HAS_RENESAS_RA_SCE5
bool
default y
depends on DT_HAS_RENESAS_RA_SCE5_RNG_ENABLED
help
Includes SCE5 implementation for SCE driver

endif

config USE_RA_FSP_SPI_B
Expand Down

0 comments on commit 6a234c9

Please sign in to comment.