ethernet: arc: Add support for specific SoC layer device tree bindings
authorRomain Perier <romain.perier@gmail.com>
Tue, 26 Aug 2014 13:14:51 +0000 (13:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Aug 2014 23:40:26 +0000 (16:40 -0700)
commit23d2d9a630b98a554cc328c6b69c56fd285e0129
tree265d7e4ceba509f54b494db5cdeb8d000f811d97
parent93e91b3dda17be19ecf52de2400a02c6469decfa
ethernet: arc: Add support for specific SoC layer device tree bindings

Some platforms have special bank registers which might be used to
select the correct clock or the right mode for Media Indepent Interface
controllers. Sometimes, it is also required to activate vcc regulators
in the right order to supply the ethernet controller at the right time.
This patch is an architecture refactoring of the arc-emac device driver.
It adds a new software design which allows to add specific platform
glue layer. Each platform has now its own module which performs custom
initialization and remove for the target and then calls to the
core driver.

Signed-off-by: Romain Perier <romain.perier@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/arc/Kconfig
drivers/net/ethernet/arc/Makefile
drivers/net/ethernet/arc/emac.h
drivers/net/ethernet/arc/emac_arc.c [new file with mode: 0644]
drivers/net/ethernet/arc/emac_main.c