summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-meson/eth.h
blob: f765cd7c4ca1ba4c0bbc9bbb694017b229fab669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (C) 2016 BayLibre, SAS
 * Author: Neil Armstrong <narmstrong@baylibre.com>
 */

#ifndef __MESON_ETH_H__
#define __MESON_ETH_H__

#include <phy.h>

enum {
	/* Use Internal RMII PHY */
	MESON_USE_INTERNAL_RMII_PHY = 1,
};

/* Configure the Ethernet MAC with the requested interface mode
 * with some optional flags.
 */
void meson_eth_init(phy_interface_t mode, unsigned int flags);

/* Generate an unique MAC address based on the HW serial */
int meson_generate_serial_ethaddr(void);

#endif /* __MESON_ETH_H__ */