blob: 7c6c19ba0fa38a3a05e88f3f53540372d49ddd88 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Sergey Kubushyne8f39122007-08-10 20:26:18 +02002/*
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 Kubushyne8f39122007-08-10 20:26:18 +020017 * Modifications:
18 * ver. 1.0: Sep 2005, TI PSP Team - Created EMAC version for uBoot.
Sergey Kubushyne8f39122007-08-10 20:26:18 +020019 */
20
21#ifndef _DM644X_EMAC_H_
22#define _DM644X_EMAC_H_
23
24#include <asm/arch/hardware.h>
25
Nick Thompsond5ee6f62009-12-18 13:33:07 +000026#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 Thompsond5ee6f62009-12-18 13:33:07 +000031
Nick Thompsond5ee6f62009-12-18 13:33:07 +000032/* 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.come338f7e2009-05-12 11:45:34 -040036
Sergey Kubushyne8f39122007-08-10 20:26:18 +020037#endif /* _DM644X_EMAC_H_ */