blob: 96146b6e328fc338a3d1cd4fbb4b7a04aa66c019 [file] [log] [blame]
Kumar Gala3bc2d8d2010-09-30 09:14:40 -05001/*
2 * Copyright 2010 Freescale Semiconductor, Inc.
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Kumar Gala3bc2d8d2010-09-30 09:14:40 -05005 */
6
7#ifndef __ASM_PPC_FSL_ENET_H
8#define __ASM_PPC_FSL_ENET_H
9
Andy Fleming7832a462011-04-13 00:37:12 -050010#include <phy.h>
Kumar Gala3bc2d8d2010-09-30 09:14:40 -050011
Andy Fleming422effd2011-04-08 02:10:54 -050012struct tsec_mii_mng {
13 u32 miimcfg; /* MII management configuration reg */
14 u32 miimcom; /* MII management command reg */
15 u32 miimadd; /* MII management address reg */
16 u32 miimcon; /* MII management control reg */
17 u32 miimstat; /* MII management status reg */
18 u32 miimind; /* MII management indication reg */
19 u32 ifstat; /* Interface Status Register */
20} __attribute__ ((packed));
21
Andy Fleming7832a462011-04-13 00:37:12 -050022int fdt_fixup_phy_connection(void *blob, int offset, phy_interface_t phyc);
Kumar Gala6bc9fd52010-09-30 09:15:03 -050023
Kumar Gala3bc2d8d2010-09-30 09:14:40 -050024#endif /* __ASM_PPC_FSL_ENET_H */