diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-12-23 14:27:10 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-12-23 14:27:10 +0000 |
commit | 2cb946f5b4ebb720739b4dbb80c7821843f22ee5 (patch) | |
tree | e47c13a3c4236f3b7972ea14405b1afc5f7d1708 /target/linux/ramips/files/drivers | |
parent | 03bce343840c3936cce79e42a8e6973870807aea (diff) | |
download | upstream-2cb946f5b4ebb720739b4dbb80c7821843f22ee5.tar.gz upstream-2cb946f5b4ebb720739b4dbb80c7821843f22ee5.tar.bz2 upstream-2cb946f5b4ebb720739b4dbb80c7821843f22ee5.zip |
ramips: add support for the Senao/EnGenius ESR-9753 board
Signed-off-by: Artur Wronowski <arteqw@gmail.com>
SVN-Revision: 29603
Diffstat (limited to 'target/linux/ramips/files/drivers')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ramips_esw.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips_esw.c b/target/linux/ramips/files/drivers/net/ramips_esw.c index c681eed830..027284b084 100644 --- a/target/linux/ramips/files/drivers/net/ramips_esw.c +++ b/target/linux/ramips/files/drivers/net/ramips_esw.c @@ -19,6 +19,11 @@ #define RT305X_ESW_REG_FPA2 0xc8 #define RT305X_ESW_REG_FCT2 0xcc #define RT305X_ESW_REG_SGC2 0xe4 +#define RT305X_ESW_REG_P0LED 0xa4 +#define RT305X_ESW_REG_P1LED 0xa8 +#define RT305X_ESW_REG_P2LED 0xac +#define RT305X_ESW_REG_P3LED 0xb0 +#define RT305X_ESW_REG_P4LED 0xb4 #define RT305X_ESW_PCR0_WT_NWAY_DATA_S 16 #define RT305X_ESW_PCR0_WT_PHY_CMD BIT(13) @@ -227,6 +232,13 @@ rt305x_esw_hw_init(struct rt305x_esw *esw) rt305x_esw_wr(esw, 0x3f502b28, RT305X_ESW_REG_FPA2); rt305x_esw_wr(esw, 0x00000000, RT305X_ESW_REG_FPA); + /* Force Link/Activity on ports */ + rt305x_esw_wr(esw, 0x00000005, RT305X_ESW_REG_P0LED); + rt305x_esw_wr(esw, 0x00000005, RT305X_ESW_REG_P1LED); + rt305x_esw_wr(esw, 0x00000005, RT305X_ESW_REG_P2LED); + rt305x_esw_wr(esw, 0x00000005, RT305X_ESW_REG_P3LED); + rt305x_esw_wr(esw, 0x00000005, RT305X_ESW_REG_P4LED); + rt305x_mii_write(esw, 0, 31, 0x8000); for (i = 0; i < 5; i++) { /* TX10 waveform coefficient */ |