diff options
Diffstat (limited to 'drivers/net/fs_enet')
-rw-r--r-- | drivers/net/fs_enet/Kconfig | 11 | ||||
-rw-r--r-- | drivers/net/fs_enet/Makefile | 15 |
2 files changed, 22 insertions, 4 deletions
diff --git a/drivers/net/fs_enet/Kconfig b/drivers/net/fs_enet/Kconfig index 2765e49e07df..562ea68ed99b 100644 --- a/drivers/net/fs_enet/Kconfig +++ b/drivers/net/fs_enet/Kconfig | |||
@@ -2,6 +2,7 @@ config FS_ENET | |||
2 | tristate "Freescale Ethernet Driver" | 2 | tristate "Freescale Ethernet Driver" |
3 | depends on CPM1 || CPM2 | 3 | depends on CPM1 || CPM2 |
4 | select MII | 4 | select MII |
5 | select PHYLIB | ||
5 | 6 | ||
6 | config FS_ENET_HAS_SCC | 7 | config FS_ENET_HAS_SCC |
7 | bool "Chip has an SCC usable for ethernet" | 8 | bool "Chip has an SCC usable for ethernet" |
@@ -11,11 +12,19 @@ config FS_ENET_HAS_SCC | |||
11 | config FS_ENET_HAS_FCC | 12 | config FS_ENET_HAS_FCC |
12 | bool "Chip has an FCC usable for ethernet" | 13 | bool "Chip has an FCC usable for ethernet" |
13 | depends on FS_ENET && CPM2 | 14 | depends on FS_ENET && CPM2 |
14 | select MDIO_BITBANG | ||
15 | default y | 15 | default y |
16 | 16 | ||
17 | config FS_ENET_HAS_FEC | 17 | config FS_ENET_HAS_FEC |
18 | bool "Chip has an FEC usable for ethernet" | 18 | bool "Chip has an FEC usable for ethernet" |
19 | depends on FS_ENET && CPM1 | 19 | depends on FS_ENET && CPM1 |
20 | select FS_ENET_MDIO_FEC | ||
20 | default y | 21 | default y |
21 | 22 | ||
23 | config FS_ENET_MDIO_FEC | ||
24 | tristate "MDIO driver for FEC" | ||
25 | depends on FS_ENET && CPM1 | ||
26 | |||
27 | config FS_ENET_MDIO_FCC | ||
28 | tristate "MDIO driver for FCC" | ||
29 | depends on FS_ENET && CPM2 | ||
30 | select MDIO_BITBANG | ||
diff --git a/drivers/net/fs_enet/Makefile b/drivers/net/fs_enet/Makefile index 02d4dc18ba69..1ffbe0756a0c 100644 --- a/drivers/net/fs_enet/Makefile +++ b/drivers/net/fs_enet/Makefile | |||
@@ -4,7 +4,16 @@ | |||
4 | 4 | ||
5 | obj-$(CONFIG_FS_ENET) += fs_enet.o | 5 | obj-$(CONFIG_FS_ENET) += fs_enet.o |
6 | 6 | ||
7 | obj-$(CONFIG_8xx) += mac-fec.o mac-scc.o mii-fec.o | 7 | fs_enet-$(CONFIG_FS_ENET_HAS_SCC) += mac-scc.o |
8 | obj-$(CONFIG_CPM2) += mac-fcc.o mii-bitbang.o | 8 | fs_enet-$(CONFIG_FS_ENET_HAS_FEC) += mac-fec.o |
9 | fs_enet-$(CONFIG_FS_ENET_HAS_FCC) += mac-fcc.o | ||
9 | 10 | ||
10 | fs_enet-objs := fs_enet-main.o | 11 | ifeq ($(CONFIG_PPC_CPM_NEW_BINDING),y) |
12 | obj-$(CONFIG_FS_ENET_MDIO_FEC) += mii-fec.o | ||
13 | obj-$(CONFIG_FS_ENET_MDIO_FCC) += mii-bitbang.o | ||
14 | else | ||
15 | fs_enet-$(CONFIG_FS_ENET_MDIO_FEC) += mii-fec.o | ||
16 | fs_enet-$(CONFIG_FS_ENET_MDIO_FCC) += mii-bitbang.o | ||
17 | endif | ||
18 | |||
19 | fs_enet-objs := fs_enet-main.o $(fs_enet-m) | ||