blob: 96146b6e328fc338a3d1cd4fbb4b7a04aa66c019 [file] [log] [blame]
Kumar Galaf8c42492010-09-30 09:14:40 -05001/*
2 * Copyright 2010 Freescale Semiconductor, Inc.
3 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Kumar Galaf8c42492010-09-30 09:14:40 -05005 */
6
7#ifndef __ASM_PPC_FSL_ENET_H
8#define __ASM_PPC_FSL_ENET_H
9
Andy Fleming865ff852011-04-13 00:37:12 -050010#include <phy.h>
Kumar Galaf8c42492010-09-30 09:14:40 -050011
Andy Fleming063c1262011-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 Fleming865ff852011-04-13 00:37:12 -050022int fdt_fixup_phy_connection(void *blob, int offset, phy_interface_t phyc);
Kumar Galaa1964ea2010-09-30 09:15:03 -050023
Kumar Galaf8c42492010-09-30 09:14:40 -050024#endif /* __ASM_PPC_FSL_ENET_H */