1 /*
2  * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
3  *
4  * Based on:
5  *
6  * ----------------------------------------------------------------------------
7  *
8  * dm644x_emac.h
9  *
10  * TI DaVinci (DM644X) EMAC peripheral driver header for DV-EVM
11  *
12  * Copyright (C) 2005 Texas Instruments.
13  *
14  * ----------------------------------------------------------------------------
15  *
16  * SPDX-License-Identifier:	GPL-2.0+
17  *
18  * Modifications:
19  * ver. 1.0: Sep 2005, TI PSP Team - Created EMAC version for uBoot.
20  */
21 
22 #ifndef _AM3517_EMAC_H_
23 #define _AM3517_EMAC_H_
24 
25 #define EMAC_BASE_ADDR                 0x5C010000
26 #define EMAC_WRAPPER_BASE_ADDR         0x5C000000
27 #define EMAC_WRAPPER_RAM_ADDR          0x5C020000
28 #define EMAC_MDIO_BASE_ADDR            0x5C030000
29 #define EMAC_HW_RAM_ADDR               0x01E20000
30 
31 #define EMAC_MDIO_BUS_FREQ             166000000       /* 166 MHZ check */
32 #define EMAC_MDIO_CLOCK_FREQ           1000000         /* 2.0 MHz */
33 
34 /* SOFTRESET macro definition interferes with emac_regs structure definition */
35 #undef SOFTRESET
36 
37 typedef volatile unsigned int	dv_reg;
38 typedef volatile unsigned int	*dv_reg_p;
39 
40 #define DAVINCI_EMAC_VERSION2
41 
42 #endif  /* _AM3517_EMAC_H_ */
43