rv1126-uboot/include
Andy Fleming 5f184715ec Create PHY Lib for U-Boot
Extends the mii_dev structure to participate in a full-blown MDIO and
PHY driver scheme.  The mii_dev structure and miiphy calls are modified
in such a way to allow the original mii command and miiphy
infrastructure to work as before, but also to support a new set of APIs
which allow (among other things) sharing of PHY driver code and 10G support

The mii command will continue to support normal PHY management functions
(Clause 22 of 802.3), but will not be changed to support 10G
(Clause 45).

The basic design is similar to PHY Lib from Linux, but simplified for
U-Boot's network and driver infrastructure.

We now have MDIO drivers and PHY drivers

An MDIO driver provides:
read
write
reset

A PHY driver provides:
(optionally): probe
config - initial setup, starting of auto-negotiation
startup - waiting for AN, and reading link state
shutdown - any cleanup needed

The ethernet drivers interact with the PHY Lib using these functions:
phy_connect()
phy_config()
phy_startup()
phy_shutdown()

Each PHY driver can be configured separately, or all at once using
config_phylib_all_drivers.h (added in the patch which adds the drivers)

We also provide generic drivers for Clause 22 (10/100/1000), and
Clause 45 (10G) PHYs.

We also implement phy_reset(), and call it in phy_connect(). Because
phy_reset() is essentially the same as miiphy_reset, but:
a) must support 10G PHYs, and
b) should use the phylib primitives,

we implement miiphy_reset, using phy_reset(), but only when
CONFIG_PHYLIB is set. Otherwise, we just use the old version. In this
way, we save on compile size, even if we don't manage to save code size.

