Changeset 13761


Ignore:
Timestamp:
01/29/10 17:53:55 (3 years ago)
Author:
BrainSlayer
Message:

phy extensions

Location:
src/linux/pb42/linux-2.6.23
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/linux/pb42/linux-2.6.23/drivers/net/phy/rtl8306.c

    r13732 r13761  
    927927        struct rtl_priv priv; 
    928928        u16 chipid; 
    929  
    930929        /* Attach to primary LAN port and WAN port */ 
    931930        if (pdev->addr != 0 && pdev->addr != 4) 
  • src/linux/pb42/linux-2.6.23/include/asm-mips/mach-ar7100/ar7100.h

    r13588 r13761  
    396396 
    397397 
    398 #define AR7100_GPIO_COUNT                   22 
    399  
     398#define AR7100_GPIO_COUNT                   64 
    400399/* 
    401400 * GPIO Function Enables 
  • src/linux/pb42/linux-2.6.23/include/asm-mips/mach-ar7100/ar71xx.h

    r13356 r13761  
    176176#define GPIO_FUNC_USB_CLK_EN    BIT(0) 
    177177 
    178 #define AR71XX_GPIO_COUNT       16 
     178#define AR71XX_GPIO_COUNT       64 
    179179 
    180180extern void __iomem *ar71xx_gpio_base; 
  • src/linux/pb42/linux-2.6.23/include/asm-mips/mach-ar7240/ar7240.h

    r13588 r13761  
    316316 
    317317 
    318 #define AR7240_GPIO_COUNT                   16 
     318#define AR7240_GPIO_COUNT                   64 
    319319 
    320320/* 
  • src/linux/pb42/linux-2.6.23/include/linux/phy.h

    r13356 r13761  
    372372}; 
    373373#define to_phy_driver(d) container_of(d, struct phy_driver, driver) 
     374 
     375#define PHY_ANY_ID "MATCH ANY PHY" 
     376#define PHY_ANY_UID 0xffffffff 
     377 
     378/* A Structure for boards to register fixups with the PHY Lib */ 
     379struct phy_fixup { 
     380        struct list_head list; 
     381        char bus_id[20]; 
     382        u32 phy_uid; 
     383        u32 phy_uid_mask; 
     384        int (*run)(struct phy_device *phydev); 
     385}; 
     386 
    374387 
    375388int phy_read(struct phy_device *phydev, u16 regnum); 
     
    421434 
    422435extern struct bus_type mdio_bus_type; 
     436 
     437int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask, 
     438                int (*run)(struct phy_device *)); 
     439int phy_register_fixup_for_id(const char *bus_id, 
     440                int (*run)(struct phy_device *)); 
     441int phy_register_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask, 
     442                int (*run)(struct phy_device *)); 
     443int phy_scan_fixups(struct phy_device *phydev); 
     444 
    423445#endif /* __PHY_H */ 
Note: See TracChangeset for help on using the changeset viewer.