blob: 8506c555d5d1f6b2b3ed140c18bd7dffbf4e855c [file] [log] [blame]
Ilya Yanokd2452ea2011-11-28 06:37:35 +00001/*
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 * 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.
20 *
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.
25 *
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 * ----------------------------------------------------------------------------
30
31 * Modifications:
32 * ver. 1.0: Sep 2005, TI PSP Team - Created EMAC version for uBoot.
33 *
34 */
35
36#ifndef _AM3517_EMAC_H_
37#define _AM3517_EMAC_H_
38
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
44
45#define EMAC_MDIO_BUS_FREQ 166000000 /* 166 MHZ check */
46#define EMAC_MDIO_CLOCK_FREQ 1000000 /* 2.0 MHz */
47
48/* SOFTRESET macro definition interferes with emac_regs structure definition */
49#undef SOFTRESET
50
51typedef volatile unsigned int dv_reg;
52typedef volatile unsigned int *dv_reg_p;
53
54#define DAVINCI_EMAC_VERSION2
55
56#endif /* _AM3517_EMAC_H_ */