bl33: 2023: pass rng seed to kernel [1/1]

PD#SWPL-196519

Problem:
uboot need pass rng seed to kernel

Solution:
add rng seed on default

Verify:
local

Change-Id: I87b292f86467a526679260c78991dcba8b0ddcdb
Signed-off-by: Bo Lv <bo.lv@amlogic.com>
diff --git a/board/amlogic/common/board.c b/board/amlogic/common/board.c
index 48c6f5b..8baf7ea 100644
--- a/board/amlogic/common/board.c
+++ b/board/amlogic/common/board.c
@@ -343,7 +343,6 @@
 #endif
 }
 
-#ifdef CONFIG_BOARD_RNG_SEED
 unsigned int random(void)
 {
 	volatile unsigned int val;
@@ -391,7 +390,6 @@
 
 	return 0;
 }
-#endif
 
 #ifdef CONFIG_AML_DEFENV
 const char * const _aml_env_reserv_array[] = {
diff --git a/common/fdt_support.c b/common/fdt_support.c
index ebebffc..0b40ddd 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -296,7 +296,11 @@
 	if (nodeoffset < 0)
 		return nodeoffset;
 
+#ifndef CONFIG_AMLOGIC_MODIFY
 	if (IS_ENABLED(CONFIG_BOARD_RNG_SEED) && !board_rng_seed(&buf)) {
+#else
+	if (!board_rng_seed(&buf)) {
+#endif
 		err = fdt_setprop(fdt, nodeoffset, "rng-seed",
 				  abuf_data(&buf), abuf_size(&buf));
 		abuf_uninit(&buf);