mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-04 07:16:03 +08:00
mediatek: minor fix to eip97 driver
This patch makes the driver work on the newer v2.3 core. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
9f3415d30b
commit
ea2884e018
@ -5,11 +5,11 @@
|
||||
writel(val, EIP197_HIA_AIC(priv) + EIP197_HIA_MST_CTRL);
|
||||
}
|
||||
+ /*
|
||||
+ * Set maximum number of TX commands to 2^5 = 32 for EIP97 HW2.1
|
||||
+ * Set maximum number of TX commands to 2^4 = 16 for EIP97 HW2.1/HW2.3
|
||||
+ */
|
||||
+ else {
|
||||
+ val = 0;
|
||||
+ val |= EIP97_MST_CTRL_TX_MAX_CMD(5);
|
||||
+ val |= EIP97_MST_CTRL_TX_MAX_CMD(4);
|
||||
+ writel(val, EIP197_HIA_AIC(priv) + EIP197_HIA_MST_CTRL);
|
||||
+ }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user