From patchwork Wed May 8 19:23:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Cooper X-Patchwork-Id: 2541451 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id A9943DF2E5 for ; Wed, 8 May 2013 19:24:28 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ua9yV-0006ue-4b; Wed, 08 May 2013 19:24:27 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ua9yS-0000wE-80; Wed, 08 May 2013 19:24:24 +0000 Received: from mho-03-ewr.mailhop.org ([204.13.248.66] helo=mho-01-ewr.mailhop.org) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ua9yN-0000uo-VK for linux-arm-kernel@lists.infradead.org; Wed, 08 May 2013 19:24:21 +0000 Received: from pool-72-84-113-162.nrflva.fios.verizon.net ([72.84.113.162] helo=titan) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Ua9y1-0007i9-3h; Wed, 08 May 2013 19:23:57 +0000 Received: from triton.nowhere.nodomain (triton.lakedaemon.net [10.16.5.78]) by titan (Postfix) with ESMTP id 1E447427061; Wed, 8 May 2013 15:23:55 -0400 (EDT) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 72.84.113.162 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+dacWPiTBrjgq+K9KR3dv4Fp9JWndP4Y4= From: Jason Cooper To: Tony Lindgren Subject: [RFC PATCH 1/3] ARM: omap3: Seagate Wireless Plus board Date: Wed, 8 May 2013 19:23:32 +0000 Message-Id: <3721abb26b5f3a54d88b4be9578b0c9d88c92ae0.1368038129.git.jason@lakedaemon.net> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130508_152420_050757_67814184 X-CRM114-Status: GOOD ( 15.85 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [204.13.248.66 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linux-omap@vger.kernel.org, Jason Cooper , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hynix include file copied from vendor supplied source code. Signed-off-by: Jason Cooper --- arch/arm/mach-omap2/board-generic.c | 26 +++++++++++++++++++ arch/arm/mach-omap2/sdram-hynix-h8kds0un0mer-4em.h | 30 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 arch/arm/mach-omap2/sdram-hynix-h8kds0un0mer-4em.h diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index e54a480..10b567c 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c @@ -21,6 +21,7 @@ #include "common.h" #include "common-board-devices.h" #include "dss-common.h" +#include "sdram-hynix-h8kds0un0mer-4em.h" #if !(defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)) #define intc_of_init NULL @@ -51,6 +52,13 @@ static void __init omap_generic_init(void) omap_4430sdp_display_init_of(); } +static void __init seagate_wireless_plus_init(void) +{ + omap_sdrc_init(h8kds0un0mer4em_sdrc_params, NULL); + + of_platform_populate(NULL, omap_dt_match_table, NULL, NULL); +} + #ifdef CONFIG_SOC_OMAP2420 static const char *omap242x_boards_compat[] __initdata = { "ti,omap2420", @@ -90,6 +98,24 @@ MACHINE_END #endif #ifdef CONFIG_ARCH_OMAP3 +static const char *seagate_wireless_plus_compat[] __initdata = { + "seagate,wireless-plus", + NULL, +}; + +DT_MACHINE_START(SEAGATE_WIRELESS_PLUS_DT, "Seagate Wireless Plus (Flattened Device Tree)") + .reserve = omap_reserve, + .map_io = omap3_map_io, + .init_early = omap3430_init_early, + .init_irq = omap_intc_of_init, + .handle_irq = omap3_intc_handle_irq, + .init_machine = seagate_wireless_plus_init, + .init_late = omap3_init_late, + .init_time = omap3_sync32k_timer_init, + .dt_compat = seagate_wireless_plus_compat, + .restart = omap3xxx_restart, +MACHINE_END + static const char *omap3_boards_compat[] __initdata = { "ti,omap3", NULL, diff --git a/arch/arm/mach-omap2/sdram-hynix-h8kds0un0mer-4em.h b/arch/arm/mach-omap2/sdram-hynix-h8kds0un0mer-4em.h new file mode 100644 index 0000000..82b58131 --- /dev/null +++ b/arch/arm/mach-omap2/sdram-hynix-h8kds0un0mer-4em.h @@ -0,0 +1,30 @@ +/* + * SDRC register values for the Hynix H8KDS0UN0MER-4EM + * + * Copyright (C) 2010 Texas Instruments, Inc. + * + * 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. + */ + +#ifndef __ARCH_ARM_MACH_OMAP2_SDRAM_HYNIX_H8KDS0UN0MER4EM +#define __ARCH_ARM_MACH_OMAP2_SDRAM_HYNIX_H8KDS0UN0MER4EM + +#include "sdrc.h" + +/* Hynix H8KDS0UN0MER-4EM */ +static struct omap_sdrc_params h8kds0un0mer4em_sdrc_params[] = { + [0] = { + .rate = 200000000, + .actim_ctrla = 0x92e1c4c6, + .actim_ctrlb = 0x0002111c, + .rfr_ctrl = 0x0004dc01, + .mr = 0x00000032, + }, + [1] = { + .rate = 0 + }, +}; + +#endif