Pulled ethtool.h and mdio.h from:
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
782d640afd15af7a1faf01cfe566ca4ac511319d
With many, many deletions so as to enable compilation under u-boot

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Detlev Zundel <dzu@denx.de>
2011-04-20 15:09:19 -05:00
..
asm-generic
bedbug
configs x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
cramfs
faraday ftwdt010_wdt: move header to include/faraday and enhance 2011-04-12 22:58:33 +02:00
galileo
jffs2
linux Create PHY Lib for U-Boot 2011-04-20 15:09:19 -05:00
lzma
mtd cfi_flash: Add optional config register write to cfi-detection 2010-12-17 09:56:05 +01:00
pcmcia
u-boot
usb Fix building for 83xx boards with USB support 2010-10-21 20:00:41 +02:00
.gitignore
74xx_7xx.h
ACEX1K.h
MCD_dma.h
MCD_progCheck.h
MCD_tasksInit.h
SA-1100.h
_exports.h Remove support for CONFIG_HAS_UID and "forceenv" command 2010-09-19 19:29:47 +02:00
addr_map.h
ahci.h
ali512x.h
altera.h
amba_clcd.h
ambapp.h
api_public.h
arm925t.h
armcoremodule.h
asm-offsets.h Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value 2010-10-26 21:05:30 +02:00
at45.h
at91rm9200_i2c.h
at91rm9200_net.h
ata.h
atmel_lcdc.h
bcd.h
bcm5221.h
bmp_layout.h
bus_vcxk.h
bzlib.h
circbuf.h
clps7111.h
command.h autocomplete: remove runtime handler install 2010-11-28 21:49:27 +01:00
common.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
commproc.h CCM: remove code for yet another corpse 2010-10-06 22:22:26 +02:00
compiler.h include/compiler.h: remove uint typedef for __MACH__ 2010-10-06 23:09:42 +02:00
config_cmd_all.h rarp: Condtionally compile rarp support 2010-10-11 23:00:29 -07:00
config_cmd_default.h
config_cmd_defaults.h config_cmd_defaults.h: new header for common u-boot command defaults 2011-01-09 18:01:03 +01:00
config_defaults.h Add support for operating system OSE 2010-09-28 14:42:26 +02:00
crc.h
da9030.h
dataflash.h
ddr_spd.h mpc8xxx: DDR2/DDR3: Clean up DIMM-type switch statements 2011-04-04 09:24:43 -05:00
div64.h
dm9000.h
dm9161.h
dp83848.h
ds1722.h
ds4510.h
dtt.h
e500.h
elf.h
environment.h add checking the CONFIG_ENV_IS_IN_SPI_FLASH in Enbedded env 2011-02-15 22:09:50 +01:00
errno.h Add basic errno support. 2010-09-19 19:29:47 +02:00
exports.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
ext2fs.h ext2: constify file/dir names 2010-12-09 10:24:09 +01:00
fat.h VFAT: fix processing of scattered long file name entries 2010-10-12 22:39:14 +02:00
fdc.h
fdt.h
fdt_support.h FDT: Add fixup support for multiple banks of memory 2010-10-18 22:50:53 +02:00
fis.h
flash.h mtd, cfi: introduce void flash_protect_default(void) 2011-04-07 10:20:22 +02:00
fpga.h FPGA: add support for downloading Lattice bitstream 2010-10-13 18:09:31 +02:00
fsl_diu_fb.h fsl_diu_fb: further refactoring of FSL DIU code 2010-09-25 13:10:03 +02:00
fsl_esdhc.h fsl_esdhc: Deal with watermark level register related changes 2011-04-10 11:17:55 -05:00
fsl_nfc.h
fsl_pmic.h
gdsys_fpga.h ppc4xx: Add DLVision-10G board support 2011-02-07 11:13:16 +01:00
hush.h
hwconfig.h powerpc/8xxx: Add hwconfig APIs to address early parsing used by DDR init 2011-01-19 22:58:23 -06:00
i2c.h
i8042.h
ide.h
image.h image: constify lookup tables 2010-11-28 21:58:27 +01:00
iomux.h stdio: constify "name" arg in public api 2010-12-09 10:24:09 +01:00
ioports.h
keyboard.h
kgdb.h
ks8721.h
lattice.h Coding Style cleanup 2010-10-27 22:48:30 +02:00
lcd.h atmel_lcd: Allow contrast polarity to be either positive or negative 2010-09-25 15:22:51 +02:00
lcdvideo.h
led-display.h led_display: remove unused DISPLAY_MARK define 2010-10-21 22:25:04 +02:00
lh7a40x.h
lh7a400.h
lh7a404.h
libata.h
libfdt.h
libfdt_env.h
linux_logo.h
lmb.h
logbuff.h
lpd7a400_cpld.h
lxt971a.h
lynxkdi.h
malloc.h
mb862xx.h
mc9sdz60.h Add basic support for Freescale's mc9sdz60 2011-02-02 00:54:43 +01:00
mc13892.h MC13892: Add SWx buck switchers definitions 2011-02-02 00:54:42 +01:00
mg_disk.h
mii_phy.h
miiphy.h Create PHY Lib for U-Boot 2011-04-20 15:09:19 -05:00
mk48t59.h
mmc.h Davinci MMCSD Support 2011-02-02 00:54:44 +01:00
mpc5xx.h
mpc5xxx.h A4M072: Added support for the board. 2010-10-12 22:44:33 +02:00
mpc5xxx_sdma.h
mpc8xx.h
mpc8xx_irq.h
mpc83xx.h mpc83xx: Use correct register to calculate clocks. 2011-02-05 17:06:57 -06:00
mpc85xx.h
mpc86xx.h
mpc106.h
mpc824x.h
mpc8220.h
mpc8260.h
mpc8260_irq.h
mtd_node.h
mvmfp.h gpio: Add Multi-Function-Pin configuration driver for Marvell SoCs 2010-12-16 23:02:43 +01:00
mxc_gpio.h Use common function to set GPIOs for MX3 and MX5 2010-09-29 11:24:30 +02:00
nand.h NAND: add the ability to directly write yaffs image 2011-01-12 17:13:10 -06:00
net.h string_to_ip: constify "s" arg 2010-11-28 21:56:39 +01:00
netdev.h Add support for MX35 processor 2011-02-02 00:54:42 +01:00
nios2-epcs.h
nios2-io.h
nios2-yanu.h
nios2.h
nomadik.h
ns7520_eth.h
ns9750_bbus.h
ns9750_eth.h
ns9750_mem.h
ns9750_ser.h
ns9750_sys.h
ns16550.h
ns87308.h
onenand_uboot.h
part.h
pc_keyb.h
pca953x.h
pca9564.h
pci.h powerpc/85xx: Handle PCIe initialization requires for P1021 class SoCs 2011-03-29 07:41:37 -05:00
pci_ids.h Net: Add Intel E1000 82574L PCIe card support 2011-04-11 22:20:13 +02:00
pcmcia.h
phy.h Create PHY Lib for U-Boot 2011-04-20 15:09:19 -05:00
post.h powerpc/8xxx: Fix _POST_WORD_ADDR on 85xx & 86xx systems 2010-12-01 06:45:23 -06:00
ppc_asm.tmpl
ppc_defs.h
ps2mult.h
pwm.h ARM: S5P: pwm driver support 2011-03-27 19:19:54 +02:00
radeon.h
reiserfs.h
rtc.h
s6e63d6.h
s_record.h
sata.h
scsi.h
search.h env: re-add support for auto-completion 2011-01-09 17:57:37 +01:00
sed156x.h
sed13806.h
serial.h serial: Add Tegra2 serial port support 2011-02-21 08:30:55 +01:00
sha1.h
sha256.h
sja1000.h
sm501.h
smiLynxEM.h
spartan2.h
spartan3.h add Xilinx_abort_fn to Xilinx_Spartan3_Slave_Serial_fns 2010-12-09 10:24:10 +01:00
spd.h
spd_sdram.h
spi.h
spi_flash.h sf: add struct spi_flash.sector_size parameter 2011-04-12 02:15:37 -04:00
status_led.h CCM: remove code for yet another corpse 2010-10-06 22:22:26 +02:00
stdio_dev.h stdio: constify "name" arg in public api 2010-12-09 10:24:09 +01:00
stratixII.h
sym53c8xx.h
systemace.h
timestamp.h
tsec.h tsec: use IO accessors for IO accesses 2011-04-20 13:44:46 -05:00
tsi108.h
tsi148.h
twl4030.h ARMV7: OMAP: add convenience function to set TWL4030 regulator voltages 2010-09-08 14:50:23 -04:00
twl6030.h ARMV7: OMAP4: twl6030 add battery charging support 2010-12-11 10:56:01 -05:00
tws.h
ubi_uboot.h
universe.h
usb.h Add USB host ethernet adapter support 2011-02-19 20:32:36 +01:00
usb_cdc_acm.h
usb_defs.h
usb_ether.h Add support for ASIX AX88772 USB 2.0 10/100Mbit Ethernet Adaptor 2011-02-19 20:32:36 +01:00
usbdescriptors.h
usbdevice.h
version.h
vfd_logo.h
video.h
video_ad7176.h
video_ad7177.h
video_ad7179.h
video_easylogo.h
video_fb.h
video_font.h
video_logo.h
virtex2.h
vsc7385.h
vxworks.h
w83c553f.h
watchdog.h
xilinx.h
xyzModem.h