From patchwork Thu Oct 22 09:18:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 7463551 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C10659F1C3 for ; Thu, 22 Oct 2015 09:21:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EA21A2095B for ; Thu, 22 Oct 2015 09:21:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 217CA20956 for ; Thu, 22 Oct 2015 09:21:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZpC2w-0004uo-Gy; Thu, 22 Oct 2015 09:20:30 +0000 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZpC23-0003CX-O5 for linux-arm-kernel@lists.infradead.org; Thu, 22 Oct 2015 09:19:37 +0000 Received: by wicfx6 with SMTP id fx6so126461487wic.1 for ; Thu, 22 Oct 2015 02:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre_com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:organization:message-id:date:user-agent :mime-version:content-type:content-transfer-encoding; bh=/C0HAvNQzCCACwcoqC/mnSxLr0jDclpJjWhe6GTTzZ0=; b=MLpP/aTJDGn2m6eNL/uvLNpFsqJolQAEjFuW46QphPa4D+ArxwK8GiQiJA1kyUX9qQ 4i1VweKpa7sA9fRax95tAIveJle7/jPxZV2QDP1ytcaIKIfhRAGDC/HjE0iS7RK59mcL P1T8PqK5vu5akRt0G07NMrvKLcDyJcH18qDUv4QH/yCE6/LksmaWjIk+9AtcrsE6WnN9 fAmnVewpPFX51JVXah1KHDHrwy+bTcGyzsqSfl0y/Sr+9if6J3WC5jqiaVllHG8/4c1v MC8y4WVnhSw+wfHh9pcgE6uxmDNY98x2g8GtrwKksd+5G9BC/2T+WMmukjd8Iv5b8Ekh IlAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:cc:organization:message-id:date :user-agent:mime-version:content-type:content-transfer-encoding; bh=/C0HAvNQzCCACwcoqC/mnSxLr0jDclpJjWhe6GTTzZ0=; b=M4N0b+WpuosCuun4J4JzHRqvX6KZYkZqS8ImxwrM6EofHB63icczUsyQl57Df2QgCL V6QW2xtCkpf7U1Vrawl35TJrAFxrJV/um2xzRWokE60BJtEBhAKOQ4oO7KdOoO0WaJoa skjm8SZ+hDXycsUFOpnhkBqPSBOWzbqp2ufsZez82qCWsZ09Xv/WRtZWY011E26rTyEk UMOfMUq0hTosVVxrkLYKATpbe4KRg6phHSVXiIKztOTHo/i7K7j4fGbXUgLNgzYduzC1 4GyHJl2VjG8RaFT6Ke/v26O+s5uXL7+VN7NU1fJh7UexpCLDgSwUmNYU5U/otSpofWO3 NEfg== X-Gm-Message-State: ALoCoQmwBQs/8pAmYu5jNHgWazYm9Al4E49Aqhezz77HTMehS6HjYkS05JGnCiOK42fChFdWyf+0 X-Received: by 10.180.231.42 with SMTP id td10mr21193771wic.19.1445505553197; Thu, 22 Oct 2015 02:19:13 -0700 (PDT) Received: from [192.168.2.52] (cag06-6-78-235-100-105.fbx.proxad.net. [78.235.100.105]) by smtp.gmail.com with ESMTPSA id fp4sm10797110wib.24.2015.10.22.02.19.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Oct 2015 02:19:12 -0700 (PDT) From: Neil Armstrong Subject: [PATCH 4/4] arm: omap2+: Add hwmod spinbox support for dm816x To: Tony Lindgren , Paul Walmsley Organization: Baylibre Message-ID: <5628AA03.8080802@baylibre.com> Date: Thu, 22 Oct 2015 11:18:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151022_021936_154705_02B444B0 X-CRM114-Status: GOOD ( 13.07 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fisaksen@baylibre.com, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Brian Hutchinson Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add dm81xx hwmod data entries for dm816x spinbox support. Cc: Brian Hutchinson Signed-off-by: Neil Armstrong --- arch/arm/mach-omap2/omap_hwmod_81xx_data.c | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/mach-omap2/omap_hwmod_81xx_data.c b/arch/arm/mach-omap2/omap_hwmod_81xx_data.c index 6256052..275b16c 100644 --- a/arch/arm/mach-omap2/omap_hwmod_81xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_81xx_data.c @@ -1036,6 +1036,40 @@ static struct omap_hwmod_ocp_if dm81xx_l4_ls__mailbox = { .user = OCP_USER_MPU, }; +static struct omap_hwmod_class_sysconfig dm81xx_spinbox_sysc = { + .rev_offs = 0x000, + .sysc_offs = 0x010, + .syss_offs = 0x014, + .sysc_flags = SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | + SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE, + .idlemodes = SIDLE_FORCE | SIDLE_NO | SIDLE_SMART, + .sysc_fields = &omap_hwmod_sysc_type1, +}; + +static struct omap_hwmod_class dm81xx_spinbox_hwmod_class = { + .name = "spinbox", + .sysc = &dm81xx_spinbox_sysc, +}; + +static struct omap_hwmod dm81xx_spinbox_hwmod = { + .name = "spinbox", + .clkdm_name = "alwon_l3s_clkdm", + .class = &dm81xx_spinbox_hwmod_class, + .main_clk = "sysclk6_ck", + .prcm = { + .omap4 = { + .clkctrl_offs = DM81XX_CM_ALWON_SPINBOX_CLKCTRL, + .modulemode = MODULEMODE_SWCTRL, + }, + }, +}; + +static struct omap_hwmod_ocp_if dm81xx_l4_ls__spinbox = { + .master = &dm81xx_l4_ls_hwmod, + .slave = &dm81xx_spinbox_hwmod, + .user = OCP_USER_MPU, +}; + static struct omap_hwmod_class dm81xx_tpcc_hwmod_class = { .name = "tpcc", }; @@ -1298,6 +1332,7 @@ static struct omap_hwmod_ocp_if *dm816x_hwmod_ocp_ifs[] __initdata = { &dm816x_l4_ls__timer7, &dm81xx_l4_ls__mcspi1, &dm81xx_l4_ls__mailbox, + &dm81xx_l4_ls__spinbox, &dm81xx_l4_hs__emac0, &dm81xx_emac0__mdio, &dm816x_l4_hs__emac1,