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: 7612731 Return-Path: X-Original-To: patchwork-linux-omap@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 520E7BF90C for ; Fri, 13 Nov 2015 16:30:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6E8292038F for ; Fri, 13 Nov 2015 16:30:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 65503202D1 for ; Fri, 13 Nov 2015 16:30:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933161AbbKMQa1 (ORCPT ); Fri, 13 Nov 2015 11:30:27 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:34107 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933122AbbKMQaW (ORCPT ); Fri, 13 Nov 2015 11:30:22 -0500 Received: by wmvv187 with SMTP id v187so89613910wmv.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=CTiq06Zp0TXE8kyb87hp5eMJ3vrvt1Z6g0AfJDc+Hh8w0OI0G2qviDTzmowjZWJmUe xKw60gvPlHoMOo/VJyBB8IoIIZFAW/csyyAgDJliGnzF2cKGY1ha+9lmbbuNW0WW0rfz rmxTuDeI2kBhBmMOzlVRYyJJCPFti4iBxhMZFHg0Jm4UloDVnmlnBATyfXQt74V2jyJu 2BQYsMoR8hEaoTNdiiN5zW9TRL0F/AQOx6+hDoT4+pRFsKvdgfYf+y3H0YNT3xbsleCY xE1DHq66tQkNgWUOCGn2nI6YrbP/V2gclyOXZ+Y89d86jaUpvcDlW2iwhTulUOeagGIk JbbA== X-Gm-Message-State: ALoCoQkM7MMCsWf5jJbG5EBkPpJipCmmwuu8L4Fm0vX/3Wgb4oqPhLINcBvkFLn37m1xd+h9OwF6 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 Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Brian Hutchinson , fisaksen@baylibre.com 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 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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,