blob: eb6516da93c24c1928547b85a06498ea05a05fd2 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Tom Rinic3cf8992017-05-10 12:01:02 -04002/*
3 * Copyright (C) 2010 Texas Instruments
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 *
Tom Rinic3cf8992017-05-10 12:01:02 -040017 */
18
19#ifndef _EMAC_DEFS_H_
20#define _EMAC_DEFS_H_
21
22#ifdef CONFIG_TI816X
23#define EMAC_BASE_ADDR (0x4A100000)
24#define EMAC_WRAPPER_BASE_ADDR (0x4A100900)
25#define EMAC_WRAPPER_RAM_ADDR (0x4A102000)
26#define EMAC_MDIO_BASE_ADDR (0x4A100800)
27#define EMAC_MDIO_BUS_FREQ (250000000UL)
28#define EMAC_MDIO_CLOCK_FREQ (2000000UL)
29
30typedef volatile unsigned int dv_reg;
31typedef volatile unsigned int *dv_reg_p;
32
33#define DAVINCI_EMAC_VERSION2
34#define DAVINCI_EMAC_GIG_ENABLE
35#endif
36
37#endif /* _EMAC_DEFS_H_ */