summaryrefslogtreecommitdiff
path: root/board/keymile/km82xx
diff options
context:
space:
mode:
authorBagavathiannan Palanisamy <Bagavathiannan.Palanisamy@keymile.com>2015-11-17 10:53:34 +0100
committerTom Rini <trini@konsulko.com>2015-11-18 15:28:56 -0500
commitcd7255fdc2f032a67369869a7aa26d3f9ad38b21 (patch)
tree9c8bf1052b0d51727d629022a8c1e2054e898fd7 /board/keymile/km82xx
parent22554ba1c9d8ea4c8abda23017ccb1cee0c3358e (diff)
downloadu-boot-imx-cd7255fdc2f032a67369869a7aa26d3f9ad38b21.zip
u-boot-imx-cd7255fdc2f032a67369869a7aa26d3f9ad38b21.tar.gz
u-boot-imx-cd7255fdc2f032a67369869a7aa26d3f9ad38b21.tar.bz2
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>
Diffstat (limited to 'board/keymile/km82xx')
-rw-r--r--board/keymile/km82xx/km82xx.c4
1 files changed, 2 insertions, 2 deletions
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");