diff options
| author | Felix Fietkau <nbd@openwrt.org> | 2006-07-25 15:57:30 +0000 |
|---|---|---|
| committer | Felix Fietkau <nbd@openwrt.org> | 2006-07-25 15:57:30 +0000 |
| commit | 3df71b4f5e12934d9d231a600f43bc9c5ad2b321 (patch) | |
| tree | 701f34b310c16c67d574d28ec55521197739fcf1 /openwrt | |
| parent | 84472dd56902e282ec2fa4d390fed4e4446cedf0 (diff) | |
| download | mtk-20170518-3df71b4f5e12934d9d231a600f43bc9c5ad2b321.zip mtk-20170518-3df71b4f5e12934d9d231a600f43bc9c5ad2b321.tar.gz mtk-20170518-3df71b4f5e12934d9d231a600f43bc9c5ad2b321.tar.bz2 | |
change cpmac to use the internal phy by default (#596)
SVN-Revision: 4279
Diffstat (limited to 'openwrt')
| -rw-r--r-- | openwrt/target/linux/ar7-2.4/patches/003-net_driver_cpmac.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openwrt/target/linux/ar7-2.4/patches/003-net_driver_cpmac.patch b/openwrt/target/linux/ar7-2.4/patches/003-net_driver_cpmac.patch index 42b6458..06df07d 100644 --- a/openwrt/target/linux/ar7-2.4/patches/003-net_driver_cpmac.patch +++ b/openwrt/target/linux/ar7-2.4/patches/003-net_driver_cpmac.patch @@ -3187,7 +3187,7 @@ diff -urN linux.old/drivers/net/avalanche_cpmac/cpmac.c linux.dev/drivers/net/av + * replace the default MACRO. */ + { + char *mac_port = prom_getenv("MAC_PORT"); /* Internal: 0, External: 1 */ -+ if(!mac_port || (0 != strcmp(mac_port, "0"))) { ++ if(0 == strcmp(mac_port, "1")) { + printk("Using the MAC with external PHY\n"); + cfg_start_link_speed = _CPMDIO_NOPHY; + cpmac_max_frame_size = CPMAC_MAX_FRAME_SIZE + 4; @@ -11249,7 +11249,7 @@ diff -urN linux.old/drivers/net/avalanche_cpmac/psp_config_build.c linux.dev/dri + } + + //if(phy_sel == auto_detect_cpmac_phy()) -+ if(!mac_port || (0 != strcmp(mac_port, "0"))) ++ if(0 == strcmp(mac_port, "1")) + { + printk("Using the MAC with external PHY\n"); + psp_config_add("cpmdio", s3, psp_config_strlen(s3), en_compile); |
