crypto: rockchip: Kconfig: Fix depends on CPU config

Before:
	default y if CPU_XXXX
After:
	depends on CPU_XXX
	default y

When a CPU_XXXX config is not selected, the config will be
automatically deselected.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If10a37e81221ddd69a32e528c2642d8b0065b309
This commit is contained in:
Tao Huang
2024-03-06 16:22:45 +08:00
parent 9d14f059e4
commit 5e4982a533

View File

@@ -3,15 +3,18 @@ if CRYPTO_DEV_ROCKCHIP
config CRYPTO_DEV_ROCKCHIP_V1
bool "crypto v1 for RV1108 RK3288 RK3368 RK3399"
default y if CPU_RV1108 || CPU_RK3288 || CPU_RK3368 || CPU_RK3399
depends on CPU_RV1108 || CPU_RK3288 || CPU_RK3368 || CPU_RK3399
default y
config CRYPTO_DEV_ROCKCHIP_V2
bool "crypto v2 for RV1109/RV1126 RK1808 RK3308 PX30/RK3326 RK356X RK3588"
default y if CPU_RV1126 || CPU_RK1808 || CPU_RK3308 || CPU_PX30 || CPU_RK3568 || CPU_RK3588
depends on CPU_RV1126 || CPU_RK1808 || CPU_RK3308 || CPU_PX30 || CPU_RK3568 || CPU_RK3588
default y
config CRYPTO_DEV_ROCKCHIP_V3
bool "crypto v3/v4 for RV1106/RK3528/RK3562/RK3576"
default y if CPU_RV1106 || CPU_RK3528 || CPU_RK3562 || CPU_RK3576
depends on CPU_RV1106 || CPU_RK3528 || CPU_RK3562 || CPU_RK3576
default y
endif