From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U4q39-0005rs-H7 for barebox@lists.infradead.org; Mon, 11 Feb 2013 09:51:48 +0000 Date: Mon, 11 Feb 2013 10:51:45 +0100 From: Sascha Hauer Message-ID: <20130211095145.GW1906@pengutronix.de> References: <1360326508-30214-1-git-send-email-shc_work@mail.ru> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1360326508-30214-1-git-send-email-shc_work@mail.ru> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 1/3] ARM: ccmx51: Fix printing board HW-revision To: Alexander Shiyan Cc: barebox@lists.infradead.org On Fri, Feb 08, 2013 at 04:28:26PM +0400, Alexander Shiyan wrote: > Board hardware revision is 1-based. This patch corrects printed value, > so now value printed in console is equal value printed on PCB. > > Signed-off-by: Alexander Shiyan Applied, thanks Sascha > --- > arch/arm/boards/ccxmx51/ccxmx51.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/boards/ccxmx51/ccxmx51.c b/arch/arm/boards/ccxmx51/ccxmx51.c > index a9bf16a..5ec304b 100644 > --- a/arch/arm/boards/ccxmx51/ccxmx51.c > +++ b/arch/arm/boards/ccxmx51/ccxmx51.c > @@ -392,7 +392,7 @@ static int ccxmx51_devices_init(void) > printf("Module Variant: %s (0x%02x)\n", ccxmx51_id->id_string, hwid[0]); > > if (hwid[0]) { > - printf("Module HW Rev : %02x\n", hwid[1]); > + printf("Module HW Rev : %02x\n", hwid[1] + 1); > switch (hwid[2] & 0xc0) { > case 0x00: > manloc = 'B'; > -- > 1.7.3.4 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox