Changeset 14825


Ignore:
Timestamp:
2009-03-09T22:57:11+01:00 (9 years ago)
Author:
florian
Message:

[package] allow kmod-switch to be used on brcm63xx (#4599)

Location:
trunk/package/switch
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/switch/Makefile

    r10138 r14825  
    1717define KernelPackage/switch 
    1818  SUBMENU:=Other modules 
    19   DEPENDS:=@TARGET_brcm_2_4||TARGET_brcm47xx 
     19  DEPENDS:=@TARGET_brcm_2_4||TARGET_brcm47xx||TARGET_brcm63xx 
    2020  TITLE:=Switch drivers 
    2121  FILES:= \ 
  • trunk/package/switch/src/gpio.h

    r6562 r14825  
    1212#include "gpio-bcm947xx.h" 
    1313#else 
    14 #error "Unsupported configuration." 
     14#warning "Unsupported configuration." 
     15 
     16#define gpio_in()                       (-1U) 
     17#define gpio_out(mask, value)           (-1U) 
     18#define gpio_outen(mask, value)         (-1U) 
     19#define gpio_control(mask, value)       (-1U) 
     20#define gpio_intmask(mask, value)       (-1U) 
     21#define gpio_intpolarity(mask, value)   (-1U) 
     22 
    1523#endif 
    1624 
  • trunk/package/switch/src/switch-robo.c

    r11469 r14825  
    4242#define ROBO_PHY_ADDR           0x1E    /* robo switch phy address */ 
    4343#define ROBO_PHY_ADDR_TG3       0x01    /* Tigon3 PHY address */ 
     44#define ROBO_PHY_ADDR_BCM63XX   0x00    /* BCM63XX PHY address */ 
    4445 
    4546/* MII registers */ 
     
    319320                struct mii_ioctl_data *mii = (struct mii_ioctl_data *) &robo.ifr.ifr_data; 
    320321                if ((mii->phy_id != ROBO_PHY_ADDR) && 
     322                    (mii->phy_id != ROBO_PHY_ADDR_BCM63XX) && 
    321323                    (mii->phy_id != ROBO_PHY_ADDR_TG3)) { 
    322324                        printk("Invalid phy address (%d)\n", mii->phy_id); 
     
    325327                robo.use_et = 0; 
    326328                /* The robo has a fixed PHY address that is different from the 
    327                  * Tigon3 PHY address. */ 
     329                 * Tigon3 and BCM63xx PHY address. */ 
    328330                robo.phy_addr = ROBO_PHY_ADDR; 
    329331        } 
     
    333335 
    334336        if (phyid == 0xffffffff || phyid == 0x55210022) { 
    335                 printk("No Robo switch in managed mode found\n"); 
     337                printk("No Robo switch in managed mode found, phy_id = 0x%08x\n", phyid); 
    336338                return 1; 
    337339        } 
Note: See TracChangeset for help on using the changeset viewer.