u-boot/include/configs/falcon.h
Tom Rini e4c3ce7e28 CONFIG_SYS_CLK_FREQ: Consistently be static or get_board_sys_clk()
This CONFIG option is used in one of two ways.  The first way is that it
is defined to a static value, of an unsigned long size.  The second way
is that it is defined to something, typically a function, to determine
this value at run time.

However, in a few cases that function returns a static value.  Change
that to using the static value directly.

In the case of using something at run time, convert everything to using
a function of the same name and prototype.  This will allow for further
cleanups.

Finally, we have a few cases where the function is just not used, so
drop it.

Signed-off-by: Tom Rini <trini@konsulko.com>
2021-12-27 16:20:18 -05:00

34 lines
737 B
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* include/configs/falcon.h
* This file is Falcon board configuration.
*
* Copyright (C) 2020 Renesas Electronics Corp.
*/
#ifndef __FALCON_H
#define __FALCON_H
#include "rcar-gen3-common.h"
/*
* Generic Interrupt Controller Definitions. Undefine v2 locations and define
* v3 locations.
*/
#undef GICD_BASE
#undef GICC_BASE
#undef GICR_BASE
#define GICD_BASE 0xF1000000
#define GICR_BASE 0xF1060000
/* Ethernet RAVB */
#define CONFIG_BITBANGMII_MULTI
/* Board Clock */
/* XTAL_CLK : 16.66MHz */
#define CONFIG_SYS_CLK_FREQ 16666666
/* Generic Timer Definitions (use in assembler source) */
#define COUNTER_FREQUENCY 0xFE502A /* 16.66MHz from CPclk */
#endif /* __FALCON_H */