]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net/memac_phy: reuse driver for little endian SoCs
authorShaohui Xie <Shaohui.Xie@freescale.com>
Sat, 21 Mar 2015 02:28:19 +0000 (19:28 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:31:10 +0000 (22:31 +0200)
commit83545afbe87cca1412abad017885e79b35019052
tree0367c31069081da9fca4ed7e7ac2564008e1bc87
parentd3941bd272073a3032a82ece7cfe1578fb3ee018
net/memac_phy: reuse driver for little endian SoCs

The memac for PHY management on little endian SoCs is similar on big
endian SoCs, so we modify the driver by using I/O accessor function to
handle the endianness, so the driver can be reused on little endian
SoCs, we introduce CONFIG_SYS_MEMAC_LITTLE_ENDIAN for little endian
SoCs, if the CONFIG_SYS_MEMAC_LITTLE_ENDIAN is defined, the I/O access
is little endian, if not, the I/O access is big endian. Move fsl_memac.h
out of powerpc include.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: York Sun <yorksun@freescale.com>
arch/arm/include/asm/arch-fsl-lsch3/config.h
drivers/net/Makefile
drivers/net/fm/eth.c
drivers/net/fm/memac.c
drivers/net/fm/memac_phy.c
drivers/net/vsc9953.c
include/fsl_memac.h [moved from arch/powerpc/include/asm/fsl_memac.h with 100% similarity]