diff options
author | Shaohui Xie <Shaohui.Xie@freescale.com> | 2015-03-21 02:28:19 (GMT) |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2015-04-23 15:55:57 (GMT) |
commit | cd348efa6c8c38cc95495a34d784f9ea159ca41d (patch) | |
tree | cfcc6b2e4b03ebaa6fef5fab003205ce0d6d1322 /drivers/net/fm/memac.c | |
parent | 125e2bc1f24736291e752d78a769f7f942050be2 (diff) | |
download | u-boot-cd348efa6c8c38cc95495a34d784f9ea159ca41d.tar.xz |
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>
Diffstat (limited to 'drivers/net/fm/memac.c')
-rw-r--r-- | drivers/net/fm/memac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fm/memac.c b/drivers/net/fm/memac.c index 60e898c..81a64bf 100644 --- a/drivers/net/fm/memac.c +++ b/drivers/net/fm/memac.c @@ -12,7 +12,7 @@ #include <phy.h> #include <asm/types.h> #include <asm/io.h> -#include <asm/fsl_memac.h> +#include <fsl_memac.h> #include "fm.h" |