2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2017-11-27 09:16:16 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 BayLibre, SAS
|
|
|
|
* Author: Neil Armstrong <narmstrong@baylibre.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MESON_ETH_H__
|
|
|
|
#define __MESON_ETH_H__
|
|
|
|
|
|
|
|
#include <phy.h>
|
|
|
|
|
|
|
|
enum {
|
2018-10-05 15:00:37 +00:00
|
|
|
/* Use Internal RMII PHY */
|
|
|
|
MESON_USE_INTERNAL_RMII_PHY = 1,
|
2017-11-27 09:16:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Configure the Ethernet MAC with the requested interface mode
|
|
|
|
* with some optional flags.
|
|
|
|
*/
|
2018-10-05 15:00:37 +00:00
|
|
|
void meson_eth_init(phy_interface_t mode, unsigned int flags);
|
2017-11-27 09:16:16 +00:00
|
|
|
|
|
|
|
#endif /* __MESON_ETH_H__ */
|