board/keymile/km82xx: setting dip_switch 3 and 4 will run bootloader
Setting dip_switch 3 and 4 also will run bootloader in COGE3 and COGE6 It is required remove local mgmt IP address, when DIP Switch PIN3 is enabled. DIP Switch 4 also enabled to avoid u-boot update in future for DIP switch enhancements. Signed-off-by: Bagavathiannan Palanisamy <Bagavathiannan.Palanisamy@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
This commit is contained in:
parent
22554ba1c9
commit
cd7255fdc2
|
|
@ -329,8 +329,8 @@ int last_stage_init(void)
|
||||||
|
|
||||||
dip_switch = in_8(&base->mswitch);
|
dip_switch = in_8(&base->mswitch);
|
||||||
dip_switch &= BFTICU_DIPSWITCH_MASK;
|
dip_switch &= BFTICU_DIPSWITCH_MASK;
|
||||||
/* dip switch 'full reset' or 'db erase' */
|
/* dip switch 'full reset' or 'db erase' or 'Local mgmt IP' or any */
|
||||||
if (dip_switch & 0x1 || dip_switch & 0x2) {
|
if (dip_switch != 0) {
|
||||||
/* start bootloader */
|
/* start bootloader */
|
||||||
puts("DIP: Enabled\n");
|
puts("DIP: Enabled\n");
|
||||||
setenv("actual_bank", "0");
|
setenv("actual_bank", "0");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue