From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mo1.mail-out.ovh.net ([178.32.228.1]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U5Z3E-00072U-E5 for barebox@lists.infradead.org; Wed, 13 Feb 2013 09:54:53 +0000 Received: from mail239.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo1.mail-out.ovh.net (Postfix) with SMTP id 39A61FFA2BC for ; Wed, 13 Feb 2013 11:10:11 +0100 (CET) Date: Wed, 13 Feb 2013 10:53:41 +0100 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20130213095341.GK19322@game.jcrosoft.org> References: <1360703460-20379-1-git-send-email-plagnioj@jcrosoft.com> <20130213081845.GA1906@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20130213081845.GA1906@pengutronix.de> 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/1] highbank: use the provided dtb by the firmware to probe barebox device and mem size To: Sascha Hauer Cc: barebox@lists.infradead.org, Rob Herring On 09:18 Wed 13 Feb , Sascha Hauer wrote: > On Tue, Feb 12, 2013 at 10:11:00PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > > the dtb is at 0x1000 > > > > if no dtb present use C code device > > > > kepp in C the timer/gpio/uart > > > > Cc: Rob Herring > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > --- > > arch/arm/boards/highbank/env/bin/init_board | 7 +++++ > > arch/arm/boards/highbank/init.c | 44 ++++++++++++++++++++++++--- > > 2 files changed, 47 insertions(+), 4 deletions(-) > > create mode 100644 arch/arm/boards/highbank/env/bin/init_board > > > > diff --git a/arch/arm/boards/highbank/env/bin/init_board b/arch/arm/boards/highbank/env/bin/init_board > > We already have: > > | commit f59f5e86256f82daf4af3bf1922805592b780613 > | Author: Sascha Hauer > | Date: Sat Oct 6 19:51:47 2012 +0200 > | > | of: find and register memory during probe > | > | This automatically registers the memory nodes in the devicetree. > | > | Signed-off-by: Sascha Hauer > > I suspect there is something missing since this commit checks for the > 'device_type' property, but does not actually test if it matches > 'memory'. So there might be some work necessary, but this code already > handles 64bit cells correctly, at least it tries to ;) ok > > Sascha > > -- > 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