From c1918c778c4f60967a925c205e52108564bf3618 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 14 Jun 2009 03:32:01 +0000 Subject: ar8216: add delay for page switching to work around register setting corruption. use packet mangling to fix up the vlan for incoming packets (workaround for hardware bug, which renders normal 802.1q support unusable) SVN-Revision: 16442 --- target/linux/generic-2.6/files/drivers/net/phy/ar8216.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'target/linux/generic-2.6/files/drivers/net/phy/ar8216.h') diff --git a/target/linux/generic-2.6/files/drivers/net/phy/ar8216.h b/target/linux/generic-2.6/files/drivers/net/phy/ar8216.h index a729ac4425..e0f0452cb8 100644 --- a/target/linux/generic-2.6/files/drivers/net/phy/ar8216.h +++ b/target/linux/generic-2.6/files/drivers/net/phy/ar8216.h @@ -120,6 +120,9 @@ #define AR8216_PORT_VLAN_MODE BITS(30, 2) #define AR8216_PORT_VLAN_MODE_S 30 +#define AR8216_REG_PORT_RATE(_i) (AR8216_PORT_OFFSET(_i) + 0x000c) +#define AR8216_REG_PORT_PRIO(_i) (AR8216_PORT_OFFSET(_i) + 0x0010) + /* ingress 802.1q mode */ enum { AR8216_IN_PORT_ONLY = 0, -- cgit v1.2.3