/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ /* * drivers/net/aml_phy_8700.h * * Copyright (C) 2020 Amlogic, Inc. All rights reserved. * */ #ifndef __AML_PHY_LAN8700_H__ #define __AML_PHY_LAN8700_H__ #include /*------------------------------------------- . . A description of the SMSC LAN8700 regn order here . ---------------------------------------------------*/ #define PHY_CR 0 #define PHY_CR_RST (1<<15) #define PHY_CR_LOOPBACK (1<<14) #define PHY_CR_SPEED (1<<13) #define PHY_CR_AN (1<<12) #define PHY_CR_PWRDOWN (1<<11) #define PHY_CR_ISOLATE (1<<10) #define PHY_CR_RSTAN (1<<9) #define PHY_CR_DPLX (1<<8) #define PHY_CR_CT (1<<7) #define PHY_SR 1 #define PHY_SR_100BT4 (1<<15) #define PHY_SR_100BTF (1<<14) #define PHY_SR_100BTH (1<<13) #define PHY_SR_10BTF (1<<12) #define PHY_SR_10BTH (1<<11) #define PHY_SR_ANCOMPLETE (1<<5) #define PHY_SR_REMOTEFAULT (1<<4) #define PHY_SR_ANABILITY (1<<3) #define PHY_SR_LINKSTATUS (1<<2) #define PHY_JABBER (1<<1) #define PHY_EXTCAP (1) #define PHY_SPMD 18 #define PHY_SPMD_PHYAD_P 0 #define PHY_SPMD_MODE_P 5 #define PHY_SPMD_MIIMODE_P 14 #define PHY_SPMD_MIIMODE_MII (0<<14) #define PHY_SPMD_MIIMODE_RMII (1<<14) #define PHY_SPCT 31 #define PHY_SPCT_SCD_P 0 #define PHY_SPCT_SPD_P 2 #define PHY_SPCT_E4B5B_P 6 #define PHY_SPCT_GPO_P 7 #define PHY_SPCT_ATDW_P 12 #define PHY_SPCT_SCD (1<