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: 7463581 Return-Path: X-Original-To: patchwork-linux-omap@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 C76DC9F1C3 for ; Thu, 22 Oct 2015 09:22:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 00A6920960 for ; Thu, 22 Oct 2015 09:22:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0ABE02095B for ; Thu, 22 Oct 2015 09:22:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965044AbbJVJTR (ORCPT ); Thu, 22 Oct 2015 05:19:17 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:38153 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965031AbbJVJTO (ORCPT ); Thu, 22 Oct 2015 05:19:14 -0400 Received: by wicll6 with SMTP id ll6so109802026wic.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=WEO22pZJDu1b/LRtRFPR1/Qiv1257P3Pj5C/sgxFD8ryAZMDhyWEoMNxutZ1ZsPaxV PiG40bmRJpgLBcJ6ZbK9gTlOR27BBk9cYYChjw/r/B+j9QDQBYX7kUDfalU1rjkRBOA0 xRz/eqUWzmQ0Xuzxs5xHlHp8FzoVolWodjl+7xUuQ6RtoAHA4rYBcisGLfpHNq1vtpRU r64wR+L6IPyXrCSAClxJdofvgkzRerzaRkIKzuH184lIt/VBfatWQnLHlrPjc60LUNMG ZN7ZEg+gyWCCP87HUBZSFjDFvg9DWOc8bJENh9bYsuTMleL3qsWBI9OpHR4lCB8gBWIR x/6A== X-Gm-Message-State: ALoCoQl+5Ob0FzvJXakPtBOKL2T16xGc8uUc375GjWoaXWQenN5O/sdQ17VfcDtod14XvxAK5cBE 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 Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Brian Hutchinson , fisaksen@baylibre.com 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 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 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,