HSD #14015950233: crypto: intel_fcs: select HW_RANDOM if intel_fcs is built-in

Update Kconfig to add the dependencies of intel_fcs module. This change
will only build in the HW_RANDOM when the FCS is enabled. So if FCS is a
kernel module, then HW_RANDOM is a hw module, if FCS is built-in, then the
HW_RANDOM is built-in.

Fixes: 6153ec6 ("HSD #22013011814: crypto: intel_fcs: support HWRNG via /dev/hwrng")

Signed-off-by: Teh Wen Ping <[email protected]>
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index dfea286..4d7d226 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -357,12 +357,15 @@
 
 config CRYPTO_DEV_INTEL_FCS
 	tristate "Intel FPGA Crypto Service support"
-	depends on INTEL_STRATIX10_SERVICE && HW_RANDOM
+	depends on INTEL_STRATIX10_SERVICE
+	select HW_RANDOM
 	help
 	 Support crypto services on Intel SoCFPGA platforms. The crypto
 	 services include security certificate, image boot validation,
 	 security key cancellation, get provision data, random number
-	 generation and secure data object storage services.
+	 generation and secure data object storage services. If intel_fcs
+	 is built as loadable module, then need to insmod hw_random.ko
+	 before insmod intel_fcs.ko.
 
 	 Say Y here if you want Intel FCS support