From patchwork Thu Aug 18 21:50:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Gardiner X-Patchwork-Id: 1078022 Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7ILqHOv024699 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 18 Aug 2011 21:52:38 GMT Received: from dlep34.itg.ti.com ([157.170.170.115]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id p7ILqGIj013223 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 18 Aug 2011 16:52:17 -0500 Received: from linux.omap.com (smtp-le.itg.ti.com [157.170.170.27]) by dlep34.itg.ti.com (8.13.7/8.13.8) with ESMTP id p7ILqCG5000708 for ; Thu, 18 Aug 2011 16:52:16 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 81DF6806B1 for ; Thu, 18 Aug 2011 16:52:01 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp52.itg.ti.com (dflp52.itg.ti.com [128.247.22.96]) by linux.omap.com (Postfix) with ESMTP id 4A5FD80633 for ; Thu, 18 Aug 2011 16:51:02 -0500 (CDT) Received: from red.ext.ti.com (red.ext.ti.com [192.94.93.37]) by dflp52.itg.ti.com (8.13.7/8.13.8) with ESMTP id p7ILp2ro012477 for ; Thu, 18 Aug 2011 16:51:02 -0500 (CDT) Received: from psmtp.com (na3sys009amx250.postini.com [74.125.149.134]) by red.ext.ti.com (8.13.7/8.13.7) with SMTP id p7ILp1Hh020809 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 18 Aug 2011 16:51:01 -0500 Received: from na3sys009aog101.obsmtp.com ([74.125.149.67]) (using TLSv1) by na3sys009amx250.postini.com ([74.125.148.10]) with SMTP; Thu, 18 Aug 2011 14:51:01 PDT Received: from mail-yi0-f49.google.com ([209.85.218.49]) (using TLSv1) by na3sys009aob101.postini.com ([74.125.148.12]) with SMTP ID DSNKTk2JRTufYfHBKDxPFf7f48N+e/TJHVRk@postini.com; Thu, 18 Aug 2011 14:51:01 PDT Received: by mail-yi0-f49.google.com with SMTP id 13so1927324yic.8 for ; Thu, 18 Aug 2011 14:51:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nanometrics.ca; s=google; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :in-reply-to:references; bh=UwSslrhLB+fsPEDbU3p2K4bRyt81y9diaMn8x4pef4I=; b=FeZvduahaKlMJPyNDm84/cXx8kil1LmI0Z7aepmdZJurBLDtwrcGmWrj2aP5AWpb+y evp/FEJAhYo4+Y6h9wIdyY5nQNIVU6Sid4Cp5Jel6ftH48z/XDhU/bhROZ79axolwGpd ntXG3YLVTtSwpnZe3bXcPPaYXc6Q7OdrYHc6g= Received: by 10.236.176.39 with SMTP id a27mr1650474yhm.37.1313704260556; Thu, 18 Aug 2011 14:51:00 -0700 (PDT) Received: from localhost.localdomain ([206.191.47.130]) by mx.google.com with ESMTPS id s62sm2485298yhn.19.2011.08.18.14.50.59 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 18 Aug 2011 14:51:00 -0700 (PDT) From: Ben Gardiner To: Sekhar Nori , davinci-linux-open-source@linux.davincidsp.com Subject: [PATCH 5/5] ARM: davinci: da850, omapl138: introduce new board-omapl138-heliosv1 Date: Thu, 18 Aug 2011 17:50:51 -0400 Message-Id: X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: In-Reply-To: References: X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:99.90000/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 2 (0.5000:0.0750) s cv GT3 gt2 gt1 r p m c X-pstn-addresses: from [35/1] Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 18 Aug 2011 21:52:38 +0000 (UTC) Add support for the Nanometrics Helios Platform V1 Hardware. Initially support includes only serial console and watchdog support. Signed-off-by: Ben Gardiner Reviewed-by: James Nuss --- arch/arm/mach-davinci/Kconfig | 9 ++++ arch/arm/mach-davinci/Makefile | 1 + arch/arm/mach-davinci/board-omapl138-heliosv1.c | 51 +++++++++++++++++++++++ 3 files changed, 61 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-davinci/board-omapl138-heliosv1.c diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig index c0deaca..21a8ce9 100644 --- a/arch/arm/mach-davinci/Kconfig +++ b/arch/arm/mach-davinci/Kconfig @@ -224,6 +224,15 @@ config MACH_OMAPL138_HAWKBOARD Information of this board may be found at http://www.hawkboard.org/ +config MACH_HELIOS_V1 + bool "Nanometrics OMAPL-138 Helios V1 platform" + depends on ARCH_DAVINCI_DA850 + help + Say Y here to select the Nanometrics OMAPL-138 Helios V1 platform. + This is a development system based on the DA850 EVM baseboard. + It is the first Helios hardware platform upon which other platforms in the + Helios product family are based. + config DAVINCI_MUX bool "DAVINCI multiplexing support" depends on ARCH_DAVINCI diff --git a/arch/arm/mach-davinci/Makefile b/arch/arm/mach-davinci/Makefile index 9a01441..96d74c9 100644 --- a/arch/arm/mach-davinci/Makefile +++ b/arch/arm/mach-davinci/Makefile @@ -36,6 +36,7 @@ obj-$(CONFIG_MACH_DAVINCI_DA850_EVM) += board-da850-evm.o obj-$(CONFIG_MACH_TNETV107X) += board-tnetv107x-evm.o obj-$(CONFIG_MACH_MITYOMAPL138) += board-mityomapl138.o obj-$(CONFIG_MACH_OMAPL138_HAWKBOARD) += board-omapl138-hawk.o +obj-$(CONFIG_MACH_HELIOS_V1) += board-omapl138-heliosv1.o # Power Management obj-$(CONFIG_CPU_FREQ) += cpufreq.o diff --git a/arch/arm/mach-davinci/board-omapl138-heliosv1.c b/arch/arm/mach-davinci/board-omapl138-heliosv1.c new file mode 100644 index 0000000..73cc0a9 --- /dev/null +++ b/arch/arm/mach-davinci/board-omapl138-heliosv1.c @@ -0,0 +1,51 @@ +/* + * Nanometrics OMAPL-138 Helios V1 platform. + * + * Copyright (C) 2011 Nanometrics Inc. + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of + * any kind, whether express or implied. + */ + +#include +#include +#include +#include + +#include +#include + +#include +#include +#include + +static __init void helios_v1_init(void) +{ + int ret; + + da850_reference_serial_init(); + + ret = da8xx_register_watchdog(); + if (ret) + pr_warning("%s: watchdog registration failed: %d\n", + __func__, ret); +} + +#ifdef CONFIG_SERIAL_8250_CONSOLE +static int __init helios_v1_console_init(void) +{ + if (!machine_is_helios_v1()) + return 0; + + return da850_reference_add_preferred_console(); +} +console_initcall(helios_v1_console_init); +#endif + +MACHINE_START(HELIOS_V1, "Nanometrics OMAPL-138 Helios V1 platform") + .boot_params = DA850_REFERENCE_BOOT_PARAMS, + .map_io = da850_reference_map_io, + .init_irq = cp_intc_init, + .timer = &davinci_timer, + .init_machine = helios_v1_init, +MACHINE_END