kmp204x: handle dip-switch for factory settings
authorStefan Bigler <stefan.bigler@keymile.com>
Fri, 2 May 2014 08:49:27 +0000 (10:49 +0200)
committerYork Sun <yorksun@freescale.com>
Tue, 13 May 2014 15:26:54 +0000 (08:26 -0700)
commit4921a149e1470d92e2982e13c709357d90ef5e6c
treeb8825d039e819e4c35c24e4c8fa762d43bf1dad7
parenta53e65d053401fff12740a8bbed8cb41670c268f
kmp204x: handle dip-switch for factory settings

Add readout of dip-switch to revert to factory settings.
If one or more dip-switch are set, launch bank 0 that contains the
bootloader to do the required action.

Signed-off-by: Stefan Bigler <stefan.bigler@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
board/keymile/kmp204x/kmp204x.c
board/keymile/kmp204x/kmp204x.h
board/keymile/kmp204x/qrio.c