diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-22 15:11:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-22 15:11:14 +0000 |
commit | e890a3bc9a2bc8713be6719796724c4e24ecdfb9 (patch) | |
tree | 5bb04648d13e35dfbd498f5dfc49eb960c573677 | |
parent | fb6164a3778c4609c0b8a34498eb8e617fb1a2ce (diff) | |
download | mtk-20170518-e890a3bc9a2bc8713be6719796724c4e24ecdfb9.zip mtk-20170518-e890a3bc9a2bc8713be6719796724c4e24ecdfb9.tar.gz mtk-20170518-e890a3bc9a2bc8713be6719796724c4e24ecdfb9.tar.bz2 |
ramips: make ethernet register map u16 instead of u32
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44940
4 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c index ef82824..1822fea 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c @@ -65,7 +65,7 @@ static int fe_msg_level = -1; module_param_named(msg_level, fe_msg_level, int, 0); MODULE_PARM_DESC(msg_level, "Message level (-1=defaults,0=none,...,16=all)"); -static const u32 fe_reg_table_default[FE_REG_COUNT] = { +static const u16 fe_reg_table_default[FE_REG_COUNT] = { [FE_REG_PDMA_GLO_CFG] = FE_PDMA_GLO_CFG, [FE_REG_PDMA_RST_CFG] = FE_PDMA_RST_CFG, [FE_REG_DLY_INT_CFG] = FE_DLY_INT_CFG, @@ -84,7 +84,7 @@ static const u32 fe_reg_table_default[FE_REG_COUNT] = { [FE_REG_FE_RST_GL] = FE_FE_RST_GL, }; -static const u32 *fe_reg_table = fe_reg_table_default; +static const u16 *fe_reg_table = fe_reg_table_default; struct fe_work_t { int bitnr; diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h index 2ad5d01..ac7c7e5 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h @@ -382,7 +382,7 @@ struct fe_phy { struct fe_soc_data { - const u32 *reg_table; + const u16 *reg_table; void (*init_data)(struct fe_soc_data *data, struct net_device *netdev); void (*reset_fe)(void); diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c index f408f07..a18c1c9 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c @@ -72,7 +72,7 @@ #define MT7621_FE_GDM1_AF BIT(28) #define MT7621_FE_GDM2_AF BIT(29) -static const u32 mt7620_reg_table[FE_REG_COUNT] = { +static const u16 mt7620_reg_table[FE_REG_COUNT] = { [FE_REG_PDMA_GLO_CFG] = RT5350_PDMA_GLO_CFG, [FE_REG_PDMA_RST_CFG] = RT5350_PDMA_RST_CFG, [FE_REG_DLY_INT_CFG] = RT5350_DLY_INT_CFG, @@ -92,7 +92,7 @@ static const u32 mt7620_reg_table[FE_REG_COUNT] = { [FE_REG_FE_INT_STATUS2] = MT7620_FE_INT_STATUS2, }; -static const u32 mt7621_reg_table[FE_REG_COUNT] = { +static const u16 mt7621_reg_table[FE_REG_COUNT] = { [FE_REG_PDMA_GLO_CFG] = RT5350_PDMA_GLO_CFG, [FE_REG_PDMA_RST_CFG] = RT5350_PDMA_RST_CFG, [FE_REG_DLY_INT_CFG] = RT5350_DLY_INT_CFG, diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c index eacb8d8..c1baa40 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c @@ -25,7 +25,7 @@ #define RT305X_RESET_FE BIT(21) #define RT305X_RESET_ESW BIT(23) -static const u32 rt5350_reg_table[FE_REG_COUNT] = { +static const u16 rt5350_reg_table[FE_REG_COUNT] = { [FE_REG_PDMA_GLO_CFG] = RT5350_PDMA_GLO_CFG, [FE_REG_PDMA_RST_CFG] = RT5350_PDMA_RST_CFG, [FE_REG_DLY_INT_CFG] = RT5350_DLY_INT_CFG, |