Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4522896imm; Wed, 30 May 2018 07:12:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJxfDHt2gnO9pJxXnOSs2T3jiFk+HuRZwxOS3ZO56HavufwvXb6zW9rdyN8F5+kaL7q1582 X-Received: by 2002:a63:7209:: with SMTP id n9-v6mr2424506pgc.146.1527689554193; Wed, 30 May 2018 07:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527689554; cv=none; d=google.com; s=arc-20160816; b=K3psWuhtYvOqo5FUYM8N1RsOZCPdMKYGZ2lwMv64lDOVhwphUyA6b1dd3qNBjQohU5 zImdfpGJ0guk3XatIehbSTaEoD66Pb5PudWx9PmJ3QpYstbP0HcM3DYryRMUm0s7QJuL iGzS3HdVE92uz7NFLc9RkbuDJ3pcsN4p8cGPj3mpVtPQx5r+NtWvmP4A5nRsBoGUGpC2 tWqzlzLrYjwIPsP1Fqug142TuwcEzP3R6L0JLWeOkl5BBbfYPcBDez942gMCAWlEq9jJ HYvSpTFQx16l3n0GByU+9SzRsf5YEaj8yFDxNAogSCK4rbVmFNAE1lnQAOzyz2ElOumy ZifA== 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=4O6u1C2e1WtoBvQBb9O62aQkfgG5Pu6ApNptC0NaKxs=; b=goreyz3IwINgeHXTmixlNH3rM4KKyUGHgLSK9BGaN45jGydydiCF6QntpmT7GJuT/R StpzwQY0v2EEC2giZHy7/4vXlFZJr1Mh5Qc1X5yxtM4Jq6hanYRaTAHTDAhWK2bo8P2O wNxt3P5vI0izNlLUa730jXkbQWFH9iV7l46R+3hQyK91r/YI6dUlLUSUwzbR+9aoXnrl Ry8L5dePwkW/rtI2oIgsbPZm4PSVrHTJ1uJsQTkYgnx/EpNHbMnUeDcBJVgnBLDyshhn KVf/sgBFDWWCEtFhTmRn6Llyr0v/jwexWcBlTA0nAXzthqOJBoyE0/kNbfc/t96CqmRw H/lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Nr1J2YDL; 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 a13-v6si35702968pfd.338.2018.05.30.07.12.19; Wed, 30 May 2018 07:12:34 -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=Nr1J2YDL; 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 S1753422AbeE3OKh (ORCPT + 99 others); Wed, 30 May 2018 10:10:37 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:20554 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752667AbeE3OKa (ORCPT ); Wed, 30 May 2018 10:10:30 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w4UEA5E7014829; Wed, 30 May 2018 09:10:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1527689406; bh=4O6u1C2e1WtoBvQBb9O62aQkfgG5Pu6ApNptC0NaKxs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Nr1J2YDLvMvnqtOt10Iz07+yK1ay3ecnIbyaU/w+70ipLlI3uw6PZja4Ewfi4pJ0/ ojEP8E9I9vNxWVdOnq5+HgnmRpRwvvnoa24q0GVzsImzeDYcPMfy2UeL3azk6yBRnu Z1ovJC8Wnl6fIL5O09/2X+0gZ+08/zQoqm7taB5Q= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4UEA5xv018411; Wed, 30 May 2018 09:10:05 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 30 May 2018 09:10:05 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 30 May 2018 09:10:05 -0500 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4UE9wvK001195; Wed, 30 May 2018 09:10:02 -0500 From: Faiz Abbas To: , , , , CC: , , , , , Subject: [PATCH v2 1/6] ARM: dra762: hwmod: Add MCAN support Date: Wed, 30 May 2018 19:41:28 +0530 Message-ID: <20180530141133.3711-2-faiz_abbas@ti.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180530141133.3711-1-faiz_abbas@ti.com> References: <20180530141133.3711-1-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 62352d1e6361..a2cd7f865a60 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c @@ -1355,6 +1355,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.17.0