xref: /openbmc/u-boot/arch/arm/include/asm/arch-meson/eth.h (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
26915b103SNeil Armstrong /*
36915b103SNeil Armstrong  * Copyright (C) 2016 BayLibre, SAS
46915b103SNeil Armstrong  * Author: Neil Armstrong <narmstrong@baylibre.com>
56915b103SNeil Armstrong  */
66915b103SNeil Armstrong 
76915b103SNeil Armstrong #ifndef __MESON_ETH_H__
86915b103SNeil Armstrong #define __MESON_ETH_H__
96915b103SNeil Armstrong 
106915b103SNeil Armstrong #include <phy.h>
116915b103SNeil Armstrong 
126915b103SNeil Armstrong enum {
136915b103SNeil Armstrong 	/* Use GXL Internal RMII PHY */
146915b103SNeil Armstrong 	MESON_GXL_USE_INTERNAL_RMII_PHY = 1,
156915b103SNeil Armstrong };
166915b103SNeil Armstrong 
176915b103SNeil Armstrong /* Configure the Ethernet MAC with the requested interface mode
186915b103SNeil Armstrong  * with some optional flags.
196915b103SNeil Armstrong  */
206915b103SNeil Armstrong void meson_gx_eth_init(phy_interface_t mode, unsigned int flags);
216915b103SNeil Armstrong 
226915b103SNeil Armstrong #endif /* __MESON_ETH_H__ */
23