From: 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> References: <20110718084259.GY5783@atomide.com> Return-path: 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 In-Reply-To: <20110718084259.GY5783@atomide.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: linux-omap@vger.kernel.org Cc: tony@atomide.com, Jan Weitzel 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