mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-27 20:38:52 +09:00
![Neil Armstrong](/assets/img/avatar_default.png)
Introduce a generic common Ethernet Hardware init function common to all Amlogic GX SoCs with support for the Internal PHY enable for GXL SoCs. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
24 lines
478 B
C
24 lines
478 B
C
/*
|
|
* Copyright (C) 2016 BayLibre, SAS
|
|
* Author: Neil Armstrong <narmstrong@baylibre.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __MESON_ETH_H__
|
|
#define __MESON_ETH_H__
|
|
|
|
#include <phy.h>
|
|
|
|
enum {
|
|
/* Use GXL Internal RMII PHY */
|
|
MESON_GXL_USE_INTERNAL_RMII_PHY = 1,
|
|
};
|
|
|
|
/* Configure the Ethernet MAC with the requested interface mode
|
|
* with some optional flags.
|
|
*/
|
|
void meson_gx_eth_init(phy_interface_t mode, unsigned int flags);
|
|
|
|
#endif /* __MESON_ETH_H__ */
|