diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-10-14 00:39:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-15 12:06:37 +0200 |
commit | d8b6f5bae6d3b648a67b6958cb98e4e97256d652 (patch) | |
tree | 5b4fc605a2fd8a010278df00580e2cbc27a6e432 /drivers/net/dsa/qca8k.h | |
parent | xen-netback: Remove redundant initialization of variable err (diff) | |
download | linux-d8b6f5bae6d3b648a67b6958cb98e4e97256d652.tar.xz linux-d8b6f5bae6d3b648a67b6958cb98e4e97256d652.zip |
dsa: qca8k: add mac_power_sel support
Add missing mac power sel support needed for ipq8064/5 SoC that require
1.8v for the internal regulator port instead of the default 1.5v.
If other device needs this, consider adding a dedicated binding to
support this.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/qca8k.h')
-rw-r--r-- | drivers/net/dsa/qca8k.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/dsa/qca8k.h b/drivers/net/dsa/qca8k.h index ed3b05ad6745..fc7db94cc0c9 100644 --- a/drivers/net/dsa/qca8k.h +++ b/drivers/net/dsa/qca8k.h @@ -100,6 +100,11 @@ #define QCA8K_SGMII_MODE_CTRL_PHY (1 << 22) #define QCA8K_SGMII_MODE_CTRL_MAC (2 << 22) +/* MAC_PWR_SEL registers */ +#define QCA8K_REG_MAC_PWR_SEL 0x0e4 +#define QCA8K_MAC_PWR_RGMII1_1_8V BIT(18) +#define QCA8K_MAC_PWR_RGMII0_1_8V BIT(19) + /* EEE control registers */ #define QCA8K_REG_EEE_CTRL 0x100 #define QCA8K_REG_EEE_CTRL_LPI_EN(_i) ((_i + 1) * 2) |