Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Sergey Kubushyn | e8f3912 | 2007-08-10 20:26:18 +0200 | [diff] [blame] | 2 | /* |
| 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 | * |
Sergey Kubushyn | e8f3912 | 2007-08-10 20:26:18 +0200 | [diff] [blame] | 17 | * Modifications: |
| 18 | * ver. 1.0: Sep 2005, TI PSP Team - Created EMAC version for uBoot. |
Sergey Kubushyn | e8f3912 | 2007-08-10 20:26:18 +0200 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | #ifndef _DM644X_EMAC_H_ |
| 22 | #define _DM644X_EMAC_H_ |
| 23 | |
| 24 | #include <asm/arch/hardware.h> |
| 25 | |
Nick Thompson | d5ee6f6 | 2009-12-18 13:33:07 +0000 | [diff] [blame] | 26 | #define EMAC_BASE_ADDR DAVINCI_EMAC_CNTRL_REGS_BASE |
| 27 | #define EMAC_WRAPPER_BASE_ADDR DAVINCI_EMAC_WRAPPER_CNTRL_REGS_BASE |
| 28 | #define EMAC_WRAPPER_RAM_ADDR DAVINCI_EMAC_WRAPPER_RAM_BASE |
| 29 | #define EMAC_MDIO_BASE_ADDR DAVINCI_MDIO_CNTRL_REGS_BASE |
| 30 | #define DAVINCI_EMAC_VERSION2 |
Nick Thompson | d5ee6f6 | 2009-12-18 13:33:07 +0000 | [diff] [blame] | 31 | |
Nick Thompson | d5ee6f6 | 2009-12-18 13:33:07 +0000 | [diff] [blame] | 32 | /* MDIO module input frequency */ |
| 33 | #define EMAC_MDIO_BUS_FREQ clk_get(DAVINCI_MDIO_CLKID) |
| 34 | /* MDIO clock output frequency */ |
| 35 | #define EMAC_MDIO_CLOCK_FREQ 2000000 /* 2.0 MHz */ |
s-paulraj@ti.com | e338f7e | 2009-05-12 11:45:34 -0400 | [diff] [blame] | 36 | |
Sergey Kubushyn | e8f3912 | 2007-08-10 20:26:18 +0200 | [diff] [blame] | 37 | #endif /* _DM644X_EMAC_H_ */ |