mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 00:42:16 +00:00
cfeb34ede4
Ensure the built-in eMMC is always named mmcblk0. This is important because: * U-Boot statically assigns MMC device IDs based on controller ID. * U-Boot assumes that kernel MMC device ID numbering matches U-Boot numbering. * U-Boot provides a kernel cmdline option e.g. root=/dev/mmcblk0p3 based on that numbering. * The kernel dynamically assigns MMC device IDs based on enumeration order of the memory behind the host controller, rather than statically based on host controller ID like U-Boot. * By registering the SDHCI controller for the built-in eMMC first, the enumeration of the built-in eMMC is performed first, and hence eMMC gets assigned ID 0 just like U-Boot. If the SD slot is filled, it then gets assigned ID 1 just like U-Boot. * If the MMC IDs mismatch, and the system boots from SD card not eMMC, the kernel will access the eMMC instead of SD card when attempting to mount /dev/mmcblk1p3 as the root fs. If eMMC is not partitioned/formatted, the kernel will panic since the root fs can't be mounted. If eMMC is partitioned and formatted, the kernel will mount an unexpected filesystem as the root fs. This change relies on the SDHCI driver performing initial card detection synchronously during device registration. This is currently the case. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Colin Cross <ccross@android.com> |
||
---|---|---|
.. | ||
include/mach | ||
board-harmony-pcie.c | ||
board-harmony-pinmux.c | ||
board-harmony-power.c | ||
board-harmony.c | ||
board-harmony.h | ||
board-paz00-pinmux.c | ||
board-paz00.c | ||
board-paz00.h | ||
board-seaboard-pinmux.c | ||
board-seaboard.c | ||
board-seaboard.h | ||
board-trimslice-pinmux.c | ||
board-trimslice.c | ||
board-trimslice.h | ||
board.h | ||
clock.c | ||
clock.h | ||
common.c | ||
cpu-tegra.c | ||
devices.c | ||
devices.h | ||
dma.c | ||
fuse.c | ||
fuse.h | ||
gpio-names.h | ||
gpio.c | ||
headsmp.S | ||
hotplug.c | ||
io.c | ||
irq.c | ||
Kconfig | ||
localtimer.c | ||
Makefile | ||
Makefile.boot | ||
pcie.c | ||
pinmux-t2-tables.c | ||
pinmux.c | ||
platsmp.c | ||
powergate.c | ||
tegra2_clocks.c | ||
tegra2_emc.c | ||
tegra2_emc.h | ||
timer.c | ||
usb_phy.c |