mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 16:26:43 +07:00
49da97dcb6
Add mac field into fec_platform_data and consolidate function fec_get_mac to get mac address in following order. 1) module parameter via kernel command line fec.macaddr=0x00,0x04,... 2) from flash in case of CONFIG_M5272 or fec_platform_data mac field for others, which typically have mac stored in fuse 3) fec mac address registers set by bootloader Signed-off-by: Shawn Guo <shawn.guo@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
25 lines
568 B
C
25 lines
568 B
C
/* include/linux/fec.h
|
|
*
|
|
* Copyright (c) 2009 Orex Computed Radiography
|
|
* Baruch Siach <baruch@tkos.co.il>
|
|
*
|
|
* Copyright (C) 2010 Freescale Semiconductor, Inc.
|
|
*
|
|
* Header file for the FEC platform data
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef __LINUX_FEC_H__
|
|
#define __LINUX_FEC_H__
|
|
|
|
#include <linux/phy.h>
|
|
|
|
struct fec_platform_data {
|
|
phy_interface_t phy;
|
|
unsigned char mac[ETH_ALEN];
|
|
};
|
|
|
|
#endif
|