[U-Boot] [PATCH V2] imx: mx7: Add support for USB and normal boot modes

Eric Nelson eric at nelint.com
Mon Oct 2 14:19:26 UTC 2017


Hi Stefano,

On 10/02/2017 06:21 AM, Stefano Babic wrote:
> On 31/08/2017 00:13, Eric Nelson wrote:
>> This adds support for two additional boot modes on the i.MX7D SoC, which
>> is most useful when doing U-Boot development on this chip.
>>
>> 1. "bmode usb" can be used to force the ROM boot loader's serial
>> 2. "bmode normal" can be used to revert to the normal boot mode
>>     as specified by fuses and BOOT_MODE pins
>>
>> Signed-off-by: Eric Nelson <eric at nelint.com>
>> ---
>> V2 adds "normal" mode as suggested by Troy Kisky
>>   arch/arm/mach-imx/mx7/soc.c | 3 +++
>>   1 file changed, 3 insertions(+)
>>
>> diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch/arm/mach-imx/mx7/soc.c
>> index 87bf105..15be42a 100644
>> --- a/arch/arm/mach-imx/mx7/soc.c
>> +++ b/arch/arm/mach-imx/mx7/soc.c
>> @@ -372,6 +372,9 @@ void set_wdog_reset(struct wdog_regs *wdog)
>>    * to SBMR1, which will determine the boot device.
>>    */
>>   const struct boot_mode soc_boot_modes[] = {
>> +	{"normal",	MAKE_CFGVAL(0x00, 0x00, 0x00, 0x00)},
>> +	{"usb",		MAKE_CFGVAL(0x01, 0x00, 0x00, 0x00)},
>> +
>>   	{"ecspi1:0",	MAKE_CFGVAL(0x00, 0x60, 0x00, 0x00)},
>>   	{"ecspi1:1",	MAKE_CFGVAL(0x40, 0x62, 0x00, 0x00)},
>>   	{"ecspi1:2",	MAKE_CFGVAL(0x80, 0x64, 0x00, 0x00)},
>>
> 
> Sorry, it was for a long time in the queue - discussion in thread is
> spreading away from the original review (I had errouneosly set it to
> Changes requested).
> 
> Applied to u-boot-imx, -master, thanks !
> 

Sorry, but we rejected this patch (because it doesn't work).

https://patchwork.ozlabs.org/patch/807934/

Regards,


Eric



More information about the U-Boot mailing list