Skip to content

Commit 78cc6e7

Browse files
ffainellidavem330
authored andcommitted
net: ethernet: freescale: Allow FEC with COMPILE_TEST
The Freescale FEC driver builds fine with COMPILE_TEST, so make that possible. Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2652113 commit 78cc6e7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/net/ethernet/freescale/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if NET_VENDOR_FREESCALE
2222
config FEC
2323
tristate "FEC ethernet controller (of ColdFire and some i.MX CPUs)"
2424
depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \
25-
ARCH_MXC || SOC_IMX28)
25+
ARCH_MXC || SOC_IMX28 || COMPILE_TEST)
2626
default ARCH_MXC || SOC_IMX28 if ARM
2727
select PHYLIB
2828
imply PTP_1588_CLOCK

drivers/net/ethernet/freescale/fec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
2323
defined(CONFIG_M520x) || defined(CONFIG_M532x) || defined(CONFIG_ARM) || \
24-
defined(CONFIG_ARM64)
24+
defined(CONFIG_ARM64) || defined(CONFIG_COMPILE_TEST)
2525
/*
2626
* Just figures, Motorola would have to change the offsets for
2727
* registers in the same peripheral device on different models

drivers/net/ethernet/freescale/fec_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2107,7 +2107,7 @@ static int fec_enet_get_regs_len(struct net_device *ndev)
21072107
/* List of registers that can be safety be read to dump them with ethtool */
21082108
#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
21092109
defined(CONFIG_M520x) || defined(CONFIG_M532x) || defined(CONFIG_ARM) || \
2110-
defined(CONFIG_ARM64)
2110+
defined(CONFIG_ARM64) || defined(CONFIG_COMPILE_TEST)
21112111
static u32 fec_enet_register_offset[] = {
21122112
FEC_IEVENT, FEC_IMASK, FEC_R_DES_ACTIVE_0, FEC_X_DES_ACTIVE_0,
21132113
FEC_ECNTRL, FEC_MII_DATA, FEC_MII_SPEED, FEC_MIB_CTRLSTAT, FEC_R_CNTRL,

0 commit comments

Comments
 (0)