Commit 26cf820d49ee23472191824000b3234c4bffb1a5
Committed by
David S. Miller
1 parent
e163cc97f9
Exists in
master
and in
6 other branches
net/fec: make FEC driver buildable as module
Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de> Tested-by: Shawn Guo <shawn.guo@linaro.org> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 1 additions and 1 deletions Inline Diff
drivers/net/ethernet/freescale/Kconfig
1 | # | 1 | # |
2 | # Freescale device configuration | 2 | # Freescale device configuration |
3 | # | 3 | # |
4 | 4 | ||
5 | config NET_VENDOR_FREESCALE | 5 | config NET_VENDOR_FREESCALE |
6 | bool "Freescale devices" | 6 | bool "Freescale devices" |
7 | default y | 7 | default y |
8 | depends on FSL_SOC || QUICC_ENGINE || CPM1 || CPM2 || PPC_MPC512x || \ | 8 | depends on FSL_SOC || QUICC_ENGINE || CPM1 || CPM2 || PPC_MPC512x || \ |
9 | M523x || M527x || M5272 || M528x || M520x || M532x || \ | 9 | M523x || M527x || M5272 || M528x || M520x || M532x || \ |
10 | ARCH_MXC || ARCH_MXS || (PPC_MPC52xx && PPC_BESTCOMM) | 10 | ARCH_MXC || ARCH_MXS || (PPC_MPC52xx && PPC_BESTCOMM) |
11 | ---help--- | 11 | ---help--- |
12 | If you have a network (Ethernet) card belonging to this class, say Y | 12 | If you have a network (Ethernet) card belonging to this class, say Y |
13 | and read the Ethernet-HOWTO, available from | 13 | and read the Ethernet-HOWTO, available from |
14 | <http://www.tldp.org/docs.html#howto>. | 14 | <http://www.tldp.org/docs.html#howto>. |
15 | 15 | ||
16 | Note that the answer to this question doesn't directly affect the | 16 | Note that the answer to this question doesn't directly affect the |
17 | kernel: saying N will just cause the configurator to skip all | 17 | kernel: saying N will just cause the configurator to skip all |
18 | the questions about Freescale devices. If you say Y, you will be | 18 | the questions about Freescale devices. If you say Y, you will be |
19 | asked for your specific card in the following questions. | 19 | asked for your specific card in the following questions. |
20 | 20 | ||
21 | if NET_VENDOR_FREESCALE | 21 | if NET_VENDOR_FREESCALE |
22 | 22 | ||
23 | config FEC | 23 | config FEC |
24 | bool "FEC ethernet controller (of ColdFire and some i.MX CPUs)" | 24 | tristate "FEC ethernet controller (of ColdFire and some i.MX CPUs)" |
25 | depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \ | 25 | depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \ |
26 | ARCH_MXC || ARCH_MXS) | 26 | ARCH_MXC || ARCH_MXS) |
27 | default ARCH_MXC || ARCH_MXS if ARM | 27 | default ARCH_MXC || ARCH_MXS if ARM |
28 | select PHYLIB | 28 | select PHYLIB |
29 | ---help--- | 29 | ---help--- |
30 | Say Y here if you want to use the built-in 10/100 Fast ethernet | 30 | Say Y here if you want to use the built-in 10/100 Fast ethernet |
31 | controller on some Motorola ColdFire and Freescale i.MX processors. | 31 | controller on some Motorola ColdFire and Freescale i.MX processors. |
32 | 32 | ||
33 | config FEC_MPC52xx | 33 | config FEC_MPC52xx |
34 | tristate "FEC MPC52xx driver" | 34 | tristate "FEC MPC52xx driver" |
35 | depends on PPC_MPC52xx && PPC_BESTCOMM | 35 | depends on PPC_MPC52xx && PPC_BESTCOMM |
36 | select CRC32 | 36 | select CRC32 |
37 | select PHYLIB | 37 | select PHYLIB |
38 | select PPC_BESTCOMM_FEC | 38 | select PPC_BESTCOMM_FEC |
39 | ---help--- | 39 | ---help--- |
40 | This option enables support for the MPC5200's on-chip | 40 | This option enables support for the MPC5200's on-chip |
41 | Fast Ethernet Controller | 41 | Fast Ethernet Controller |
42 | If compiled as module, it will be called fec_mpc52xx. | 42 | If compiled as module, it will be called fec_mpc52xx. |
43 | 43 | ||
44 | config FEC_MPC52xx_MDIO | 44 | config FEC_MPC52xx_MDIO |
45 | bool "FEC MPC52xx MDIO bus driver" | 45 | bool "FEC MPC52xx MDIO bus driver" |
46 | depends on FEC_MPC52xx | 46 | depends on FEC_MPC52xx |
47 | default y | 47 | default y |
48 | ---help--- | 48 | ---help--- |
49 | The MPC5200's FEC can connect to the Ethernet either with | 49 | The MPC5200's FEC can connect to the Ethernet either with |
50 | an external MII PHY chip or 10 Mbps 7-wire interface | 50 | an external MII PHY chip or 10 Mbps 7-wire interface |
51 | (Motorola? industry standard). | 51 | (Motorola? industry standard). |
52 | If your board uses an external PHY connected to FEC, enable this. | 52 | If your board uses an external PHY connected to FEC, enable this. |
53 | If not sure, enable. | 53 | If not sure, enable. |
54 | If compiled as module, it will be called fec_mpc52xx_phy. | 54 | If compiled as module, it will be called fec_mpc52xx_phy. |
55 | 55 | ||
56 | source "drivers/net/ethernet/freescale/fs_enet/Kconfig" | 56 | source "drivers/net/ethernet/freescale/fs_enet/Kconfig" |
57 | 57 | ||
58 | config FSL_PQ_MDIO | 58 | config FSL_PQ_MDIO |
59 | tristate "Freescale PQ MDIO" | 59 | tristate "Freescale PQ MDIO" |
60 | depends on FSL_SOC | 60 | depends on FSL_SOC |
61 | select PHYLIB | 61 | select PHYLIB |
62 | ---help--- | 62 | ---help--- |
63 | This driver supports the MDIO bus used by the gianfar and UCC drivers. | 63 | This driver supports the MDIO bus used by the gianfar and UCC drivers. |
64 | 64 | ||
65 | config UCC_GETH | 65 | config UCC_GETH |
66 | tristate "Freescale QE Gigabit Ethernet" | 66 | tristate "Freescale QE Gigabit Ethernet" |
67 | depends on QUICC_ENGINE | 67 | depends on QUICC_ENGINE |
68 | select FSL_PQ_MDIO | 68 | select FSL_PQ_MDIO |
69 | select PHYLIB | 69 | select PHYLIB |
70 | ---help--- | 70 | ---help--- |
71 | This driver supports the Gigabit Ethernet mode of the QUICC Engine, | 71 | This driver supports the Gigabit Ethernet mode of the QUICC Engine, |
72 | which is available on some Freescale SOCs. | 72 | which is available on some Freescale SOCs. |
73 | 73 | ||
74 | config UGETH_TX_ON_DEMAND | 74 | config UGETH_TX_ON_DEMAND |
75 | bool "Transmit on Demand support" | 75 | bool "Transmit on Demand support" |
76 | depends on UCC_GETH | 76 | depends on UCC_GETH |
77 | 77 | ||
78 | config GIANFAR | 78 | config GIANFAR |
79 | tristate "Gianfar Ethernet" | 79 | tristate "Gianfar Ethernet" |
80 | depends on FSL_SOC | 80 | depends on FSL_SOC |
81 | select FSL_PQ_MDIO | 81 | select FSL_PQ_MDIO |
82 | select PHYLIB | 82 | select PHYLIB |
83 | select CRC32 | 83 | select CRC32 |
84 | ---help--- | 84 | ---help--- |
85 | This driver supports the Gigabit TSEC on the MPC83xx, MPC85xx, | 85 | This driver supports the Gigabit TSEC on the MPC83xx, MPC85xx, |
86 | and MPC86xx family of chips, and the FEC on the 8540. | 86 | and MPC86xx family of chips, and the FEC on the 8540. |
87 | 87 | ||
88 | endif # NET_VENDOR_FREESCALE | 88 | endif # NET_VENDOR_FREESCALE |
89 | 89 |