From patchwork Tue Jul 19 11:45:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Weitzel X-Patchwork-Id: 988652 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6JBjYvv017308 for ; Tue, 19 Jul 2011 11:45:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751584Ab1GSLpd (ORCPT ); Tue, 19 Jul 2011 07:45:33 -0400 Received: from mail.visioncatalog.de ([217.6.246.34]:56307 "EHLO root.phytec.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751469Ab1GSLpc (ORCPT ); Tue, 19 Jul 2011 07:45:32 -0400 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 97EF5BF0DC; Tue, 19 Jul 2011 13:48:53 +0200 (CEST) Received: from numalfix.phytec.de ([127.0.0.1]) by idefix.phytec.de (Lotus Domino Release 8.5.2FP2) with ESMTP id 2011071913453037-194052 ; Tue, 19 Jul 2011 13:45:30 +0200 Received: by numalfix.phytec.de (Postfix, from userid 1002) id 3BC851A3F88; Tue, 19 Jul 2011 13:45:30 +0200 (CEST) From: Jan Weitzel To: linux-omap@vger.kernel.org Cc: tony@atomide.com, Jan Weitzel Subject: [RFC 1/2] omap4: board-omap4panda: prepare for join Date: Tue, 19 Jul 2011 13:45:26 +0200 Message-Id: <1311075927-5562-2-git-send-email-j.weitzel@phytec.de> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <20110718084259.GY5783@atomide.com> References: <20110718084259.GY5783@atomide.com> X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 8.5.2FP2|March 22, 2011) at 19.07.2011 13:45:30, Serialize by Router on Idefix/Phytec(Release 8.5.2FP2|March 22, 2011) at 19.07.2011 13:45:30, Serialize complete at 19.07.2011 13:45:30 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 19 Jul 2011 11:45:35 +0000 (UTC) Prepare board-omap4panda for joing other similar boards. Split common stuff into board-omap4panda-common. MUX: board_mux and omap4_panda_mux omap4_common_preinit: for muxing omap4_common_init: all common devices struct panda_board_data: gpios, omap_board_data, i2c_board_info ... some inititialisation check if omap4_panda_config entry is valid i2c_2_board_speed == 0 -> i2c_2 not used hup_power_gpio == -EINVAL -> gpio not used Signed-off-by: Jan Weitzel --- arch/arm/mach-omap2/Makefile | 1 + arch/arm/mach-omap2/board-omap4panda-common.c | 380 ++++++++++++++++++++++ arch/arm/mach-omap2/board-omap4panda-common.h | 39 +++ arch/arm/mach-omap2/board-omap4panda.c | 421 +++++-------------------- 4 files changed, 496 insertions(+), 345 deletions(-) create mode 100644 arch/arm/mach-omap2/board-omap4panda-common.c create mode 100644 arch/arm/mach-omap2/board-omap4panda-common.h diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 2d4d18e..5d829d6 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile @@ -237,6 +237,7 @@ obj-$(CONFIG_MACH_OMAP_4430SDP) += board-4430sdp.o \ hsmmc.o \ omap_phy_internal.o obj-$(CONFIG_MACH_OMAP4_PANDA) += board-omap4panda.o \ + board-omap4panda-common.o \ hsmmc.o \ omap_phy_internal.o diff --git a/arch/arm/mach-omap2/board-omap4panda-common.c b/arch/arm/mach-omap2/board-omap4panda-common.c new file mode 100644 index 0000000..bcf8776 --- /dev/null +++ b/arch/arm/mach-omap2/board-omap4panda-common.c @@ -0,0 +1,380 @@ +/* + * Board support file for OMAP4430 based PandaBoard. + * + * Copyright (C) 2010 Texas Instruments + * + * Author: David Anders + * + * Based on mach-omap2/board-4430sdp.c + * + * Author: Santosh Shilimkar + * + * Based on mach-omap2/board-3430sdp.c + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include