u-boot-2016/board
Maxime Ripard de86fc3859 sunxi: Remove the MMC index hack
The current code, if there's both an eMMC and an MMC slot available on the
board, will swap the MMC indices based on whether we booted from the eMMC
or the MMC. This way, the MMC we're supposed to boot on will always have
the index 0.

However, this causes various issues, for example when using other
components that base their behaviour on the MMC index, such as fastboot.

Let's remove that hack, and take the opposite approach. The MMC will always
have the same index, but the bootcmd will pick the same device than the one
we booted from. This is done through the introduction of the mmc_bootdev
environment variable that will be filled by the board code based on the
boot device informations we can get from the SoC.

In order to not introduce regressions, we also need to adjust the fastboot
MMC device and the environment device in order to set it to the eMMC, over
the MMC, like it used to be the case.

Tested-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
2017-10-03 19:12:06 +02:00
..
8dtech/eco5pk
abilis/tb100
advantech
alphaproject/ap_sh4a_4a
altera
amarula/vyasa-rk3288 rk3288: vyasa: Add falcon mode support 2017-10-01 00:33:33 +02:00
amazon/kc1 env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
amlogic/odroid-c2 env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
AndesTech nds32: board: Fix andestech adp-ae3xx.c make fail problem. 2017-09-21 10:30:21 +08:00
Arcturus/ucp1020 env: Rename some other getenv()-related functions 2017-08-16 08:31:11 -04:00
aries env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
aristainetos env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
armadeus spl: add hierarchical defaults for SPL_LDSCRIPT 2017-08-13 17:12:37 +02:00
armltd env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
aspeed/evb_ast2500
astro/mcf5373l
atmark-techno/armadillo-800eva
atmel configs: at91: Remove CONFIG_SYS_EXTRA_OPTIONS assignment 2017-09-14 16:02:48 -04:00
avionic-design
bachmann/ot1200 imx6: drop duplicated bss memset and board_init_r() call 2017-09-18 17:15:28 +02:00
barco imx: imx6: Move gpr_init() function to soc.c 2017-08-28 09:48:53 +02:00
Barix/ipam390 env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
beckhoff/mx53cx9020
birdland/bav335x env: Rename getenv_hex(), getenv_yesno(), getenv_ulong() 2017-08-16 08:30:32 -04:00
bluegiga/apx4devkit env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
bluewater env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
bosch/shc env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
boundary/nitrogen6x env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
broadcom env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
buffalo/lsxl env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
BuR env: Rename getenv_hex(), getenv_yesno(), getenv_ulong() 2017-08-16 08:30:32 -04:00
BuS/eb_cpu5282 env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
cadence/xtfpga env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
calao/usb_a9263
CarMediaLab/flea3 env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
cavium/thunderx
ccv/xpress env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
cei/cei-tk1-som
chipspark/popmetal_rk3288
cirrus/edb93xx
cloudengines/pogo_e02
cobra5272
compal/paz00
compulab imx6: drop duplicated bss memset and board_init_r() call 2017-09-18 17:15:28 +02:00
comtrend
congatec Merge git://git.denx.de/u-boot-imx 2017-09-01 10:40:59 -04:00
coreboot
corscience/tricorder
creative/xfi3
cssi env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
CZ.NIC/turris_omnia env: Rename eth_setenv_enetaddr() to eth_env_set_enetaddr() 2017-08-16 08:23:56 -04:00
d-link/dns325
davinci arm: da850-evm: Enable DM and device tree support for da850-evm 2017-09-29 10:52:21 -04:00
dbau1x00
dfi x86: dfi-bt700: Select SERIAL_RX_BUFFER via Kconfig 2017-08-24 11:00:47 +08:00
ebv/socrates
efi
egnite/ethernut5
el/el6x imx: imx6: Move gpr_init() function to soc.c 2017-08-28 09:48:53 +02:00
embest/mx6boards
emulation
engicam imx6: drop duplicated bss memset and board_init_r() call 2017-09-18 17:15:28 +02:00
esd env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
espt
firefly/firefly-rk3288
freescale board/ls2080ardb: Update board env based on SoC 2017-09-22 12:49:14 -07:00
gateworks/gw_ventana imx6: drop duplicated bss memset and board_init_r() call 2017-09-18 17:15:28 +02:00
gdsys env: Rename some other getenv()-related functions 2017-08-16 08:31:11 -04:00
ge/bx50v3 board: ge: bx50v3: set eth0 MAC address 2017-09-20 15:34:59 +02:00
geekbuying/geekbox
google
grinn env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
gumstix env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
h2200
highbank env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
hisilicon ARM: hisilicon: hikey: Fix eMMC with latest ATF & U-Boot 2017-08-20 09:54:31 -04:00
htkw/mcx env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
huawei/hg556a
ids/ids8313
imgtec
imx31_phycore
intel x86: Support Intel Cherry Hill board 2017-09-16 14:57:44 +08:00
inversepath/usbarmory
iomega/iconnect
is1
isee igep00x0: merge igep0020 and igep0030 defconfigs to igep00x0_defconfig 2017-08-26 14:56:12 -04:00
keymile env: Rename some other getenv()-related functions 2017-08-16 08:31:11 -04:00
kmc/kzm9g
kosagi/novena imx6: drop duplicated bss memset and board_init_r() call 2017-09-18 17:15:28 +02:00
l+g/vinco
LaCie env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
lego/ev3
lg/sniper env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
liebherr/mccmon6 imx6: drop duplicated bss memset and board_init_r() call 2017-09-18 17:15:28 +02:00
logicpd ARM: omap3: am3517-evm: Add device tree and DM support 2017-09-29 14:07:54 -04:00
Marvell ARM: mvebu: set correct mem_size for db-88f6820-amc 2017-08-21 11:40:49 +02:00
maxbcm
microchip/pic32mzda
micronas/vct env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
mini-box/picosam9g45
mpc8308_p1m
mpr2
mqmaker/miqi_rk3288
ms7720se
ms7722se
ms7750se
netgear/cg3100d
nokia/rx51 env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
nvidia
olimex/mx23_olinuxino
omicron/calimain
overo env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
pandora
pb1x00
phytec rockchip: phycore: Read configuration EEPROM & set ethaddr in late init 2017-09-05 11:04:34 +02:00
ppcag/bg0900
qca
qemu-mips
qualcomm/dragonboard410c MAINTAINERS: board: qcom: db410c: Maintainer changed 2017-09-11 13:34:31 -04:00
quipos/cairo
radxa
raidsonic/ib62x0
raspberrypi/rpi env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
renesas ARM: rmobile: Fix SD divider settings on Gen3 2017-09-07 20:04:40 -04:00
rockchip rockchip: rk3399: make spl_board_init board-specific 2017-10-01 00:33:34 +02:00
ronetix
sagem/f@st1704
samsung usb: gadget: Make g_dnl USB settings common 2017-10-03 19:12:05 +02:00
samtec env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
sandbox GPT: create block device for sandbox testing 2017-09-14 21:32:57 -04:00
sandisk/sansa_fuze_plus
sbc8349
sbc8548
sbc8641d
schulercontrol/sc_sps_1
Seagate
seco
sfr/nb4_ser
shmin
siemens usb: gadget: Make g_dnl USB settings common 2017-10-03 19:12:05 +02:00
silica/pengwyn env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
socrates env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
solidrun arm: mvebu: clearfog: document boot from UART 2017-09-26 06:53:26 +02:00
spear board/spear/common: move code to arch/arm/cpu/arm926ejs/spear/ 2017-08-26 14:56:10 -04:00
sr1500
st board: Add stm32h7 SoC, discovery and evaluation boards support 2017-09-22 07:40:03 -04:00
sunxi sunxi: Remove the MMC index hack 2017-10-03 19:12:06 +02:00
Synology env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
synopsys
sysam m68k: add board stmark2, mcf5441x based 2017-08-18 01:26:52 +02:00
syteco/zmx25 env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
tbs/tbs2910
tcl/sl50 env: Rename getenv_hex(), getenv_yesno(), getenv_ulong() 2017-08-16 08:30:32 -04:00
technexion pico-imx7d: Add "how to boot with NXP 4.1 Kernel" 2017-09-18 17:15:28 +02:00
technologic env: Rename eth_setenv_enetaddr() to eth_env_set_enetaddr() 2017-08-16 08:23:56 -04:00
teejet/mt_ventoux env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
terasic
theadorable arm: mvebu: Remove theadorable_defconfig 2017-09-26 06:51:37 +02:00
theobroma-systems rockchip: rk3399-puma: add boot-on regulator to override BIOS_DISABLE 2017-10-01 00:33:35 +02:00
ti ARM: DRA72x: Add support for detection of DRA71x SR 2.1 2017-09-12 18:02:29 -04:00
timll env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
topic/zynq
toradex toradex: imx6: Move g_dnl_bind_fixup() into common SPL code 2017-09-20 15:34:59 +02:00
tplink/wdr4300
tqc env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
udoo imx6: drop duplicated bss memset and board_init_r() call 2017-09-18 17:15:28 +02:00
varisys env: Rename some other getenv()-related functions 2017-08-16 08:31:11 -04:00
ve8313
vscom/baltos env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
wandboard imx6: drop duplicated bss memset and board_init_r() call 2017-09-18 17:15:28 +02:00
warp
warp7
woodburn
work-microwave/work_92105 env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
xes env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
xilinx env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
zipitz2
zyxel/nsa310s