net/ethoc: add Kconfig entry for the driver
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 5 Aug 2016 15:26:15 +0000 (18:26 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 15 Aug 2016 18:34:46 +0000 (13:34 -0500)
Add Kconfig entry for the driver, remove #define CONFIG_ETHOC from the
only board configuration that uses it and put it into that board's
defconfig.

Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
configs/openrisc-generic_defconfig
drivers/net/Kconfig
include/configs/openrisc-generic.h

index 14923c09785b8d42dffebfa4b502e316962cd85a..5bc81cc980bed4899cd24ae17a69eb54207e3656 100644 (file)
@@ -6,5 +6,7 @@ CONFIG_TARGET_OPENRISC_GENERIC=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
+CONFIG_NETDEVICES=y
+CONFIG_ETHOC=y
 CONFIG_SYS_NS16550=y
 # CONFIG_AUTOBOOT is not set
index 88d8e83906a10b314db1d4730b4e9be8e3dcf896..be3ed73e52219fbc9179c9d7553cf5887b86c407 100644 (file)
@@ -124,6 +124,11 @@ config ETH_DESIGNWARE
          100Mbit and 1 Gbit operation. You must enable CONFIG_PHYLIB to
          provide the PHY (physical media interface).
 
+config ETHOC
+       bool "OpenCores 10/100 Mbps Ethernet MAC"
+       help
+         This MAC is present in OpenRISC and Xtensa XTFPGA boards.
+
 config MVPP2
        bool "Marvell Armada 375 network interface support"
        depends on ARMADA_375
index 913256a02bd0bb8de49a2d09254f2c9a7573da3b..227c0ca84bc1f4afb308a5b0829adbf8e2a23008 100644 (file)
@@ -44,7 +44,6 @@
 /*
  * Ethernet
  */
-#define CONFIG_ETHOC
 #define CONFIG_SYS_ETHOC_BASE          0x92000000
 
 #define CONFIG_BOOTFILE                        "boot.img"