blob: 0f4b934993a33696f83730c1324a6546ac61c71f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Ilya Yanokd2452ea2011-11-28 06:37:35 +00002/*
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 *
Ilya Yanokd2452ea2011-11-28 06:37:35 +000017 * Modifications:
18 * ver. 1.0: Sep 2005, TI PSP Team - Created EMAC version for uBoot.
Ilya Yanokd2452ea2011-11-28 06:37:35 +000019 */
20
21#ifndef _AM3517_EMAC_H_
22#define _AM3517_EMAC_H_
23
24#define EMAC_BASE_ADDR 0x5C010000
25#define EMAC_WRAPPER_BASE_ADDR 0x5C000000
26#define EMAC_WRAPPER_RAM_ADDR 0x5C020000
27#define EMAC_MDIO_BASE_ADDR 0x5C030000
28#define EMAC_HW_RAM_ADDR 0x01E20000
29
30#define EMAC_MDIO_BUS_FREQ 166000000 /* 166 MHZ check */
31#define EMAC_MDIO_CLOCK_FREQ 1000000 /* 2.0 MHz */
32
33/* SOFTRESET macro definition interferes with emac_regs structure definition */
34#undef SOFTRESET
35
36typedef volatile unsigned int dv_reg;
37typedef volatile unsigned int *dv_reg_p;
38
39#define DAVINCI_EMAC_VERSION2
40
41#endif /* _AM3517_EMAC_H_ */