Received: by 10.213.65.68 with SMTP id h4csp1473347imn; Sun, 8 Apr 2018 04:30:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/E/o0JYyY0iQskadQIqD7bm9HmWiX4TEcFbtlFThZYZrVnP9CXo2VETn4g6ubJTWMgioaM X-Received: by 2002:a17:902:bb0c:: with SMTP id l12-v6mr3677739pls.347.1523187002482; Sun, 08 Apr 2018 04:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523187002; cv=none; d=google.com; s=arc-20160816; b=dKjFlljs08IhVAuc+5OyOINwLJ9V/XMvFgs1BCGICCFiHYtfZoqcf4/Egc3FmHM+FT gwye7taictPY5Zn5QdJ6ggS/opkI7oTEbPa9MTU96293/O0gGEYbhLr06Vz054j7bwTk C26ilWCMlrXkEc76QaCBVb4LKxHTJk6Vj9/V2jPikaErB7OogGKUZo4mpfz12+8EkHJn aXuiKc+co5Lcb7Viz/0qgh2wLfvOX6K3T5KfvtpK65xkeCCdNjgHIMGcrxKoua4kLwTa oQ87SRRm93BnEMaYy5/0Tl16AbEFVDfOLAkJNyVaCHCv0m0BP76khxWgRL0psCixUEtE 5Ucg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=SdUkZhEbZG2+tqDlvmLuvwvtcBjP/t5pfz3RefymB8Q=; b=Fnt6OQAVneCLEvW+OZrv1+cvVWGU93Q6wFAb1FrxD+3XoGiAP82X78CZua6xDV04na 0w3uKRMDK4xXrL3IAUs34mcyxGabidsmBDE5+omMqWKrr/i+6ab+TiCVDvq0UBSDD1Q/ mDOZ0gOQPz93SoN6zG503Wuoj6A7Od8F3qZnuFOQnSPnmHr4NP5LJVrCHpMxBECWKMe+ d0/xL+vL/4i8e6n+JK8SRudDLEztd2KW8Qw3jKZX6H9P0aGMRr0D+j9P1E75TkMorHXl iugfE7QrVqdCn4oLGJn71sx2COPxQFTDvhkyv7SFa65vM+ZEOI5erO+/gCMVRCwD3Wuj XsOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FlLfaJ0A; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2-v6si14962919plm.671.2018.04.08.04.29.23; Sun, 08 Apr 2018 04:30:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FlLfaJ0A; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752799AbeDHJ6H (ORCPT + 99 others); Sun, 8 Apr 2018 05:58:07 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:63082 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751736AbeDHJ6G (ORCPT ); Sun, 8 Apr 2018 05:58:06 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w389vmrY004613; Sun, 8 Apr 2018 04:57:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1523181468; bh=qkiSxSO0bGz959wtYC1FSbfzM+1uQb9JJ2cNWszx7ZY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=FlLfaJ0A79XX1QtxAMVAvTI6MHlmzY36pgOYTPfDxkvlxxiSQX/S70K1pYuM8N1zq xyB1suabqrH2S0Ucy3611k2w13O8hKlqpJqbU9J9+CuqP08RfDXkYIom5p2xdnuWB5 F3niOvfCTmQdg78LhzcqpphdVYDCYeF7YvyEXskI= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w389vmbG006671; Sun, 8 Apr 2018 04:57:48 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Sun, 8 Apr 2018 04:57:48 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Sun, 8 Apr 2018 04:57:48 -0500 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w389vfPl032344; Sun, 8 Apr 2018 04:57:45 -0500 From: Faiz Abbas To: , , CC: , , , , , , , Subject: [PATCH 1/3] ARM: dra762: hwmod: Add MCAN support Date: Sun, 8 Apr 2018 15:29:00 +0530 Message-ID: <1523181542-3770-2-git-send-email-faiz_abbas@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523181542-3770-1-git-send-email-faiz_abbas@ti.com> References: <1523181542-3770-1-git-send-email-faiz_abbas@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lokesh Vutla Add MCAN hwmod data and register it for dra762 silicons. Signed-off-by: Lokesh Vutla Signed-off-by: Faiz Abbas --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c index 62352d1..a2cd7f8 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c @@ -1356,6 +1356,29 @@ static struct omap_hwmod dra7xx_mailbox13_hwmod = { }; /* + * 'mcan' class + * + */ +static struct omap_hwmod_class dra76x_mcan_hwmod_class = { + .name = "mcan", +}; + +/* mcan */ +static struct omap_hwmod dra76x_mcan_hwmod = { + .name = "mcan", + .class = &dra76x_mcan_hwmod_class, + .clkdm_name = "wkupaon_clkdm", + .main_clk = "mcan_clk", + .prcm = { + .omap4 = { + .clkctrl_offs = DRA7XX_CM_WKUPAON_ADC_CLKCTRL_OFFSET, + .context_offs = DRA7XX_RM_WKUPAON_ADC_CONTEXT_OFFSET, + .modulemode = MODULEMODE_SWCTRL, + }, + }, +}; + +/* * 'mcspi' class * */ @@ -3818,6 +3841,14 @@ static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss2 = { .user = OCP_USER_MPU, }; +/* l3_main_1 -> mcan */ +static struct omap_hwmod_ocp_if dra76x_l3_main_1__mcan = { + .master = &dra7xx_l3_main_1_hwmod, + .slave = &dra76x_mcan_hwmod, + .clk = "l3_iclk_div", + .user = OCP_USER_MPU | OCP_USER_SDMA, +}; + static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { &dra7xx_l3_main_1__dmm, &dra7xx_l3_main_2__l3_instr, @@ -3958,6 +3989,7 @@ static struct omap_hwmod_ocp_if *dra7xx_gp_hwmod_ocp_ifs[] __initdata = { /* SoC variant specific hwmod links */ static struct omap_hwmod_ocp_if *dra76x_hwmod_ocp_ifs[] __initdata = { &dra7xx_l4_per3__usb_otg_ss4, + &dra76x_l3_main_1__mcan, NULL, }; -- 2.7.4