Skip to content
  • Shaohui Xie's avatar
    net/memac_phy: reuse driver for little endian SoCs · cd348efa
    Shaohui Xie authored
    
    
    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: default avatarShaohui Xie <Shaohui.Xie@freescale.com>
    Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
    cd348efa