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 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License, or
19 * (at your option) any later version.
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 * ----------------------------------------------------------------------------
32 * ver. 1.0: Sep 2005, TI PSP Team - Created EMAC version for uBoot.
36 #ifndef _AM3517_EMAC_H_
37 #define _AM3517_EMAC_H_
39 #define EMAC_BASE_ADDR 0x5C010000
40 #define EMAC_WRAPPER_BASE_ADDR 0x5C000000
41 #define EMAC_WRAPPER_RAM_ADDR 0x5C020000
42 #define EMAC_MDIO_BASE_ADDR 0x5C030000
43 #define EMAC_HW_RAM_ADDR 0x01E20000
45 #define EMAC_MDIO_BUS_FREQ 166000000 /* 166 MHZ check */
46 #define EMAC_MDIO_CLOCK_FREQ 1000000 /* 2.0 MHz */
48 /* SOFTRESET macro definition interferes with emac_regs structure definition */
51 typedef volatile unsigned int dv_reg;
52 typedef volatile unsigned int *dv_reg_p;
54 #define DAVINCI_EMAC_VERSION2
56 #endif /* _AM3517_EMAC_H_ */