summaryrefslogtreecommitdiff
path: root/src/soc/cavium/cn81xx/sdram.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/cavium/cn81xx/sdram.c')
-rw-r--r--src/soc/cavium/cn81xx/sdram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/cavium/cn81xx/sdram.c b/src/soc/cavium/cn81xx/sdram.c
index 080adc093c..cdfa0f75fd 100644
--- a/src/soc/cavium/cn81xx/sdram.c
+++ b/src/soc/cavium/cn81xx/sdram.c
@@ -29,7 +29,7 @@ size_t sdram_size_mb(void)
#define BDK_RNM_CTL_STATUS 0
#define BDK_RNM_RANDOM 0x100000
-#if ENV_ROMSTAGE
+#if ENV_RAMINIT
/* Enable RNG for DRAM init */
static void rnm_init(void)
{