soc/sifive/fu540: Document #if ENV_ROMSTAGE line

Change-Id: Idcd72c558e46637b1b99e9613963436fedd4a8b9
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-on: https://review.coreboot.org/28699
Reviewed-by: Philipp Hug <philipp@hug.cx>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Jonathan Neuschäfer 2018-09-20 16:55:33 +02:00 committed by Ronald G. Minnich
parent 0fb58f32c4
commit 8ac6a19155
1 changed files with 2 additions and 3 deletions

View File

@ -121,8 +121,8 @@ static struct prci_ctlr *prci = (void *)FU540_PRCI;
// 33.33 Mhz after reset
#define FU540_BASE_FQY 33330
/* Clock initialization should only be done in romstage. */
#if ENV_ROMSTAGE
static void init_coreclk(void)
{
// switch coreclk to input reference frequency before modifying PLL
@ -240,8 +240,7 @@ void clock_init(void)
for (int i = 0; i < 256; i++)
asm volatile ("nop");
}
#endif
#endif /* ENV_ROMSTAGE */
int clock_get_coreclk_khz(void)
{