1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
4  *
5  * Based on:
6  *
7  * ----------------------------------------------------------------------------
8  *
9  * dm644x_emac.h
10  *
11  * TI DaVinci (DM644X) EMAC peripheral driver header for DV-EVM
12  *
13  * Copyright (C) 2005 Texas Instruments.
14  *
15  * ----------------------------------------------------------------------------
16  *
17  * Modifications:
18  * ver. 1.0: Sep 2005, TI PSP Team - Created EMAC version for uBoot.
19  */
20 
21 #ifndef _DM644X_EMAC_H_
22 #define _DM644X_EMAC_H_
23 
24 #include <asm/arch/hardware.h>
25 
26 #define EMAC_BASE_ADDR			DAVINCI_EMAC_CNTRL_REGS_BASE
27 #define EMAC_WRAPPER_BASE_ADDR		DAVINCI_EMAC_WRAPPER_CNTRL_REGS_BASE
28 #define EMAC_WRAPPER_RAM_ADDR		DAVINCI_EMAC_WRAPPER_RAM_BASE
29 #define EMAC_MDIO_BASE_ADDR		DAVINCI_MDIO_CNTRL_REGS_BASE
30 #define DAVINCI_EMAC_VERSION2
31 
32 /* MDIO module input frequency */
33 #define EMAC_MDIO_BUS_FREQ		clk_get(DAVINCI_MDIO_CLKID)
34 /* MDIO clock output frequency */
35 #define EMAC_MDIO_CLOCK_FREQ		2000000		/* 2.0 MHz */
36 
37 #endif  /* _DM644X_EMAC_H_ */
38