Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Tom Rini | c3cf899 | 2017-05-10 12:01:02 -0400 | [diff] [blame] | 2 | /* |
| 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 Rini | c3cf899 | 2017-05-10 12:01:02 -0400 | [diff] [blame] | 17 | */ |
| 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 | |
| 30 | typedef volatile unsigned int dv_reg; |
| 31 | typedef 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_ */ |