From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2AFDCEB64DD for ; Thu, 13 Jul 2023 12:14:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 421D586C1C; Thu, 13 Jul 2023 14:14:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="fKwRj9BK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F038086C09; Thu, 13 Jul 2023 13:38:33 +0200 (CEST) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D056586C17 for ; Thu, 13 Jul 2023 13:38:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=r-gunasekaran@ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36DBcK6U128321; Thu, 13 Jul 2023 06:38:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1689248300; bh=DQF9QqgXT8JN+NUIPN36MuMW5gon8JJiuCodQmCQqj4=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=fKwRj9BKZOBMFz7X/OVwqbOEVEV1E/zCEJQ5BfaNwoBA71wj4LyhxFS9oIynk4gqh XrakI6xZkY2Tb07USS5vaMa7Zgd0Sx44TeUoZEiMyqeRENweKKhwfj3Ub4py1+ccaA DAIREu1jE98hT97RFruEME/SxnNJgdr4cIpPdDtc= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36DBcKFF012800 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 13 Jul 2023 06:38:20 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 13 Jul 2023 06:38:20 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 13 Jul 2023 06:38:20 -0500 Received: from [172.24.227.83] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36DBcGrX006178; Thu, 13 Jul 2023 06:38:17 -0500 Message-ID: Date: Thu, 13 Jul 2023 17:08:16 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [RFC PATCH 2/4] arm: mach-k3: am62: Add timer0 id to the dev list Content-Language: en-US To: Nishanth Menon , , Tom Rini CC: Wadim Egorov , Francesco Dolcini , Sjoerd Simons , Neha Malcom Francis , Bryan Brattlof , Vignesh Raghavendra , Nitin Yadav , Mattijs Korpershoek References: <20230713072019.3153871-1-nm@ti.com> <20230713072019.3153871-3-nm@ti.com> From: Ravi Gunasekaran In-Reply-To: <20230713072019.3153871-3-nm@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Mailman-Approved-At: Thu, 13 Jul 2023 14:14:34 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 7/13/23 12:50 PM, Nishanth Menon wrote: > From: Sjoerd Simons > > Timer0 is used by u-boot as the tick timer; Add it to the soc devices > list so it can be enabled via the k3 power controller. > > Signed-off-by: Sjoerd Simons > Reviewed-by: Tom Rini > Tested-by: Ravi Gunasekaran > Tested-by: Mattijs Korpershoek > Cc: Francesco Dolcini > Cc: Wadim Egorov > [nm@ti.com: Fixup num_devices] > Signed-off-by: Nishanth Menon > --- > Changes since Sjoerd's revision: > I fixed up the num_devs to be 22. > > V1: https://lore.kernel.org/r/20230406185542.1179073-3-sjoerd@collabora.com > arch/arm/mach-k3/am62x/dev-data.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/mach-k3/am62x/dev-data.c b/arch/arm/mach-k3/am62x/dev-data.c > index 616d0650b9c0..c747769cf05c 100644 > --- a/arch/arm/mach-k3/am62x/dev-data.c > +++ b/arch/arm/mach-k3/am62x/dev-data.c > @@ -58,6 +58,7 @@ static struct ti_dev soc_dev_list[] = { > PSC_DEV(161, &soc_lpsc_list[8]), > PSC_DEV(162, &soc_lpsc_list[9]), > PSC_DEV(75, &soc_lpsc_list[10]), > + PSC_DEV(36, &soc_lpsc_list[11]), > PSC_DEV(102, &soc_lpsc_list[11]), > PSC_DEV(146, &soc_lpsc_list[11]), > PSC_DEV(13, &soc_lpsc_list[12]), > @@ -74,5 +75,5 @@ const struct ti_k3_pd_platdata am62x_pd_platdata = { > .num_psc = 2, > .num_pd = 5, > .num_lpsc = 16, > - .num_devs = 21, > + .num_devs = 22, How about using ARRAY_SIZE()? > }; -- Regards, Ravi