Changeset 44940


Ignore:
Timestamp:
2015-03-22T16:11:14+01:00 (3 years ago)
Author:
nbd
Message:

ramips: make ethernet register map u16 instead of u32

Signed-off-by: Felix Fietkau <nbd@…>

Location:
trunk/target/linux/ramips/files/drivers/net/ethernet/ralink
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c

    r44918 r44940  
    6666MODULE_PARM_DESC(msg_level, "Message level (-1=defaults,0=none,...,16=all)"); 
    6767 
    68 static const u32 fe_reg_table_default[FE_REG_COUNT] = { 
     68static const u16 fe_reg_table_default[FE_REG_COUNT] = { 
    6969        [FE_REG_PDMA_GLO_CFG] = FE_PDMA_GLO_CFG, 
    7070        [FE_REG_PDMA_RST_CFG] = FE_PDMA_RST_CFG, 
     
    8585}; 
    8686 
    87 static const u32 *fe_reg_table = fe_reg_table_default; 
     87static const u16 *fe_reg_table = fe_reg_table_default; 
    8888 
    8989struct fe_work_t { 
  • trunk/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h

    r44741 r44940  
    383383struct fe_soc_data 
    384384{ 
    385         const u32 *reg_table; 
     385        const u16 *reg_table; 
    386386 
    387387        void (*init_data)(struct fe_soc_data *data, struct net_device *netdev); 
  • trunk/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c

    r44740 r44940  
    7373#define MT7621_FE_GDM2_AF       BIT(29) 
    7474 
    75 static const u32 mt7620_reg_table[FE_REG_COUNT] = { 
     75static const u16 mt7620_reg_table[FE_REG_COUNT] = { 
    7676        [FE_REG_PDMA_GLO_CFG] = RT5350_PDMA_GLO_CFG, 
    7777        [FE_REG_PDMA_RST_CFG] = RT5350_PDMA_RST_CFG, 
     
    9393}; 
    9494 
    95 static const u32 mt7621_reg_table[FE_REG_COUNT] = { 
     95static const u16 mt7621_reg_table[FE_REG_COUNT] = { 
    9696        [FE_REG_PDMA_GLO_CFG] = RT5350_PDMA_GLO_CFG, 
    9797        [FE_REG_PDMA_RST_CFG] = RT5350_PDMA_RST_CFG, 
  • trunk/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c

    r44740 r44940  
    2626#define RT305X_RESET_ESW        BIT(23) 
    2727 
    28 static const u32 rt5350_reg_table[FE_REG_COUNT] = { 
     28static const u16 rt5350_reg_table[FE_REG_COUNT] = { 
    2929        [FE_REG_PDMA_GLO_CFG] = RT5350_PDMA_GLO_CFG, 
    3030        [FE_REG_PDMA_RST_CFG] = RT5350_PDMA_RST_CFG, 
Note: See TracChangeset for help on using the changeset viewer.