183d290c5STom 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 { 13*33e33780SJerome Brunet /* Use Internal RMII PHY */ 14*33e33780SJerome Brunet MESON_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 */ 20*33e33780SJerome Brunet void meson_eth_init(phy_interface_t mode, unsigned int flags); 216915b103SNeil Armstrong 226915b103SNeil Armstrong #endif /* __MESON_ETH_H__ */ 23