u-boot-brain/drivers
Przemyslaw Marczak 64029f7aee mmc: exynos dwmmc: check boot mode before init dwmmc
Before this commit, the mmc devices were always registered
in the same order. So dwmmc channel 0 was registered as mmc 0,
channel 1 as mmc 1, etc.
In case of possibility to boot from more then one device,
the CONFIG_SYS_MMC_ENV_DEV should always point to right mmc device.

This can be achieved by init boot device as first, so it will be
always registered as mmc 0. Thanks to this, the 'saveenv' command
will work fine for all mmc boot devices.

Exynos based boards usually uses mmc host channels configuration:
- 0, or 0+1 for 8 bit  - as a default boot device (usually eMMC)
- 2 for 4bit - as an optional boot device (usually SD card slot)

And usually the boot order is defined by OM pin configuration,
which can be changed in a few ways, eg.
- Odroid U3     - eMMC card insertion -> first boot from eMMC
- Odroid X2/XU3 - boot priority jumper

By this commit, Exynos dwmmc driver will check the OM pin configuration,
and then try to init the boot device and register it as mmc 0.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Akshay Saraswat <akshay.s@samsung.com>
2015-02-23 19:49:22 +02:00
..
bios_emulator bios_emulator: Add some VESA interface debugging 2015-01-23 17:24:16 -07:00
block x86: ahci: Make sure interface is not busy after enabling the port 2015-01-23 17:24:53 -07:00
bootcount qe: move immap_qe.h from arch directory into common directory 2014-07-22 16:25:54 -07:00
core dm: Add support for all targets which requires MANUAL_RELOC 2015-02-12 15:17:29 -07:00
crypto DM: crypto/fsl - Add Freescale rsa DM driver 2015-01-29 17:09:58 -07:00
ddr arm: mvebu: drivers/ddr: Add DDR3 driver with training code from Marvell bin_hdr 2015-02-06 17:25:03 +01:00
demo dm: Add Kconfig for driver/demo 2015-02-12 10:35:33 -07:00
dfu dfu: dfu_get_buf: check the value of env dfu_bufsiz before use 2014-12-18 12:26:06 +01:00
dma dma: keystone_nav: remove spurious qm_cfg verification 2014-11-06 11:04:39 -05:00
fpga fpga: xilinx: Show fpga info if defined 2015-01-21 10:25:43 +01:00
gpio dm:gpio:mxc add DT support 2015-02-12 15:17:29 -07:00
hwmon kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
i2c dm: Move CONFIG_I2C_COMPAT to Kconfig 2015-02-19 06:19:18 -07:00
input dm: cros_ec: Convert to Kconfig 2015-02-19 06:19:18 -07:00
memory ARM: keystone: aemif: move aemif driver to drivers/memory/ti-aemif.c 2014-06-19 17:53:58 -04:00
misc dm: cros_ec: Convert to Kconfig 2015-02-19 06:19:18 -07:00
mmc mmc: exynos dwmmc: check boot mode before init dwmmc 2015-02-23 19:49:22 +02:00
mtd mtd, omap: fix case NAND_OMAP_GPMC_PREFETCH not defined 2015-02-16 12:41:40 -05:00
net net: keystone_net: move serdes setup to initialization function 2015-02-16 12:41:41 -05:00
pci PCI: add 64-bit prefetchable memory support 2015-02-16 15:48:26 -05:00
pcmcia powerpc: mpc824x: remove MPC824X cpu support 2015-01-05 12:08:55 -05:00
power Merge branch 'master' of git://git.denx.de/u-boot-sunxi 2015-02-02 10:11:44 -05:00
pwm pwm, imx6: add support for pwm modul on imx6 2014-07-23 12:25:42 +02:00
qe qe/deep-sleep: modify qe deep-sleep for generic board 2014-12-15 09:16:49 -08:00
rtc x86: rtc: mc146818: Add helpers to read/write CMOS RAM 2015-01-24 06:13:44 -07:00
serial serial: ns16550: Support debug UART 2015-02-19 06:20:28 -07:00
soc soc: keystone_serdes: generalize configuration mechanism 2014-10-23 11:27:28 -04:00
sound kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
spi dm: Expand and complete Kconfig in drivers/ 2015-02-12 10:35:33 -07:00
thermal dm: Expand and complete Kconfig in drivers/ 2015-02-12 10:35:33 -07:00
tpm Replace <compiler.h> with <linux/compiler.h> 2014-12-08 09:35:46 -05:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb sunxi: otg: Fix peripheral mode 2015-02-16 20:05:52 +01:00
video sunxi: video: Dynamically reserve framebuffer memory 2015-02-16 19:44:38 +01:00
watchdog arm, at91, wdt: make timeout configurable 2015-02-07 23:43:20 +01:00
Kconfig dm: Expand and complete Kconfig in drivers/ 2015-02-12 10:35:33 -07:00
Makefile Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq 2014-11-26 11:23:26 -05:00