From patchwork Fri Nov 13 16:30:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 7612811 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 87BEBBF90C for ; Fri, 13 Nov 2015 16:33:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 120A920747 for ; Fri, 13 Nov 2015 16:33:19 +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 41499202D1 for ; Fri, 13 Nov 2015 16:33:18 +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 1ZxHG3-0002UW-QV; Fri, 13 Nov 2015 16:31:27 +0000 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZxHFL-0001ur-33 for linux-arm-kernel@lists.infradead.org; Fri, 13 Nov 2015 16:30:45 +0000 Received: by wmww144 with SMTP id w144so35719832wmw.1 for ; Fri, 13 Nov 2015 08:30:21 -0800 (PST) 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=SXICN5A86LaFtkfWG69c0DcJyt0gizG04wQWF8Yvxia8ehAolsLosQVLvll+q/knFf esN0jxSWd76oCQxUqdNn1BOPJqtr69kAU5LeGmcy7BDL4pIqZRrTCXhg/bzj9VX0d9a3 xWdswOIKibb5fWqvxjuFZFylq1fFF3lmOpPc5Iu5jq6VqTdZ7Qu743w5Hwx6Y/2sJ1/R IesFsMhgU4niR3mGx5ofPRBgC59EBOo12q34noVAaV7Itl2b8ZYkk5caKk9DybsKZL5o czzROu/5nOrCVtuio0F1LXkwMwhsP8ZyL4jxx7AEzer7OYW2f+EpjRbz0oL8gmmxKSKt PZpA== 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=mSOyNRS19eJXdDLdS8eNj9nckayepiWZphFCFeBUhcNcEaM0yfmTj4jIDGFg0lQC9q tITgXLTOQfQ5BJilRZbiLXtmnsk8E3LyfuiMgYQ+v9M4l4Nj0WCMlfwxutOCJugWs/mH 5FkbgnIjqOtnOnjq1yidYI7SfrTUcl1XWEhAemeyWUKTAMQpbQvGlSD6Hz+Dz5FdzJlK Qq4nAuZM1efSzmSarOZXNcUFJoFuhmc1CtudhJhuF74hpqY+x9iqnRvqKctOn/wbQ05h OzaL1EptcvR9eb4Lkmbzd8dSDPl0CmNpxMDZUe//xGAWvhx9ltdBb8X4HHiE76YgW7Jg 0KEg== X-Gm-Message-State: ALoCoQm+AJl9cu1+j87ibHtAg+C+lJy9sm8gS8cxaWohsSe8XjLk9wgyHHrnwA3cQ4+GDfgklwYp X-Received: by 10.194.201.202 with SMTP id kc10mr27383612wjc.84.1447432221872; Fri, 13 Nov 2015 08:30:21 -0800 (PST) Received: from [192.168.1.21] ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id ft4sm20550943wjb.37.2015.11.13.08.30.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Nov 2015 08:30:21 -0800 (PST) From: Neil Armstrong Subject: [PATCH v2 4/4] arm: omap2+: Add hwmod spinbox support for dm816x To: Tony Lindgren , Paul Walmsley X-Enigmail-Draft-Status: N1110 Organization: Baylibre Message-ID: <56461012.8090700@baylibre.com> Date: Fri, 13 Nov 2015 17:30:10 +0100 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-20151113_083043_573021_ADF8F9D7 X-CRM114-Status: GOOD ( 12.98 ) 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.4 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,