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:
committed by
Ronald G. Minnich
parent
0fb58f32c4
commit
8ac6a19155
@ -121,8 +121,8 @@ static struct prci_ctlr *prci = (void *)FU540_PRCI;
|
|||||||
// 33.33 Mhz after reset
|
// 33.33 Mhz after reset
|
||||||
#define FU540_BASE_FQY 33330
|
#define FU540_BASE_FQY 33330
|
||||||
|
|
||||||
|
/* Clock initialization should only be done in romstage. */
|
||||||
#if ENV_ROMSTAGE
|
#if ENV_ROMSTAGE
|
||||||
|
|
||||||
static void init_coreclk(void)
|
static void init_coreclk(void)
|
||||||
{
|
{
|
||||||
// switch coreclk to input reference frequency before modifying PLL
|
// switch coreclk to input reference frequency before modifying PLL
|
||||||
@ -240,8 +240,7 @@ void clock_init(void)
|
|||||||
for (int i = 0; i < 256; i++)
|
for (int i = 0; i < 256; i++)
|
||||||
asm volatile ("nop");
|
asm volatile ("nop");
|
||||||
}
|
}
|
||||||
|
#endif /* ENV_ROMSTAGE */
|
||||||
#endif
|
|
||||||
|
|
||||||
int clock_get_coreclk_khz(void)
|
int clock_get_coreclk_khz(void)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user