2 * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
6 * ----------------------------------------------------------------------------
10 * TI DaVinci (DM644X) EMAC peripheral driver header for DV-EVM
12 * Copyright (C) 2005 Texas Instruments.
14 * ----------------------------------------------------------------------------
16 * SPDX-License-Identifier: GPL-2.0+
19 * ver. 1.0: Sep 2005, TI PSP Team - Created EMAC version for uBoot.
22 #ifndef _AM3517_EMAC_H_
23 #define _AM3517_EMAC_H_
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
31 #define EMAC_MDIO_BUS_FREQ 166000000 /* 166 MHZ check */
32 #define EMAC_MDIO_CLOCK_FREQ 1000000 /* 2.0 MHz */
34 /* SOFTRESET macro definition interferes with emac_regs structure definition */
37 typedef volatile unsigned int dv_reg;
38 typedef volatile unsigned int *dv_reg_p;
40 #define DAVINCI_EMAC_VERSION2
42 #endif /* _AM3517_EMAC_H_ */