uboot/include
Michal Simek 79e2a6a04a common: miiphyutil: Add helper function for mdio bus name
The most of ethernet drivers are using this mdio registration sequence.
strcpy(priv->bus->name, "emac");
mdio_register(priv->bus);
Where driver can be used only with one MDIO bus because only unique
name should be used.

Other drivers are using unique device name for MDIO registration to
support multiple instances.
snprintf(priv->bus->name, sizeof(bus->name), "%s", name);

With DM dev->seq is used more even in logs
(like random MAC address generation:
printf("\nWarning: %s (eth%d) using random MAC address - %pM\n",
       dev->name, dev->seq, pdata->enetaddr);
)
where eth%d prefix is used.

Simplify driver code to register mdio device with dev->seq number
to simplify mdio registration and reduce code duplication across
all drivers. With DM_SEQ_ALIAS enabled dev->seq reflects alias setting.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2016-12-20 07:40:04 +01:00
..
andestech
asm-generic efi: Add support for a hello world test program 2016-11-14 23:24:03 +01:00
bedbug
cavium
configs Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2016-12-18 17:43:20 -05:00
cramfs
dm Revert "Merge branch 'master' of git://www.denx.de/git/u-boot-microblaze" 2016-12-09 07:56:54 -05:00
dt-bindings arm: dts: Add devicetree for i.MX6UL 2016-12-16 17:16:10 +01:00
environment/ti ARM: ti: consolidate dfu environment variables 2016-12-02 21:32:37 -05:00
faraday
fsl-mc
grlib
jffs2
linux usb: xhci: Remove assumption of DWC instance based on DRA7 SoC type 2016-12-03 13:21:10 -05:00
lzma
mtd
net
pcmcia
power power: pmic: Add Voltage configuration macro 2016-12-16 10:21:29 +01:00
samsung
spmi
synopsys
tee arm: omap5: Add TEE loading support 2016-12-03 13:21:21 -05:00
test tests: Introduce DT overlay tests 2016-08-20 11:35:07 -04:00
u-boot rsa: Verify RSA padding programatically 2016-11-21 14:07:30 -05:00
usb Move ENOTSUPP defines to include/linux/errno.h 2016-09-23 22:25:43 -04:00
zfs
.gitignore
ACEX1K.h
MCD_dma.h
MCD_progCheck.h
MCD_tasksInit.h
SA-1100.h
_exports.h x86: Don't export interrupt handlers with x86_64 2016-10-11 11:55:33 +08:00
adc.h
addr_map.h
aes.h
ahci.h Revert "Merge branch 'master' of git://www.denx.de/git/u-boot-microblaze" 2016-12-09 07:56:54 -05:00
ali512x.h
altera.h
ambapp.h
ambapp_ids.h
android_image.h
ansi.h
api_public.h
armcoremodule.h
asm-offsets.h
ata.h
atmel_hlcdc.h
atmel_lcd.h
atmel_lcdc.h
atmel_mci.h
autoboot.h
axp152.h
axp209.h
axp221.h
axp809.h
axp818.h
axp_pmic.h
backlight.h
bcd.h
bios_emul.h
bitfield.h
blk.h
bmp_layout.h
bootcount.h
bootm.h
bootretry.h
bootstage.h
bouncebuf.h
bus_vcxk.h
bzlib.h
cbfs.h
circbuf.h
cli.h
cli_hush.h
clk-uclass.h
clk.h Revert "ns16650: Make sure we have CONFIG_CLK set before using infrastructure" 2016-10-08 09:33:31 -04:00
cmd_spl.h
command.h
common.h Use separate options for TPL support 2016-09-16 17:03:39 -04:00
common_timing_params.h
commproc.h
compiler.h compiler.h: use u-boot endian macros on OpenBSD 2016-12-02 21:32:38 -05:00
config_cmd_all.h kconfig: introduce kconfig for UBI 2016-09-26 13:24:43 -04:00
config_defaults.h
config_distro_bootcmd.h
config_distro_defaults.h cmd: move CMD_PXE to Kconfig 2016-12-03 13:21:24 -05:00
config_fallbacks.h cmd: Convert CMD_BOOTMENU 2016-12-03 13:21:23 -05:00
config_fsl_chain_trust.h SECURE_BOOT: Enable SD as a source for bootscript 2016-07-26 09:01:43 -07:00
config_phylib_all_drivers.h
config_uncmd_spl.h
console.h
cortina.h
cpsw.h driver: net: cpsw: add support for RGMII id mode support and RMII clock source selection 2016-10-13 12:25:02 -05:00
cpu.h cpu: Add get_vendor callback 2016-10-19 09:01:51 +02:00
crc.h
cros_ec.h cmd: crosec: Move cros_ec_decode_region helper to cmd/cros_ec.c 2016-12-02 21:04:48 -07:00
cros_ec_message.h
dataflash.h
ddr_spd.h
debug_uart.h
dfu.h
dialog_pmic.h
display.h video: Track whether a display is in use 2016-11-25 17:59:31 -07:00
display_options.h
div64.h
dm-demo.h
dm.h
dm9000.h
dma.h
dp83848.h
ds1722.h
ds4510.h
dt-structs.h dm: Add a header that provides access to the of-platdata structs 2016-07-14 20:40:24 -06:00
dtt.h
dwc3-omap-uboot.h
dwc3-uboot.h
dwmmc.h mmc: dw_mmc: remove the unnecessary arguments for dwmci_setup_cfg 2016-10-10 15:23:33 +09:00
e500.h
ec_commands.h
edid.h
eeprom_field.h
eeprom_layout.h
efi.h x86: Tidy up selection of building the EFI stub 2016-11-14 23:24:03 +01:00
efi_api.h efi: Use device device path type Messaging for network interface node 2016-11-14 23:24:02 +01:00
efi_loader.h efi_loader: Fix efi_add_runtime_mmio definition 2016-11-17 14:18:55 +01:00
elf.h elf: arm: Add a few ARM relocation types 2016-11-14 23:24:03 +01:00
env_attr.h
env_callback.h
env_default.h
env_flags.h
environment.h Various, accumulated typos collected from around the tree. 2016-10-06 20:57:40 -04:00
errno.h treewide: replace #include <asm-generic/errno.h> with <linux/errno.h> 2016-09-23 22:25:27 -04:00
ethsw.h
exports.h Export memset for standalone AQ FW load apps 2016-09-14 14:09:50 -07:00
ext4fs.h ext4: Allow reading files with non-zero offset, clamp read len 2016-11-21 14:07:27 -05:00
ext_common.h ext4: Update ext2/3/4 superblock, group descriptor and inode structures 2016-09-23 09:18:55 -04:00
exynos_lcd.h
fastboot.h
fat.h fs/fat/fatwrite: Local variable as buffer to store dir_slot entries 2016-11-28 20:09:45 -05:00
fb_mmc.h
fb_nand.h
fdt.h
fdt_simplefb.h
fdt_support.h libfdt: replace ARCH_FIXUP_FDT with ARCH_FIXUP_FDT_MEMORY 2016-12-02 20:54:34 -07:00
fdtdec.h usb: uniphier: remove UniPhier xHCI driver and select DM_USB 2016-09-14 22:54:19 +09:00
fis.h
flash.h
fm_eth.h
fpga.h
fs.h
fsl_csu.h fsl: csu: add an API to set R/W permission to PCIe 2016-09-14 14:07:08 -07:00
fsl_dcu_fb.h
fsl_ddr.h fsl/ddr: Add erratum_a009942_check_cpo and clean related erratum 2016-12-05 08:31:45 -08:00
fsl_ddr_dimm_params.h
fsl_ddr_sdram.h fsl/ddr: Add erratum_a009942_check_cpo and clean related erratum 2016-12-05 08:31:45 -08:00
fsl_ddrc_version.h
fsl_devdis.h
fsl_diu_fb.h
fsl_dspi.h
fsl_dtsec.h
fsl_errata.h
fsl_esdhc.h treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
fsl_fman.h
fsl_ifc.h
fsl_immap.h driver/ddr/fsl: Add more debug registers 2016-09-14 14:05:32 -07:00
fsl_mdio.h
fsl_memac.h net: fman: fix 2.5G SGMII settings 2016-12-08 10:36:22 -06:00
fsl_mmdc.h driver: ddr: fsl_mmdc: Pass board parameters through data structure 2016-09-26 08:53:07 -07:00
fsl_pmic.h
fsl_qe.h
fsl_sec.h powerpc: C29X: Move CONFIG_PPC_C29X to Kconfig option 2016-11-23 23:42:04 -08:00
fsl_sec_mon.h fsl_sec_mon: Update driver for Security Monitor 2016-10-06 09:54:14 -07:00
fsl_secboot_err.h
fsl_sfp.h fsl_sfp : Modify macros as per changes in SFP v3.4 2016-10-06 09:56:28 -07:00
fsl_tgec.h
fsl_usb.h drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller 2016-09-27 23:30:49 +02:00
fsl_validate.h powerpc/mpc85xx: SECURE BOOT- Enable chain of trust in SPL 2016-07-21 11:09:23 -07:00
fsl_wdog.h imx_watchdog: Do not assert WDOG_B on watchdog init 2016-10-04 12:01:14 +02:00
fuse.h
g_dnl.h common: dfu: saperate the dfu common functionality 2016-09-27 23:30:18 +02:00
gdsys_fpga.h gdsys: Drop print_fpga_state function 2016-07-22 14:46:21 -04:00
gt64120.h
hash.h
hw_sha.h
hwconfig.h treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
i2c.h
i2c_eeprom.h i2c_eeprom: Add reading support 2016-07-22 09:52:59 -04:00
i2s.h
i8042.h
ide.h
image-sparse.h
image.h image: Add Trusted Execution Environment image type 2016-12-03 13:21:20 -05:00
imx_thermal.h
initcall.h
input.h
inttypes.h
iomux.h
ioports.h
iotrace.h
ipu_pixfmt.h
key_matrix.h
keyboard.h powerpc: MPC8555: Remove macro CONFIG_MPC8555 2016-11-23 23:42:05 -08:00
kgdb.h
lattice.h
lcd.h
lcd_console.h Convert CONFIG_CONSOLE_SCROLL_LINES to Kconfig 2016-10-23 18:33:57 -04:00
lcdvideo.h
ld9040.h
led-display.h
led.h
libata.h
libfdt.h libfdt: Sync overlay with upstream 2016-10-23 12:08:48 -07:00
libfdt_env.h libfdt: Add new headers and defines 2016-08-20 11:35:00 -04:00
libtizen.h
linker_lists.h
linux_logo.h
lmb.h
logbuff.h
lxt971a.h
lynxkdi.h
mailbox-uclass.h
mailbox.h
malloc.h
mapmem.h
mb862xx.h
mc9sdz60.h
mc13783.h
mc13892.h
mc34704.h
memalign.h
membuff.h
menu.h
micrel.h net: phy: micrel: center FLP burst timing at 16ms 2016-11-07 11:28:16 -06:00
mii_phy.h
miiphy.h common: miiphyutil: Add helper function for mdio bus name 2016-12-20 07:40:04 +01:00
mipi_display.h
misc.h misc: add "call" uclass op 2016-08-12 11:01:22 -06:00
mk48t59.h
mmc.h mmc: Tinification of the mmc code 2016-12-01 13:51:57 +09:00
mpc5xx.h
mpc5xxx.h
mpc5xxx_sdma.h
mpc8xx.h
mpc8xx_irq.h
mpc83xx.h
mpc85xx.h
mpc86xx.h
mpc106.h
mpc823_lcd.h
mpc8260.h
mpc8260_irq.h
msc01.h
mtd.h
mtd_node.h
mv88e6352.h
mvebu_mmc.h
mvmfp.h
nand.h mtd: nand: Add the sunxi NAND controller driver 2016-07-24 20:36:28 -05:00
net.h Various, unrelated tree-wide typo fixes. 2016-07-16 09:43:12 -04:00
netdev.h
ns16550.h serial: 16550: Add Ingenic JZ4780 support 2016-12-19 12:26:37 -05:00
ns87308.h
nuvoton_nct6102d.h misc: Add simple driver for some Nuvoton NCT6102D devices 2016-08-16 11:44:09 +08:00
onenand_uboot.h mtd: OneNAND: allow board init function fail 2016-07-22 14:46:12 -04:00
os.h sandbox/fs: Free memory allocated by os_dirent_ls 2016-10-11 10:17:07 -06:00
palmas.h ARM: OMAP4+: Add support for getting pbias info from board 2016-12-04 13:54:51 -05:00
panel.h
part.h disk: part: refactor generic name creation for DOS and ISO 2016-10-01 20:04:56 -04:00
part_efi.h fastboot: move FASTBOOT_FLASH options into Kconfig 2016-10-01 20:04:59 -04:00
pc_keyb.h
pca953x.h
pca9564.h
pca9698.h
pch.h
pci.h
pci_gt64120.h
pci_ids.h x86: baytrail: Add 2nd eMMC controller to the PCI probe list 2016-10-11 11:55:33 +08:00
pci_msc01.h
pci_rom.h
pcmcia.h
pe.h
phy.h
phys2bus.h
physmem.h
post.h
power-domain-uclass.h Add a power domain framework/uclass 2016-07-27 16:29:56 -06:00
power-domain.h Add a power domain framework/uclass 2016-07-27 16:29:56 -06:00
ppc_asm.tmpl
ppc_defs.h
ps2mult.h
pwm.h
pwrseq.h
pxa_lcd.h
qfw.h
radeon.h
ram.h
rc4.h
regmap.h dm: core: Add an implementation of regmap_init_mem_platdata() 2016-07-14 20:40:24 -06:00
reiserfs.h
remoteproc.h
reset-uclass.h reset: declare fdtdec_phandle_args as struct to fix warning 2016-10-10 10:03:23 +09:00
reset.h reset: add no-op stubs for optional reset control 2016-09-23 22:25:44 -04:00
rtc.h
rtc_def.h
s6e63d6.h
s_record.h Various, accumulated typos collected from around the tree. 2016-10-06 20:57:40 -04:00
samsung-usb-phy-uboot.h
sandbox-adc.h
sandboxblockdev.h
sandboxfs.h
sata.h Revert "Merge branch 'master' of git://www.denx.de/git/u-boot-microblaze" 2016-12-09 07:56:54 -05:00
scf0403_lcd.h
scsi.h Revert "Merge branch 'master' of git://www.denx.de/git/u-boot-microblaze" 2016-12-09 07:56:54 -05:00
sdhci.h mmc: sdhci: Add the programmable clock mode support 2016-09-20 06:46:01 +09:00
search.h search.h: Numerous grammatical fixes, comment updates 2016-10-06 20:57:41 -04:00
sed156x.h
serial.h
sh_pfc.h ARM: rmobile: Add support R8A7795 2016-08-17 10:25:35 +09:00
sh_tmu.h ARM: Rmobile: Rename CONFIG_RMOBILE to CONFIG_ARCH_RMOBILE 2016-08-17 10:25:34 +09:00
sja1000.h
slre.h
sm501.h
smbios.h smbios: Expose in efi_loader as table 2016-10-19 09:01:52 +02:00
smsc_lpc47m.h
smsc_sio1007.h
sound.h
sparse_defs.h
sparse_format.h
spartan2.h
spartan3.h
spd.h
spd_sdram.h
spi.h spi: Remove dual flash options/flags 2016-11-19 08:41:44 +05:30
spi_flash.h spi: Move freescale-specific code into a private header 2016-10-06 15:07:35 -04:00
spl.h spl: Add a name to the SPL load-image methods 2016-12-09 08:40:13 -05:00
splash.h splash: Introduce default_splash_locations 2016-07-26 08:47:37 +02:00
status_led.h
stdio_dev.h Convert CONFIG_SYS_STDIO_DEREGISTER to Kconfig 2016-10-23 18:34:17 -04:00
stdlib.h
stratixII.h
sx151x.h
sy8106a.h
sym53c8xx.h
syscon.h dm: syscon: Add support for of-platdata 2016-07-14 20:40:24 -06:00
sysreset.h
tables_csum.h x86: Move table csum into separate file 2016-10-19 09:01:50 +02:00
tca642x.h
tegra-kbc.h
thermal.h
thor.h
ti-usb-phy-uboot.h
timer.h
timestamp.h
tmu.h
tpm.h
tps6586x.h
trace.h
tsec.h
tsi108.h
tsi148.h
twl4030.h
twl6030.h
tws.h
ubi_uboot.h kconfig: introduce kconfig for UBI 2016-09-26 13:24:43 -04:00
ubifs_uboot.h
ubispl.h spl: Lightweight UBI and UBI fastmap support 2016-07-22 09:53:00 -04:00
universe.h
usb.h
usb_cdc_acm.h
usb_defs.h
usb_ether.h
usb_mass_storage.h
usbdescriptors.h
usbdevice.h
usbroothubdes.h
uuid.h
vbe.h vbe: Make vbe_setup_video_priv() public 2016-10-12 10:56:51 +08:00
version.h Kconfig: Move config IDENT_STRING to Kconfig 2016-09-20 09:30:23 -04:00
video.h video: Move video_get_info_str() prototype to a header file 2016-10-23 18:33:54 -04:00
video_bridge.h
video_console.h
video_easylogo.h
video_fb.h video: Drop CONFIG_VIDEO_HW_CURSOR 2016-10-23 18:33:48 -04:00
video_font.h
video_font_4x6.h
video_font_data.h
video_logo.h
virtex2.h
vsc7385.h
vsc9953.h
vsprintf.h Fix spelling of "resetting". 2016-10-31 10:13:17 -04:00
vxworks.h
w83c553f.h
wait_bit.h treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
watchdog.h
winbond_w83627.h
xilinx.h fpga: xilinx: zynqmp: Add PL bitstream download support for ZynqMP 2016-09-22 07:33:21 +02:00
xyzModem.h
zfs_common.h
zynqmppl.h ARM64: zynqmp: Adjust to new SMC interface to get silicon version 2016-11-15 15:28:05 +01:00
zynqpl.h ARM: zynq: Add support for Zynq 7000S 7007s/7012s/7014s devices 2016-11-15 15:28:04 +01:00