From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Wed, 30 Apr 2014 10:04:27 -0700 Subject: [U-Boot] [PATCH 2/8] kmp204x: handle dip-switch for factory settings In-Reply-To: <1398862909-17580-3-git-send-email-valentin.longchamp@keymile.com> References: <1398862909-17580-1-git-send-email-valentin.longchamp@keymile.com> <1398862909-17580-3-git-send-email-valentin.longchamp@keymile.com> Message-ID: <53612D1B.5010204@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 04/30/2014 06:01 AM, Valentin Longchamp wrote: > From: Stefan Bigler > diff --git a/board/keymile/kmp204x/qrio.c b/board/keymile/kmp204x/qrio.c > index 11949f4..c4f8dfd 100644 > --- a/board/keymile/kmp204x/qrio.c > +++ b/board/keymile/kmp204x/qrio.c > @@ -158,3 +158,16 @@ void qrio_set_leds(void) > ctrlh |= (CTRLH_WRL_BOOT | CTRLH_WRL_UNITRUN); > out_8(qrio_base + CTRLH_OFF, ctrlh); > } > + > +#define CTRLL_OFF 0x03 > +#define CTRLL_WRB_BUFENA 0x20 > + > +void qrio_enable_app_buffer(void) > +{ > + u8 ctrll; > + void __iomem *qrio_base = (void *)CONFIG_SYS_QRIO_BASE; You need a blank line here. > + /* enable application buffer */ > + ctrll = in_8(qrio_base + CTRLL_OFF); > + ctrll |= (CTRLL_WRB_BUFENA); > + out_8(qrio_base + CTRLL_OFF, ctrll); > +} >