net: lpc-enet: move phy setup into platform code
authorArnd Bergmann <arnd@arndb.de>
Fri, 9 Aug 2019 14:40:33 +0000 (16:40 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 15 Aug 2019 19:33:52 +0000 (21:33 +0200)
commitecca1a6277aac10e40e4baba28adb893899b24b3
treec36f914a8560d30ef2a188896b74429edac697aa
parent9dc03ffd996d4103cc2a11286d61e517bce27440
net: lpc-enet: move phy setup into platform code

Setting the phy mode requires touching a platform specific
register, which prevents us from building the driver without
its header files.

Move it into a separate function in arch/arm/mach/lpc32xx
to hide the core registers from the network driver.

Link: https://lore.kernel.org/r/20190809144043.476786-8-arnd@arndb.de
Acked-by: Sylvain Lemieux <slemieux.tyco@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-lpc32xx/common.c
drivers/net/ethernet/nxp/lpc_eth.c
include/linux/soc/nxp/lpc32xx-misc.h