u-boot-brain/drivers
Heiko Schocher dc02badab4 arm, davinci_emac: fix driver bug if more then 3 PHYs are detected
since commits:
davinci: emac: add support for more than 1 PHYs
062fe7d332

davinci: remove obsolete macro CONFIG_EMAC_MDIO_PHY_NUM
fb1d6332b5

I get following warning on the enbw_cmc board:

Err:   serial
Net:    5 ETH PHY detected
miiphy_register: non unique device name 'KSZ8873 @ 0x01'
DaVinci-EMAC
Hit any key to stop autoboot:  0

Also I see some debug printfs:

=> run load
+ emac_close
+ emac_ch_teardown
- emac_ch_teardown
+ emac_ch_teardown
- emac_ch_teardown
- emac_close
+ emac_open
- emac_open
Using DaVinci-EMAC device

reason is 062fe7d332 new define MAX_PHY.
This is set to 3! I get on this board 5 active phys, so
this leads in wrong memory writes ...

so I changed:

- define CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT to set
  the MAX_PHY value, add a description in README
  for the new CONFIG_SYS option.
- print an error message if more then MAX_PHYs are
  detected.
- fill the active_phy_addr array in a for loop with
  0xff
- changed printf() in debug_emac()

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Manjunath Hadli <manjunath.hadli@ti.com>
Cc: Prabhakar Lad <prabhakar.csengg@gmail.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Tom Rini <tom.rini@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
2011-11-15 22:25:51 +01:00
..
bios_emulator Replace space and tab checks with isblank 2011-10-17 22:25:34 +02:00
block GCC4.6: Squash warnings in sata_sil3114.c 2011-10-27 23:54:05 +02:00
dma iMX28: Add APBH DMA driver 2011-11-11 11:36:57 +01:00
fpga GCC4.6: Squash warnings in lattice.c 2011-10-27 23:54:07 +02:00
gpio iMX28: Add GPIO control 2011-11-11 11:36:57 +01:00
hwmon hwmon: do not init sensors on startup 2011-08-04 23:30:38 +02:00
i2c iMX28: Add I2C bus driver 2011-11-11 11:36:57 +01:00
input Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
misc misc: pmic: fix regression in pmic_fsl.c (SPI) 2011-11-03 22:56:18 +01:00
mmc omap: Checkpatch fixes 2011-11-15 22:25:50 +01:00
mtd GCC4.6: Squash warnings in onenand_base.c 2011-11-15 22:24:50 +01:00
net arm, davinci_emac: fix driver bug if more then 3 PHYs are detected 2011-11-15 22:25:51 +01:00
pci GCC4.6: Squash warnings in fsl_pci_init.c 2011-10-27 23:54:05 +02:00
pcmcia drivers/pcmcia/mpc8xx_pcmcia.c: Fix GCC 4.6 build warning 2011-11-07 22:11:46 +01:00
power mmc: omap: config VMMC, MMC1_PBIAS 2011-09-30 22:00:55 +02:00
qe fsl: Change fsl_phy_enet_if to phy_interface_t 2011-04-20 15:09:35 -05:00
rtc iMX28: Add driver for internal RTC 2011-11-11 11:36:57 +01:00
serial PXA: Cleanup serial_pxa 2011-11-15 22:24:50 +01:00
spi iMX28: Add SPI driver 2011-11-11 11:36:57 +01:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb iMX28: Add USB HOST driver 2011-11-11 11:36:58 +01:00
video Merge branch 'master' of git://git.denx.de/u-boot-arm 2011-11-08 00:38:52 +01:00
watchdog AT91: fix at91sam_wdt.c to reworked header files 2011-05-18 07:56:51 +02:00