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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0019DC30653 for ; Wed, 3 Jul 2024 10:56:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To :Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bn2Cag/x6QwhxcuWMLlARpck1D5imG3lqhwCJXtBb98=; b=TKeX7te45mvEFA6H8SroKsrtHp sKKajLbIHVe1CrMUluYeDW8diAXzbp4bVzG2iiPPG+U+xbCbXL/3F56WjHmOUP0QpDAqcNIDwq4z9 lzFXcbP6hlNyalOqYTj46aZ7/N3Cqys1BzfFRmpIhxgpWuVzyuGOPsfowkqAEHDl/ptyZ2uxUx0MN rLVCuLmosAkblss44dx1TCsrMY7i8+EQ/eYkpHvj0Q2RIPXaEsAMyZ1NchAwQ9DbeqSQtsXR+Wvd4 lZHITf8NGGY1gOOUJgB8xCjHaMTsBQv8YsF1D6hBt40bG0A7J7Fy8uT+1BNN7NaOcdb9KLxF4agbJ CH2ocdiw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOxey-00000009uLa-3plv; Wed, 03 Jul 2024 10:56:24 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOxe7-00000009tpE-0a7C for linux-arm-kernel@lists.infradead.org; Wed, 03 Jul 2024 10:55:32 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 8B645E0002; Wed, 3 Jul 2024 10:55:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720004127; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bn2Cag/x6QwhxcuWMLlARpck1D5imG3lqhwCJXtBb98=; b=UBYGrw1BorDccFxJQqPhIZZgl2ydgiV3scqGR6xvB9f5euzieAsMksDTX7pCdxuY/gARP0 2OWcvS5PIYeIvdDZdErWz3wmn0y4FstyDRsas83EH7Rae8UeGre5lvNQPRchk54ud3osH8 x12cyfmGSPaCgqB7+O4ApEX5I1hdFFuBcMlT7TQUym9P59HISxWvKX/uMJqF9u4WiYy/GB DCVmQZD4RjoYp8kOyUqTdqOJ1oa0BAATQJasvAbWQqIZC81s6SAOoRr7r8+7XPFisc4JVI J1wnLze+kK3WhhC2ucId2rVsUG5am1mFefGL6hn427zaoTCVZlFrFFPMe8x4iQ== Date: Wed, 3 Jul 2024 12:55:27 +0200 From: Alexandre Belloni To: Varshini Rajendran Subject: Re: [PATCH v5 05/27] ARM: at91: pm: add sam9x7 SoC init config Message-ID: <20240703105527c859341b@mail.local> References: <20240703102011.193343-1-varshini.rajendran@microchip.com> <20240703102702.195564-1-varshini.rajendran@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240703102702.195564-1-varshini.rajendran@microchip.com> X-GND-Sasl: alexandre.belloni@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_035531_337681_EAC0D5FB X-CRM114-Status: GOOD ( 18.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, claudiu.beznea@tuxon.dev, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 03/07/2024 15:57:02+0530, Varshini Rajendran wrote: > Add SoC init config for sam9x7 family. > > Signed-off-by: Varshini Rajendran > --- > Changes in v5: > - Removed unnecessary header file. > - Added a space in the return type for clarity. > --- > arch/arm/mach-at91/Makefile | 1 + > arch/arm/mach-at91/sam9x7.c | 33 +++++++++++++++++++++++++++++++++ > 2 files changed, 34 insertions(+) > create mode 100644 arch/arm/mach-at91/sam9x7.c > > diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile > index 794bd12ab0a8..7d8a7bc44e65 100644 > --- a/arch/arm/mach-at91/Makefile > +++ b/arch/arm/mach-at91/Makefile > @@ -7,6 +7,7 @@ > obj-$(CONFIG_SOC_AT91RM9200) += at91rm9200.o > obj-$(CONFIG_SOC_AT91SAM9) += at91sam9.o > obj-$(CONFIG_SOC_SAM9X60) += sam9x60.o > +obj-$(CONFIG_SOC_SAM9X7) += sam9x7.o > obj-$(CONFIG_SOC_SAMA5) += sama5.o sam_secure.o > obj-$(CONFIG_SOC_SAMA7) += sama7.o > obj-$(CONFIG_SOC_SAMV7) += samv7.o > diff --git a/arch/arm/mach-at91/sam9x7.c b/arch/arm/mach-at91/sam9x7.c > new file mode 100644 > index 000000000000..e1ff30b5b09b > --- /dev/null > +++ b/arch/arm/mach-at91/sam9x7.c > @@ -0,0 +1,33 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * Setup code for SAM9X7. > + * > + * Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries > + * > + * Author: Varshini Rajendran > + */ > + > +#include > +#include > + > +#include > + > +#include "generic.h" > + > +static void __init sam9x7_init(void) > +{ > + of_platform_default_populate(NULL, NULL, NULL); Can you check whether this call is actually needed to boot the platform? > + > + sam9x7_pm_init(); > +} > + > +static const char * const sam9x7_dt_board_compat[] __initconst = { > + "microchip,sam9x7", > + NULL > +}; > + > +DT_MACHINE_START(sam9x7_dt, "Microchip SAM9X7") > + /* Maintainer: Microchip */ > + .init_machine = sam9x7_init, > + .dt_compat = sam9x7_dt_board_compat, > +MACHINE_END > -- > 2.25.1 > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com