From mboxrd@z Thu Jan 1 00:00:00 1970 From: eric@eukrea.com (=?utf-8?q?Eric=20B=C3=A9nard?=) Date: Fri, 25 Jun 2010 09:06:55 +0200 Subject: [PATCH] eukrea_mbimxsd: factorize motherboard support Message-ID: <1277449615-3971-1-git-send-email-eric@eukrea.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org This motherboard is used for both an i.MX25 and an i.MX35 machines so we can have only one file to support it in plat-mxc. Signed-off-by: Eric B?nard --- arch/arm/mach-mx25/Kconfig | 14 - arch/arm/mach-mx25/Makefile | 1 - arch/arm/mach-mx25/eukrea_mbimxsd-baseboard.c | 260 -------------------- arch/arm/mach-mx25/mach-cpuimx25.c | 2 +- arch/arm/mach-mx3/Kconfig | 14 - arch/arm/mach-mx3/Makefile | 1 - arch/arm/mach-mx3/mach-cpuimx35.c | 2 +- arch/arm/plat-mxc/Kconfig | 8 + arch/arm/plat-mxc/Makefile | 1 + .../eukrea_mbimxsd-baseboard.c | 176 +++++++++++--- .../plat-mxc/include/mach/board-eukrea_cpuimx35.h | 40 --- ...d-eukrea_cpuimx25.h => board-eukrea_cpuimxsd.h} | 10 +- 12 files changed, 158 insertions(+), 371 deletions(-) delete mode 100644 arch/arm/mach-mx25/eukrea_mbimxsd-baseboard.c rename arch/arm/{mach-mx3 => plat-mxc}/eukrea_mbimxsd-baseboard.c (70%) delete mode 100644 arch/arm/plat-mxc/include/mach/board-eukrea_cpuimx35.h rename arch/arm/plat-mxc/include/mach/{board-eukrea_cpuimx25.h => board-eukrea_cpuimxsd.h} (83%) diff --git a/arch/arm/mach-mx25/Kconfig b/arch/arm/mach-mx25/Kconfig index 3a6668e..af982cd 100644 --- a/arch/arm/mach-mx25/Kconfig +++ b/arch/arm/mach-mx25/Kconfig @@ -9,18 +9,4 @@ config MACH_EUKREA_CPUIMX25 bool "Support Eukrea CPUIMX25 Platform" select MXC_ULPI if USB_ULPI -choice - prompt "Baseboard" - depends on MACH_EUKREA_CPUIMX25 - default MACH_EUKREA_MBIMXSD_BASEBOARD - -config MACH_EUKREA_MBIMXSD_BASEBOARD - prompt "Eukrea MBIMXSD development board" - bool - help - This adds board specific devices that can be found on Eukrea's - MBIMXSD evaluation board. - -endchoice - endif diff --git a/arch/arm/mach-mx25/Makefile b/arch/arm/mach-mx25/Makefile index 83ab5d8..71302d4 100644 --- a/arch/arm/mach-mx25/Makefile +++ b/arch/arm/mach-mx25/Makefile @@ -2,4 +2,3 @@ obj-y := mm.o devices.o obj-$(CONFIG_ARCH_MX25) += clock.o obj-$(CONFIG_MACH_MX25_3DS) += mach-mx25pdk.o obj-$(CONFIG_MACH_EUKREA_CPUIMX25) += mach-cpuimx25.o -obj-$(CONFIG_MACH_EUKREA_MBIMXSD_BASEBOARD) += eukrea_mbimxsd-baseboard.o diff --git a/arch/arm/mach-mx25/eukrea_mbimxsd-baseboard.c b/arch/arm/mach-mx25/eukrea_mbimxsd-baseboard.c deleted file mode 100644 index e0f0dfd..0000000 --- a/arch/arm/mach-mx25/eukrea_mbimxsd-baseboard.c +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Copyright (C) 2010 Eric Benard - eric at eukrea.com - * - * Based on pcm970-baseboard.c which is : - * Copyright (C) 2008 Juergen Beisert (kernel at pengutronix.de) - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - * MA 02110-1301, USA. - */ - -#include -#include -#include -#include -#include -#include