Re: [U-Boot] [PATCH 1/5] common: env_mmc: support loading env from different cards

2015-12-15 Thread Peng Fan
Hi Stefano, On Tue, Dec 15, 2015 at 03:58:47PM +0100, Stefano Babic wrote: >Hi Peng, > >On 15/12/2015 09:26, Peng Fan wrote: >> Some boards support booting from different SD card slots. >> For example, mx6dpsabresd board supports booting from SD2, >> SD3, EMMC4, using different boot switch. And th

Re: [U-Boot] [PATCH 1/5] common: env_mmc: support loading env from different cards

2015-12-15 Thread Stefano Babic
Hi Peng, On 15/12/2015 09:26, Peng Fan wrote: > Some boards support booting from different SD card slots. > For example, mx6dpsabresd board supports booting from SD2, > SD3, EMMC4, using different boot switch. And the index > numbers are SD2(0), SD3(1), EMMC4(2). > But CONFIG_SYS_MMC_ENV_DEV is ha

[U-Boot] [PATCH 1/5] common: env_mmc: support loading env from different cards

2015-12-15 Thread Peng Fan
Some boards support booting from different SD card slots. For example, mx6dpsabresd board supports booting from SD2, SD3, EMMC4, using different boot switch. And the index numbers are SD2(0), SD3(1), EMMC4(2). But CONFIG_SYS_MMC_ENV_DEV is hardcoded to 1(for SD3), so when booting from SD2(using 0),