Prepare v2023.10
[platform/kernel/u-boot.git] / arch / arm / include / asm / arch-omap3 / emac_defs.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
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  *
17  * Modifications:
18  * ver. 1.0: Sep 2005, TI PSP Team - Created EMAC version for uBoot.
19  */
20
21 #ifndef _AM3517_EMAC_H_
22 #define _AM3517_EMAC_H_
23
24 #define EMAC_BASE_ADDR                 0x5C010000
25 #define EMAC_WRAPPER_BASE_ADDR         0x5C000000
26 #define EMAC_WRAPPER_RAM_ADDR          0x5C020000
27 #define EMAC_MDIO_BASE_ADDR            0x5C030000
28 #define EMAC_HW_RAM_ADDR               0x01E20000
29
30 #define EMAC_MDIO_BUS_FREQ             166000000       /* 166 MHZ check */
31 #define EMAC_MDIO_CLOCK_FREQ           1000000         /* 2.0 MHz */
32
33 /* SOFTRESET macro definition interferes with emac_regs structure definition */
34 #undef SOFTRESET
35
36 typedef volatile unsigned int   dv_reg;
37 typedef volatile unsigned int   *dv_reg_p;
38
39 #define DAVINCI_EMAC_VERSION2
40
41 #endif  /* _AM3517_EMAC_H_ */