From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Date: Thu, 04 Aug 2011 14:36:58 +0400 Subject: [U-Boot] [PATCH 8/8] km_arm: enable POST for these boards In-Reply-To: <1312375027-27693-9-git-send-email-valentin.longchamp@keymile.com> References: <1312375027-27693-1-git-send-email-valentin.longchamp@keymile.com> <1312375027-27693-9-git-send-email-valentin.longchamp@keymile.com> Message-ID: <4E3A764A.4030700@mvista.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello. On 03-08-2011 16:37, Valentin Longchamp wrote: > The current km_arm boards have a Power-On test jumper. When this > jumper is set, this triggers some Power-On tests on the board. > This patch enables the support of this jumper for starting the > memory_regions test when the jumper is set. > Signed-off-by: Valentin Longchamp > Signed-off-by: Holger Brunck > --- > board/keymile/km_arm/km_arm.c | 11 +++++++++++ > include/configs/km/km_arm.h | 8 ++++++++ > 2 files changed, 19 insertions(+), 0 deletions(-) > diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c > index a8f2b23..f12c730 100644 > --- a/board/keymile/km_arm/km_arm.c > +++ b/board/keymile/km_arm/km_arm.c > @@ -448,6 +448,17 @@ int get_scl(void) > } > #endif > > +#if defined(CONFIG_POST) > + > +#define KM_POST_EN_L 44 > + > +int post_hotkeys_pressed(void) > +{ > + int val = kw_gpio_get_value(KM_POST_EN_L); > + return !val; WHy not just: return !kw_gpio_get_value(KM_POST_EN_L); WBR, Sergei