u-boot/include
Pantelis Antoniou 93bfd61677 mmc: Split mmc struct, rework mmc initialization (v2)
The way that struct mmc was implemented was a bit of a mess;
configuration and internal state all jumbled up in a single structure.

On top of that the way initialization is done with mmc_register leads
to a lot of duplicated code in drivers.

Typically the initialization got something like this in every driver.

	struct mmc *mmc = malloc(sizeof(struct mmc));
	memset(mmc, 0, sizeof(struct mmc);
	/* fill in fields of mmc struct */
	/* store private data pointer */
	mmc_register(mmc);

By using the new mmc_create call one just passes an mmc config struct
and an optional private data pointer like this:

	struct mmc = mmc_create(&cfg, priv);

All in tree drivers have been updated to the new form, and expect
mmc_register to go away before long.

Changes since v1:

* Use calloc instead of manually calling memset.
* Mark mmc_register as deprecated.

Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
2014-03-24 12:58:56 +02:00
..
andestech
asm-generic powerpc: mpc8260: consolidate CONFIG_MPC8260 and CONFIG_8260 2014-03-07 10:59:06 -05:00
bedbug
configs sandbox: config: Enable cros_ec emulation and related items 2014-03-17 20:05:50 -06:00
cramfs include: delete unused header files 2014-01-24 16:59:07 -05:00
dm dm: Add basic tests 2014-03-04 12:15:29 -05:00
faraday include: delete unused header files 2014-01-24 16:59:07 -05:00
galileo
jffs2 cmd_mtdparts: use 64 bits for flash size, partition size & offset 2013-10-09 12:52:16 -05:00
linux Merge branch 'master' of git://git.denx.de/u-boot-nand-flash 2014-03-04 21:23:42 -05:00
lzma
mtd mtd: move & update nand_ecclayout structure (plus board changes) 2013-11-21 13:32:43 -06:00
pcmcia
power trats2: add LCD download menu support 2014-02-03 15:36:14 +09:00
samsung board:samsung:common: set envs with board unified information 2014-02-07 10:06:24 +09:00
synopsys
u-boot
usb sizes.h - consolidate for all architectures 2014-03-04 12:15:01 -05:00
zfs
_exports.h
.gitignore .gitignore: drop include/asm from ignored file list 2014-02-19 11:10:04 -05:00
74xx_7xx.h
ACEX1K.h
addr_map.h
aes.h
ahci.h
ali512x.h
altera.h
ambapp.h
ansi.h
api_public.h
armcoremodule.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
asm-offsets.h
ata.h
atmel_hlcdc.h
atmel_lcdc.h
atmel_mci.h
bcd.h
bitfield.h arch: bcm281xx: Initial commit of bcm281xx architecture code 2014-02-22 19:30:24 +01:00
bmp_layout.h
bootcount.h
bootstage.h
bouncebuf.h
bus_vcxk.h
bzlib.h
cbfs.h
circbuf.h
clk.h common: Add new clk command 2014-02-04 16:32:20 +01:00
cmd_spl.h
command.h Add cmd_process_error() to report and process errors 2014-03-04 12:15:28 -05:00
common_timing_params.h Driver/DDR: Moving Freescale DDR driver to a common driver 2013-11-25 11:43:43 -08:00
common.h sandbox: config: Enable cros_ec emulation and related items 2014-03-17 20:05:50 -06:00
commproc.h include: delete include/linux/config.h 2013-11-08 15:25:13 -05:00
compiler.h
config_cmd_all.h fs/fdos: Remove 2014-02-21 08:42:47 -05:00
config_cmd_default.h
config_cmd_defaults.h
config_defaults.h common/config_defaults.h: make CONFIG_BOOTM_VXWORKS default configuration 2013-12-13 09:18:45 -05:00
config_distro_defaults.h config: Fix line lengths in include/config_distro_defaults.h 2014-02-05 08:04:38 -05:00
config_fallbacks.h sandbox: block driver using host file/device as backing store 2014-01-08 17:24:03 -07:00
config_phylib_all_drivers.h
config_uncmd_spl.h
cpsw.h drivers: net: cpsw: add support to have phy address from cpsw platform data 2014-03-04 09:41:53 -05:00
crc.h
cros_ec_message.h cros_ec: Sync up with latest Chrome OS EC version 2014-03-17 20:05:47 -06:00
cros_ec.h cros_ec: Implement I2C pass-through 2014-03-17 20:05:48 -06:00
dataflash.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ddr_spd.h powerpc: Fix CamelCase warnings in DDR related code 2013-10-16 16:15:16 -07:00
dfu.h usb: dfu: f_dfu: Provide infrastructure to adjust DFU's Poll Timeout value 2013-12-18 19:53:19 +01:00
dialog_pmic.h
div64.h
dm9000.h
dm-demo.h dm: Add a demonstration/example driver 2014-03-04 12:15:29 -05:00
dm.h dm: Add base driver model support 2014-03-04 12:15:29 -05:00
dp83848.h
ds1722.h
ds4510.h
dtt.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
dwmmc.h mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
e500.h
ec_commands.h cros_ec: Sync up with latest Chrome OS EC version 2014-03-17 20:05:47 -06:00
edid.h
elf.h
env_attr.h
env_callback.h
env_default.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
env_flags.h
environment.h
errno.h
exports.h
ext4fs.h ext4: implement exists() for ext4fs 2014-02-19 09:47:34 -05:00
ext_common.h
fat.h fat: implement exists() for FAT fs 2014-02-19 09:47:34 -05:00
fdc.h
fdt_support.h
fdt.h
fdtdec.h sandbox: Add LCD driver 2014-03-17 20:05:49 -06:00
fis.h
flash.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
fm_eth.h net/fman: Add support for 10GEC3 and 10GEC4 2013-11-25 11:43:47 -08:00
fpga.h
fs.h fs: implement infrastructure for an 'exists' function 2014-02-19 09:47:33 -05:00
fsl_ddr_dimm_params.h Driver/DDR: Moving Freescale DDR driver to a common driver 2013-11-25 11:43:43 -08:00
fsl_ddr_sdram.h driver/ddr: Add 256 byte interleaving support 2014-02-21 11:06:13 -05:00
fsl_ddr.h driver/ddr: Change Freescale ARM DDR driver to support both big and little endian 2014-02-21 11:06:13 -05:00
fsl_diu_fb.h
fsl_esdhc.h mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
fsl_ifc.h driver/ifc:Change accessor function to take care of endianness 2014-02-03 08:38:51 -08:00
fsl_immap.h Driver/DDR: combine ccsr_ddr for 83xx, 85xx and 86xx 2013-11-25 11:43:46 -08:00
fsl_mdio.h net: fsl_mdio: Fix warnings for __iomem pointers 2013-11-22 17:03:15 -06:00
fsl_pmic.h
fsl_usb.h powerpc/usb: Workaround for erratum-A006261 2014-03-07 14:52:16 -08:00
fuse.h
g_dnl.h usb, g_dnl: make iSerialNumber board configurable 2013-11-08 20:46:20 +01:00
gdsys_fpga.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
gt64120.h
hash.h
hush.h
hw_sha.h
hwconfig.h
i2c.h OMAP24xx I2C: Add support for set-speed 2014-02-20 06:48:23 +01:00
i2s.h Sound: WM8994: Support I2S0 channel 2013-09-24 09:10:33 -04:00
i8042.h
ide.h
image.h fdt: rename IMAAGE_OF_BOARD_SETUP to IMAGE_OF_BOARD_SETUP 2014-02-19 10:47:30 -05:00
initcall.h
input.h
iomux.h
ioports.h
ipu_pixfmt.h
key_matrix.h
keyboard.h
kgdb.h
lattice.h
lcd.h sandbox: Add LCD driver 2014-03-17 20:05:49 -06:00
lcdvideo.h
ld9040.h
led-display.h
libata.h
libfdt_env.h
libfdt.h Fix some obvious typos across multiple subsystems. 2013-09-20 10:29:48 -04:00
libtizen.h
linker_lists.h kernel-doc: fix some errors 2014-02-19 11:10:04 -05:00
linux_logo.h
lmb.h
logbuff.h
lxt971a.h
lynxkdi.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
malloc.h
mb862xx.h
mc9sdz60.h
mc13783.h
mc13892.h
mc34704.h
MCD_dma.h
MCD_progCheck.h
MCD_tasksInit.h
menu.h
micrel.h udoo: Add ethernet support (FEC + Micrel KSZ9031). 2013-11-28 08:28:54 +01:00
mii_phy.h
miiphy.h SPDX: fix IBM-pibs license identifier 2013-09-20 10:30:54 -04:00
mk48t59.h
mmc.h mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
mpc5xx.h
mpc5xxx_sdma.h
mpc5xxx.h
mpc8xx_irq.h
mpc8xx.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
mpc83xx.h
mpc85xx.h
mpc86xx.h
mpc106.h
mpc824x.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
mpc8260_irq.h
mpc8260.h
msc01.h malta: support for coreFPGA6 boards 2013-11-09 17:21:01 +01:00
mtd_node.h
mv88e6352.h
mvmfp.h
nand.h mtd: nand: atmel: prepare for nand spl boot support 2014-03-09 19:19:06 +01:00
net.h net: Fix mcast function pointer prototype 2013-11-22 16:57:13 -06:00
netdev.h net: gem: Add OF initialization support 2014-03-04 09:27:35 -05:00
nios2-epcs.h
nios2-io.h
nios2-yanu.h
nios2.h
nomadik.h
ns16550.h
ns87308.h
onenand_uboot.h
os.h sandbox: Allow Ctrl-C to work in sandbox 2014-03-17 20:05:49 -06:00
palmas.h ARM: OMAP5: Power: Add new function to turn on SMPS10 2013-10-20 23:42:39 +02:00
part_efi.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
part.h sandbox: block driver using host file/device as backing store 2014-01-08 17:24:03 -07:00
pc_keyb.h
pca953x.h
pca9564.h
pca9698.h
pci_gt64120.h
pci_ids.h malta: support for coreFPGA6 boards 2013-11-09 17:21:01 +01:00
pci_msc01.h malta: support for coreFPGA6 boards 2013-11-09 17:21:01 +01:00
pci.h pci.h: allow inclusion in assembly source 2013-11-09 17:21:01 +01:00
pcmcia.h
phy.h Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx 2013-12-02 08:38:28 -05:00
physmem.h
post.h
ppc_asm.tmpl powerpc: mpc8260: consolidate CONFIG_MPC8260 and CONFIG_8260 2014-03-07 10:59:06 -05:00
ppc_defs.h
ps2mult.h
pwm.h
radeon.h
reiserfs.h
rsa.h
rtc.h
s6e63d6.h
s_record.h
SA-1100.h
sandboxblockdev.h sandbox: block driver using host file/device as backing store 2014-01-08 17:24:03 -07:00
sandboxfs.h sandbox: implement exists() function 2014-02-19 09:47:34 -05:00
sata.h
scf0403_lcd.h lcd: add DataImage SCF0403x LCD panel support 2013-11-12 10:08:48 +01:00
scsi.h
sdhci.h mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
search.h
sed156x.h
sed13806.h
serial.h
sh_pfc.h
sh_tmu.h sh: sh4: Remove CONFIG_SH4A definition from source code 2014-01-09 12:47:15 +09:00
sha1.h
sha256.h
sja1000.h
slre.h
sm501.h
sound.h sound: Move Samsung-specific code into its own file 2014-03-17 20:05:49 -06:00
spartan2.h
spartan3.h
spd_sdram.h
spd.h
spi_flash.h Cosmetic: Typo fixes 2014-03-07 10:59:06 -05:00
spi.h sf: Add dual memories support - DUAL_PARALLEL 2014-01-12 21:40:22 +05:30
spl.h common: spl: Add spl sata boot support 2014-02-19 10:47:43 -05:00
splash.h
status_led.h
stdio_dev.h
stratixII.h
sx151x.h Add support for SX151x SPI GPIO Expanders 2013-11-08 09:39:13 -05:00
sym53c8xx.h
systemace.h
tca642x.h
tegra-kbc.h
thor.h usb:g_dnl:f_thor: USB download function to support TIZEN's THOR protocol 2013-10-20 23:42:41 +02:00
timestamp.h
tis.h
tmu.h
tpm.h
tps6586x.h
trace.h
tsec.h net: tsec: Use portable regs type (uint->u32) 2013-11-22 17:03:17 -06:00
tsi108.h
tsi148.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
twl4030.h
twl6030.h ARMV7: OMAP4: Add twl6032 support 2013-12-04 08:11:28 -05:00
tws.h
ubi_uboot.h
universe.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
usb_cdc_acm.h
usb_defs.h usb: Move 'bmRequestType' USB device request macros from EHCI header 2013-10-20 23:42:38 +02:00
usb_ether.h usb: net: introduce support for Moschip USB ethernet 2014-03-12 17:04:31 -04:00
usb_mass_storage.h usb: ums: wait for usb cable connection before enter ums mode 2014-01-13 12:29:12 +01:00
usb.h usb: ums: add ums exit feature by ctrl+c or by detach usb cable 2013-11-08 20:46:19 +01:00
usbdescriptors.h
usbdevice.h
usbroothubdes.h usb: create common header virtual root hub descriptors 2014-03-10 18:53:36 +01:00
version.h
video_ad7176.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
video_ad7177.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
video_ad7179.h
video_easylogo.h
video_fb.h video, cfb_console: make background and foreground color configurable 2013-10-30 10:48:37 +01:00
video_font_4x6.h cosmetic: remove empty lines at the top of file 2013-11-08 09:41:37 -05:00
video_font_data.h
video_font.h
video_logo.h
video.h
virtex2.h
vsc7385.h
vsprintf.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
vxworks.h common/cmd_bootm: extend do_bootm_vxworks to support the new VxWorks boot interface. 2013-12-16 08:59:05 -05:00
w83c553f.h
watchdog.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
xilinx.h
xyzModem.h
zfs_common.h
zynqpl.h fpga: zynqpl: Add support for zc7015 device 2014-02-06 10:08:14 +01:00