1 /* 2 * Copyright (C) 2010 Texas Instruments 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 * SPDX-License-Identifier: GPL-2.0+ 17 * 18 */ 19 20 #ifndef _EMAC_DEFS_H_ 21 #define _EMAC_DEFS_H_ 22 23 #ifdef CONFIG_TI816X 24 #define EMAC_BASE_ADDR (0x4A100000) 25 #define EMAC_WRAPPER_BASE_ADDR (0x4A100900) 26 #define EMAC_WRAPPER_RAM_ADDR (0x4A102000) 27 #define EMAC_MDIO_BASE_ADDR (0x4A100800) 28 #define EMAC_MDIO_BUS_FREQ (250000000UL) 29 #define EMAC_MDIO_CLOCK_FREQ (2000000UL) 30 31 typedef volatile unsigned int dv_reg; 32 typedef volatile unsigned int *dv_reg_p; 33 34 #define DAVINCI_EMAC_VERSION2 35 #define DAVINCI_EMAC_GIG_ENABLE 36 #endif 37 38 #endif /* _EMAC_DEFS_H_ */ 39