From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Yanok Subject: [PATCH V2] mt_ventoux: support for TeeJet Mt.Ventoux board Date: Wed, 28 Dec 2011 00:09:37 +0100 Message-ID: <1325027377-13484-1-git-send-email-yanok@emcraft.com> References: <1324940912-18164-3-git-send-email-yanok@emcraft.com> Return-path: In-Reply-To: <1324940912-18164-3-git-send-email-yanok@emcraft.com> Sender: linux-omap-owner@vger.kernel.org To: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, grinberg@compulab.co.il Cc: sasha_d@emcraft.com, Ilya Yanok List-Id: devicetree@vger.kernel.org This patch adds support for TeeJet Mt.Ventoux board based on TAM3517 SOM. Supported devices: - Serial - Ethernet - NAND - USB host - LCD - Touchscreen - CAN controller - ADC128S converter Signed-off-by: Ilya Yanok --- Changes from V1: - Fixed indentation (use tabs not spaces) - Fixed over 80 characters lines - Added #if defined(CONFIG_SENSORS_ADCXX_MODULE) to allow adcxx to be a module. - Fixes for compilation with CONFIG_TOUCHSCREEN_ADS7846!=y - Added defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) - Moved call to omap_ads7846_init to separate small function - Register fixed regulator used for touchscreen only if the driver is enabled - Changed board name (MT_VENTOUX -> Mt.Ventoux) arch/arm/mach-omap2/Kconfig | 6 + arch/arm/mach-omap2/Makefile | 1 + arch/arm/mach-omap2/board-am3517_mt_ventoux.c | 724 +++++++++++++++++++++++++ arch/arm/plat-omap/include/plat/uncompress.h | 1 + 4 files changed, 732 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-omap2/board-am3517_mt_ventoux.c diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index fd9b8c0..45f5dcb 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig @@ -237,6 +237,12 @@ config MACH_MCX select OMAP_PACKAGE_CBB select REGULATOR_FIXED_VOLTAGE +config MACH_AM3517_MT_VENTOUX + bool "TeeJet MT_VENTOUX (TAM3517 based) board" + depends on ARCH_OMAP3 + select OMAP_PACKAGE_CBB + select REGULATOR_FIXED_VOLTAGE + config MACH_NOKIA_N800 bool diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 9405dfc..cbc3a36 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile @@ -239,6 +239,7 @@ obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o obj-$(CONFIG_MACH_TI8168EVM) += board-ti8168evm.o obj-$(CONFIG_MACH_TI8148EVM) += board-ti8168evm.o obj-$(CONFIG_MACH_MCX) += board-mcx.o +obj-$(CONFIG_MACH_AM3517_MT_VENTOUX) += board-am3517_mt_ventoux.o # Platform specific device init code diff --git a/arch/arm/mach-omap2/board-am3517_mt_ventoux.c b/arch/arm/mach-omap2/board-am3517_mt_ventoux.c new file mode 100644 index 0000000..4b6bd33 --- /dev/null +++ b/arch/arm/mach-omap2/board-am3517_mt_ventoux.c @@ -0,0 +1,724 @@ +/* + * Copyright (C) 2011 Ilya Yanok, Emcraft Systems + * + * Modified from mach-omap2/board-mcx.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