mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 04:29:11 -04:00
net: phy: marvell-88q2xxx: align defines
Align some defines. Signed-off-by: Dimitri Fedrau <dima.fedrau@gmail.com> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
01072deab3
commit
8dcaed624f
@@ -12,29 +12,29 @@
|
||||
#include <linux/phy.h>
|
||||
#include <linux/hwmon.h>
|
||||
|
||||
#define PHY_ID_88Q2220_REVB0 (MARVELL_PHY_ID_88Q2220 | 0x1)
|
||||
#define PHY_ID_88Q2220_REVB1 (MARVELL_PHY_ID_88Q2220 | 0x2)
|
||||
#define PHY_ID_88Q2220_REVB2 (MARVELL_PHY_ID_88Q2220 | 0x3)
|
||||
#define PHY_ID_88Q2220_REVB0 (MARVELL_PHY_ID_88Q2220 | 0x1)
|
||||
#define PHY_ID_88Q2220_REVB1 (MARVELL_PHY_ID_88Q2220 | 0x2)
|
||||
#define PHY_ID_88Q2220_REVB2 (MARVELL_PHY_ID_88Q2220 | 0x3)
|
||||
|
||||
#define MDIO_MMD_AN_MV_STAT 32769
|
||||
#define MDIO_MMD_AN_MV_STAT_ANEG 0x0100
|
||||
#define MDIO_MMD_AN_MV_STAT_LOCAL_RX 0x1000
|
||||
#define MDIO_MMD_AN_MV_STAT_REMOTE_RX 0x2000
|
||||
#define MDIO_MMD_AN_MV_STAT_LOCAL_MASTER 0x4000
|
||||
#define MDIO_MMD_AN_MV_STAT_MS_CONF_FAULT 0x8000
|
||||
#define MDIO_MMD_AN_MV_STAT 32769
|
||||
#define MDIO_MMD_AN_MV_STAT_ANEG 0x0100
|
||||
#define MDIO_MMD_AN_MV_STAT_LOCAL_RX 0x1000
|
||||
#define MDIO_MMD_AN_MV_STAT_REMOTE_RX 0x2000
|
||||
#define MDIO_MMD_AN_MV_STAT_LOCAL_MASTER 0x4000
|
||||
#define MDIO_MMD_AN_MV_STAT_MS_CONF_FAULT 0x8000
|
||||
|
||||
#define MDIO_MMD_AN_MV_STAT2 32794
|
||||
#define MDIO_MMD_AN_MV_STAT2_AN_RESOLVED 0x0800
|
||||
#define MDIO_MMD_AN_MV_STAT2_100BT1 0x2000
|
||||
#define MDIO_MMD_AN_MV_STAT2_1000BT1 0x4000
|
||||
#define MDIO_MMD_AN_MV_STAT2 32794
|
||||
#define MDIO_MMD_AN_MV_STAT2_AN_RESOLVED 0x0800
|
||||
#define MDIO_MMD_AN_MV_STAT2_100BT1 0x2000
|
||||
#define MDIO_MMD_AN_MV_STAT2_1000BT1 0x4000
|
||||
|
||||
#define MDIO_MMD_PCS_MV_RESET_CTRL 32768
|
||||
#define MDIO_MMD_PCS_MV_RESET_CTRL_TX_DISABLE 0x8
|
||||
#define MDIO_MMD_PCS_MV_RESET_CTRL 32768
|
||||
#define MDIO_MMD_PCS_MV_RESET_CTRL_TX_DISABLE 0x8
|
||||
|
||||
#define MDIO_MMD_PCS_MV_INT_EN 32784
|
||||
#define MDIO_MMD_PCS_MV_INT_EN_LINK_UP 0x0040
|
||||
#define MDIO_MMD_PCS_MV_INT_EN_LINK_DOWN 0x0080
|
||||
#define MDIO_MMD_PCS_MV_INT_EN_100BT1 0x1000
|
||||
#define MDIO_MMD_PCS_MV_INT_EN 32784
|
||||
#define MDIO_MMD_PCS_MV_INT_EN_LINK_UP 0x0040
|
||||
#define MDIO_MMD_PCS_MV_INT_EN_LINK_DOWN 0x0080
|
||||
#define MDIO_MMD_PCS_MV_INT_EN_100BT1 0x1000
|
||||
|
||||
#define MDIO_MMD_PCS_MV_GPIO_INT_STAT 32785
|
||||
#define MDIO_MMD_PCS_MV_GPIO_INT_STAT_LINK_UP 0x0040
|
||||
@@ -80,11 +80,11 @@
|
||||
#define MDIO_MMD_PCS_MV_100BT1_STAT1_REMOTE_RX 0x2000
|
||||
#define MDIO_MMD_PCS_MV_100BT1_STAT1_LOCAL_MASTER 0x4000
|
||||
|
||||
#define MDIO_MMD_PCS_MV_100BT1_STAT2 33033
|
||||
#define MDIO_MMD_PCS_MV_100BT1_STAT2_JABBER 0x0001
|
||||
#define MDIO_MMD_PCS_MV_100BT1_STAT2_POL 0x0002
|
||||
#define MDIO_MMD_PCS_MV_100BT1_STAT2_LINK 0x0004
|
||||
#define MDIO_MMD_PCS_MV_100BT1_STAT2_ANGE 0x0008
|
||||
#define MDIO_MMD_PCS_MV_100BT1_STAT2 33033
|
||||
#define MDIO_MMD_PCS_MV_100BT1_STAT2_JABBER 0x0001
|
||||
#define MDIO_MMD_PCS_MV_100BT1_STAT2_POL 0x0002
|
||||
#define MDIO_MMD_PCS_MV_100BT1_STAT2_LINK 0x0004
|
||||
#define MDIO_MMD_PCS_MV_100BT1_STAT2_ANGE 0x0008
|
||||
|
||||
#define MDIO_MMD_PCS_MV_100BT1_INT_EN 33042
|
||||
#define MDIO_MMD_PCS_MV_100BT1_INT_EN_LINKEVENT 0x0400
|
||||
@@ -92,7 +92,7 @@
|
||||
#define MDIO_MMD_PCS_MV_COPPER_INT_STAT 33043
|
||||
#define MDIO_MMD_PCS_MV_COPPER_INT_STAT_LINKEVENT 0x0400
|
||||
|
||||
#define MDIO_MMD_PCS_MV_RX_STAT 33328
|
||||
#define MDIO_MMD_PCS_MV_RX_STAT 33328
|
||||
|
||||
#define MDIO_MMD_PCS_MV_TDR_RESET 65226
|
||||
#define MDIO_MMD_PCS_MV_TDR_RESET_TDR_RST 0x1000
|
||||
@@ -115,8 +115,8 @@
|
||||
|
||||
#define MDIO_MMD_PCS_MV_TDR_OFF_CUTOFF 65246
|
||||
|
||||
#define MV88Q2XXX_LED_INDEX_TX_ENABLE 0
|
||||
#define MV88Q2XXX_LED_INDEX_GPIO 1
|
||||
#define MV88Q2XXX_LED_INDEX_TX_ENABLE 0
|
||||
#define MV88Q2XXX_LED_INDEX_GPIO 1
|
||||
|
||||
struct mv88q2xxx_priv {
|
||||
bool enable_temp;
|
||||
|
||||
Reference in New Issue
Block a user