From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 16 Nov 2015 12:04:45 +0100 Subject: [U-Boot] [PATCH 13/17] board/keymile/km82xx: setting dip_switch 3 and 4 will run bootloader In-Reply-To: <1447426768-23226-14-git-send-email-valentin.longchamp@keymile.com> References: <1447426768-23226-1-git-send-email-valentin.longchamp@keymile.com> <1447426768-23226-14-git-send-email-valentin.longchamp@keymile.com> Message-ID: <5649B84D.1010104@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Valentin, Am 13.11.2015 um 15:59 schrieb Valentin Longchamp: > From: Bagavathiannan Palanisamy > > 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 > Signed-off-by: Valentin Longchamp > --- > > board/keymile/km82xx/km82xx.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko > > diff --git a/board/keymile/km82xx/km82xx.c b/board/keymile/km82xx/km82xx.c > index 01a3c20..9e285ec 100644 > --- a/board/keymile/km82xx/km82xx.c > +++ b/board/keymile/km82xx/km82xx.c > @@ -329,8 +329,8 @@ int last_stage_init(void) > > dip_switch = in_8(&base->mswitch); > dip_switch &= BFTICU_DIPSWITCH_MASK; > - /* dip switch 'full reset' or 'db erase' */ > - if (dip_switch & 0x1 || dip_switch & 0x2) { > + /* dip switch 'full reset' or 'db erase' or 'Local mgmt IP' or any */ > + if (dip_switch != 0) { > /* start bootloader */ > puts("DIP: Enabled\n"); > setenv("actual_bank", "0"); > -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany