drivers: entropy: Add support for SCE9 to entropy driver
add support SCE9 to entropy driver for Renesas RA Signed-off-by: Minh Hoang <minh.hoang.wm@bp.renesas.com> Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
This commit is contained in:
parent
d149ff49fe
commit
0b5e17f69b
4 changed files with 19 additions and 2 deletions
|
|
@ -6,8 +6,9 @@
|
||||||
config ENTROPY_RENESAS_RA
|
config ENTROPY_RENESAS_RA
|
||||||
bool "Renesas RA TRNG driver"
|
bool "Renesas RA TRNG driver"
|
||||||
default y
|
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_SCE9_RNG_ENABLED \
|
||||||
|| DT_HAS_RENESAS_RA_SCE5_RNG_ENABLED || DT_HAS_RENESAS_RA_TRNG_ENABLED
|
|| DT_HAS_RENESAS_RA_SCE7_RNG_ENABLED || DT_HAS_RENESAS_RA_SCE5_RNG_ENABLED \
|
||||||
|
|| DT_HAS_RENESAS_RA_TRNG_ENABLED
|
||||||
select ENTROPY_HAS_DRIVER
|
select ENTROPY_HAS_DRIVER
|
||||||
select USE_RA_FSP_SCE
|
select USE_RA_FSP_SCE
|
||||||
help
|
help
|
||||||
|
|
|
||||||
|
|
@ -50,4 +50,5 @@ static int entropy_renesas_ra_init(const struct device *dev)
|
||||||
DT_FOREACH_STATUS_OKAY(renesas_ra_rsip_e51a_trng, RENESAS_RA_ENTROPY_INIT)
|
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_sce5_rng, RENESAS_RA_ENTROPY_INIT)
|
||||||
DT_FOREACH_STATUS_OKAY(renesas_ra_sce7_rng, RENESAS_RA_ENTROPY_INIT)
|
DT_FOREACH_STATUS_OKAY(renesas_ra_sce7_rng, RENESAS_RA_ENTROPY_INIT)
|
||||||
|
DT_FOREACH_STATUS_OKAY(renesas_ra_sce9_rng, RENESAS_RA_ENTROPY_INIT)
|
||||||
DT_FOREACH_STATUS_OKAY(renesas_ra_trng, RENESAS_RA_ENTROPY_INIT)
|
DT_FOREACH_STATUS_OKAY(renesas_ra_trng, RENESAS_RA_ENTROPY_INIT)
|
||||||
|
|
|
||||||
8
dts/bindings/rng/renesas,ra-sce9-rng.yaml
Normal file
8
dts/bindings/rng/renesas,ra-sce9-rng.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# Copyright (c) 2024 Renesas Electronics Corporation
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
description: Renesas RA SCE9 TRNG
|
||||||
|
|
||||||
|
compatible: "renesas,ra-sce9-rng"
|
||||||
|
|
||||||
|
include: base.yaml
|
||||||
|
|
@ -59,6 +59,13 @@ config HAS_RENESAS_RA_RSIP_E51A
|
||||||
help
|
help
|
||||||
Includes RSIP-E51A implementation for SCE driver
|
Includes RSIP-E51A implementation for SCE driver
|
||||||
|
|
||||||
|
config HAS_RENESAS_RA_SCE9
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
depends on DT_HAS_RENESAS_RA_SCE9_RNG_ENABLED
|
||||||
|
help
|
||||||
|
Includes SCE9 implementation for SCE driver
|
||||||
|
|
||||||
config HAS_RENESAS_RA_SCE7
|
config HAS_RENESAS_RA_SCE7
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue