From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750767AbcEZEAo (ORCPT ); Thu, 26 May 2016 00:00:44 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:38343 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750696AbcEZEAn (ORCPT ); Thu, 26 May 2016 00:00:43 -0400 Subject: Re: [PATCH 1/2] arm: dra7: Add hwmod entry for i2c6 To: Ravikumar Kattekola , , , , , , , , , , , , References: <20160525125341.10044-1-rk@ti.com> <20160525125341.10044-2-rk@ti.com> From: Lokesh Vutla Message-ID: <574673AC.2030209@ti.com> Date: Thu, 26 May 2016 09:25:24 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <20160525125341.10044-2-rk@ti.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 25 May 2016 06:23 PM, Ravikumar Kattekola wrote: > dra72x device has i2c6 controller. > Adding hwmod definition for the same. > > Reference DRA72x TRM [ SPRUHP2Q ] > > Signed-off-by: Ravikumar Kattekola > --- > arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > index d0e7e525..b84c0f7 100644 > --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > @@ -1127,6 +1127,20 @@ static struct omap_hwmod dra7xx_i2c5_hwmod = { > .dev_attr = &i2c_dev_attr, > }; > > +/* i2c6 */ > +static struct omap_hwmod dra7xx_i2c6_hwmod = { > + .name = "i2c6", > + .class = &dra7xx_i2c_hwmod_class, > + .clkdm_name = "l4per2_clkdm", > + .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT, > + .main_clk = "func_96m_fclk", > + .prcm = { > + .omap4 = { > + }, > + }, > + .dev_attr = &i2c_dev_attr, > +}; > + > /* > * 'mailbox' class > * > @@ -3186,6 +3200,14 @@ static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5 = { > .user = OCP_USER_MPU | OCP_USER_SDMA, > }; > > +/* l4_per2 -> i2c6 */ > +static struct omap_hwmod_ocp_if dra7xx_l4_per2__i2c6 = { > + .master = &dra7xx_l4_per2_hwmod, > + .slave = &dra7xx_i2c6_hwmod, > + .clk = "l3_iclk_div", > + .user = OCP_USER_MPU | OCP_USER_SDMA, > +}; > + > /* l4_cfg -> mailbox1 */ > static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mailbox1 = { > .master = &dra7xx_l4_cfg_hwmod, > @@ -3857,6 +3879,7 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { > &dra7xx_l4_per1__i2c3, > &dra7xx_l4_per1__i2c4, > &dra7xx_l4_per1__i2c5, > + &dra7xx_l4_per2__i2c6, If it is available only on dra72x, register the hwmod under dra72x_hwmod_ocp_ifs. Also in $subject use dra72x to make things clear. Thanks and regards, Lokesh > &dra7xx_l4_cfg__mailbox1, > &dra7xx_l4_per3__mailbox2, > &dra7xx_l4_per3__mailbox3, >