Skip to content
Snippets Groups Projects
Commit 42903365 authored by Andre Przywara's avatar Andre Przywara Committed by Tom Rini
Browse files

marvell: comphy_a3700: fix bitmask


Obviously the mask for the rx and tx select field cannot be right,
as it would overlap in one and exceed the 32-bit register in the other
case. From looking at the neighbouring bits it looks like the mask
should be really 4 bits wide instead of 8.

Pointed out by a GCC 6.2 (default) warning.

Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
parent b8d4fad3
No related branches found
No related tags found
No related merge requests found
...@@ -33,9 +33,9 @@ ...@@ -33,9 +33,9 @@
#define rb_pin_pu_tx BIT(18) #define rb_pin_pu_tx BIT(18)
#define rb_pin_tx_idle BIT(19) #define rb_pin_tx_idle BIT(19)
#define rf_gen_rx_sel_shift 22 #define rf_gen_rx_sel_shift 22
#define rf_gen_rx_select (0xFF << rf_gen_rx_sel_shift) #define rf_gen_rx_select (0x0F << rf_gen_rx_sel_shift)
#define rf_gen_tx_sel_shift 26 #define rf_gen_tx_sel_shift 26
#define rf_gen_tx_select (0xFF << rf_gen_tx_sel_shift) #define rf_gen_tx_select (0x0F << rf_gen_tx_sel_shift)
#define rb_phy_rx_init BIT(30) #define rb_phy_rx_init BIT(30)
#define COMPHY_PHY_STAT1_ADDR(lane) MVEBU_REG(0x018318 + (lane) * 0x28) #define COMPHY_PHY_STAT1_ADDR(lane) MVEBU_REG(0x018318 + (lane) * 0x28)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment