From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felipe Balbi Subject: Re: [PATCH 3/3] omap: zoom3: add zoom3 board support Date: Sat, 24 Oct 2009 02:03:48 +0300 Message-ID: <20091023230348.GC13020@gandalf> References: <1256325806-14400-1-git-send-email-vikram.pandita@ti.com> <1256325806-14400-2-git-send-email-vikram.pandita@ti.com> <1256325806-14400-3-git-send-email-vikram.pandita@ti.com> <1256325806-14400-4-git-send-email-vikram.pandita@ti.com> Reply-To: me@felipebalbi.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from ns1.siteground211.com ([209.62.36.12]:36120 "EHLO serv01.siteground211.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751340AbZJWXDs (ORCPT ); Fri, 23 Oct 2009 19:03:48 -0400 Content-Disposition: inline In-Reply-To: <1256325806-14400-4-git-send-email-vikram.pandita@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Vikram Pandita Cc: linux-omap@vger.kernel.org Hi, On Fri, Oct 23, 2009 at 02:23:26PM -0500, Vikram Pandita wrote: > diff --git a/arch/arm/mach-omap2/board-zoom2-zoom3.c b/arch/arm/mach-omap2/board-zoom2-zoom3.c > index 4ad9b94..d806dbf 100644 > --- a/arch/arm/mach-omap2/board-zoom2-zoom3.c > +++ b/arch/arm/mach-omap2/board-zoom2-zoom3.c > @@ -281,7 +281,11 @@ static void __init omap_zoom2_map_io(void) > omap2_map_common_io(); > } > > +#ifdef CONFIG_MACH_OMAP_ZOOM3 > +MACHINE_START(OMAP_ZOOM3, "OMAP ZOOM3 board") > +#else > MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board") > +#endif what happens if you want to build a kernel for both boards ? how about just adding a new MACHINE_START() declaration without ifdeferry ? Take a look at arch/arm/mach-omap2/board-n8x0.c for an example ;-) -- balbi