eukrea_mbimxsd: factorize motherboard support
Subsystems (3)
PATCH 1/1 eukrea_mbimxsd: factorize motherboard support
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 <[email protected]>
---
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%)arch/arm/mach-mx25/Kconfig +0 -14
@@ -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
arch/arm/mach-mx25/Makefile +0 -1
@@ -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
arch/arm/mach-mx25/eukrea_mbimxsd-baseboard.c deleted +0 -260
260 lines not on this page · raw message
arch/arm/mach-mx25/mach-cpuimx25.c +1 -1
@@ -29,7 +29,7 @@#include <linux/usb/ulpi.h> #include <linux/fsl_devices.h> -#include <mach/board-eukrea_cpuimx25.h> +#include <mach/board-eukrea_cpuimxsd.h> #include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h>
arch/arm/mach-mx3/Kconfig +0 -14
@@ -133,18 +133,4 @@ config MACH_EUKREA_CPUIMX35 Include support for Eukrea CPUIMX35 platform. This includes specific configurations for the board and its peripherals. -choice - prompt "Baseboard" - depends on MACH_EUKREA_CPUIMX35 - 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
arch/arm/mach-mx3/Makefile +0 -1
@@ -25,4 +25,3 @@ obj-$(CONFIG_MACH_ARMADILLO5X0) += mach-armadillo5x0.o obj-$(CONFIG_MACH_MX35_3DS) += mach-mx35pdk.o obj-$(CONFIG_MACH_KZM_ARM11_01) += mach-kzm_arm11_01.o obj-$(CONFIG_MACH_EUKREA_CPUIMX35) += mach-cpuimx35.o -obj-$(CONFIG_MACH_EUKREA_MBIMXSD_BASEBOARD) += eukrea_mbimxsd-baseboard.o
arch/arm/mach-mx3/mach-cpuimx35.c +1 -1
@@ -37,7 +37,7 @@#include <asm/mach/time.h> #include <asm/mach/map.h> -#include <mach/board-eukrea_cpuimx35.h> +#include <mach/board-eukrea_cpuimxsd.h> #include <mach/hardware.h> #include <mach/common.h> #include <mach/imx-uart.h>
arch/arm/plat-mxc/Kconfig +8 -0
@@ -82,6 +82,14 @@ config MXC_PWM help Enable support for the i.MX PWM controller(s). +config MACH_EUKREA_MBIMXSD_BASEBOARD + prompt "Eukrea MBIMXSD development board" + depends on MACH_EUKREA_CPUIMX25 || MACH_EUKREA_CPUIMX35 + bool + help + This adds board specific devices that can be found on Eukrea's + MBIMXSD evaluation board. + config MXC_ULPI bool
arch/arm/plat-mxc/Makefile +1 -0
@@ -21,3 +21,4 @@ ifdef CONFIG_SND_IMX_SOC obj-y += ssi-fiq.o obj-y += ssi-fiq-ksym.o endif +obj-$(CONFIG_MACH_EUKREA_MBIMXSD_BASEBOARD) += eukrea_mbimxsd-baseboard.o
arch/arm/plat-mxc/eukrea_mbimxsd-baseboard.c renamed from arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c +142 -34
227 lines not on this page · raw message
arch/arm/plat-mxc/include/mach/board-eukrea_cpuimx35.h deleted +0 -40
@@ -1,40 +0,0 @@ -/* -* Copyright (C) 2010 Eric Benard - eric at eukrea.com -* -* Based on board-pcm038.h 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. -*/ - -#ifndef __ASM_ARCH_MXC_BOARD_EUKREA_CPUIMX35_H__ -#define __ASM_ARCH_MXC_BOARD_EUKREA_CPUIMX35_H__ - -#ifndef __ASSEMBLY__ -/* -* This CPU module needs a baseboard to work. After basic initializing -* its own devices, it calls baseboard's init function. -* TODO: Add your own baseboard init function and call it from -* inside eukrea_cpuimx25_init(). -* -* This example here is for the development board. Refer -* eukrea_mbimx25-baseboard.c -*/ - -extern void eukrea_mbimxsd_baseboard_init (void ); - -#endif - -#endif /* __ASM_ARCH_MXC_BOARD_EUKREA_CPUIMX35_H__ */
arch/arm/plat-mxc/include/mach/board-eukrea_cpuimxsd.h renamed from arch/arm/plat-mxc/include/mach/board-eukrea_cpuimx25.h +5 -5
@@ -19,22 +19,22 @@* MA 02110-1301, USA. */ -#ifndef __ASM_ARCH_MXC_BOARD_EUKREA_CPUIMX25_H__ -#define __ASM_ARCH_MXC_BOARD_EUKREA_CPUIMX25_H__ +#ifndef __ASM_ARCH_MXC_BOARD_EUKREA_CPUIMXSD_H__ +#define __ASM_ARCH_MXC_BOARD_EUKREA_CPUIMXSD_H__#ifndef __ASSEMBLY__/* * This CPU module needs a baseboard to work. After basic initializing * its own devices, it calls baseboard's init function. * TODO: Add your own baseboard init function and call it from -* inside eukrea_cpuimx25_init(). +* inside eukrea_cpuimx25_init() or eukrea_cpuimx35_init(). * * This example here is for the development board. Refer -* eukrea_mbimx25-baseboard.c +* eukrea_mbimxsd-baseboard.c */ extern void eukrea_mbimxsd_baseboard_init (void );#endif -#endif /* __ASM_ARCH_MXC_BOARD_EUKREA_CPUIMX25_H__ */ +#endif /* __ASM_ARCH_MXC_BOARD_EUKREA_CPUIMXSD_H__ */
Signature · 1 line
1.6.3.3