0050-net-next-mediatek-add-Kconfig-and-Makefile.patch 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. From 31e907e5c3c2fc1c94d005bfccdd4a32b5a05f82 Mon Sep 17 00:00:00 2001
  2. From: John Crispin <blogic@openwrt.org>
  3. Date: Wed, 2 Mar 2016 04:32:43 +0100
  4. Subject: [PATCH 050/102] net-next: mediatek: add Kconfig and Makefile
  5. This patch adds the Makefile and Kconfig required to make the driver build.
  6. Signed-off-by: John Crispin <blogic@openwrt.org>
  7. ---
  8. drivers/net/ethernet/Kconfig | 1 +
  9. drivers/net/ethernet/Makefile | 1 +
  10. drivers/net/ethernet/mediatek/Kconfig | 17 +++++++++++++++++
  11. drivers/net/ethernet/mediatek/Makefile | 5 +++++
  12. 4 files changed, 24 insertions(+)
  13. create mode 100644 drivers/net/ethernet/mediatek/Kconfig
  14. create mode 100644 drivers/net/ethernet/mediatek/Makefile
  15. --- a/drivers/net/ethernet/Kconfig
  16. +++ b/drivers/net/ethernet/Kconfig
  17. @@ -106,6 +106,7 @@ config LANTIQ_ETOP
  18. Support for the MII0 inside the Lantiq SoC
  19. source "drivers/net/ethernet/marvell/Kconfig"
  20. +source "drivers/net/ethernet/mediatek/Kconfig"
  21. source "drivers/net/ethernet/mellanox/Kconfig"
  22. source "drivers/net/ethernet/micrel/Kconfig"
  23. source "drivers/net/ethernet/microchip/Kconfig"
  24. --- a/drivers/net/ethernet/Makefile
  25. +++ b/drivers/net/ethernet/Makefile
  26. @@ -46,6 +46,7 @@ obj-$(CONFIG_JME) += jme.o
  27. obj-$(CONFIG_KORINA) += korina.o
  28. obj-$(CONFIG_LANTIQ_ETOP) += lantiq_etop.o
  29. obj-$(CONFIG_NET_VENDOR_MARVELL) += marvell/
  30. +obj-$(CONFIG_NET_VENDOR_MEDIATEK) += mediatek/
  31. obj-$(CONFIG_NET_VENDOR_MELLANOX) += mellanox/
  32. obj-$(CONFIG_NET_VENDOR_MICREL) += micrel/
  33. obj-$(CONFIG_NET_VENDOR_MICROCHIP) += microchip/
  34. --- /dev/null
  35. +++ b/drivers/net/ethernet/mediatek/Kconfig
  36. @@ -0,0 +1,17 @@
  37. +config NET_VENDOR_MEDIATEK
  38. + bool "MediaTek ethernet driver"
  39. + depends on ARCH_MEDIATEK
  40. + ---help---
  41. + If you have a Mediatek SoC with ethernet, say Y.
  42. +
  43. +if NET_VENDOR_MEDIATEK
  44. +
  45. +config NET_MEDIATEK_SOC
  46. + tristate "MediaTek MT7623 Gigabit ethernet support"
  47. + depends on NET_VENDOR_MEDIATEK #&& (MACH_MT7623 || MACH_MT2701)
  48. + select PHYLIB
  49. + ---help---
  50. + This driver supports the gigabit ethernet MACs in the
  51. + MediaTek MT2701/MT7623 chipset family.
  52. +
  53. +endif #NET_VENDOR_MEDIATEK
  54. --- /dev/null
  55. +++ b/drivers/net/ethernet/mediatek/Makefile
  56. @@ -0,0 +1,5 @@
  57. +#
  58. +# Makefile for the Mediatek SoCs built-in ethernet macs
  59. +#
  60. +
  61. +obj-$(CONFIG_NET_MEDIATEK_SOC) += mtk_eth_soc.o