Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1303820lqg; Sun, 3 Mar 2024 04:23:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUqhB8/ZXY/A37TyVTxODA1uQxkF8Pp9JZfyjcAP3RSuvZVuPL9nQhdon3gE1TvHbTI06/MBMAH4hrauaYkkEp/cpzvP9sRA4uKHAia7A== X-Google-Smtp-Source: AGHT+IFCqFHH5HN4811i4JP27cgau5xzenuJR4Gs2phrWJfYZp72n4oWTftspAaqeoglfT7Tioqr X-Received: by 2002:a17:902:9a42:b0:1dc:a60f:4bef with SMTP id x2-20020a1709029a4200b001dca60f4befmr6836378plv.63.1709468620921; Sun, 03 Mar 2024 04:23:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709468620; cv=pass; d=google.com; s=arc-20160816; b=0kYLhe7II9DwkFSy5HLvQdad4Fy1GtQl3JV10e/Uc2vPvO/vdJIGnYFvwsBYY4NlxO YX1XcgBq0MWaSZaK8UntAIvMtIDxbZYhaEU/kHclJKO3RS8C1y1bPBTi2OGLLhoV/Lm7 vqGxECllPWYoEz5SrzC868kpQnqdAiZOR9tcKlILLF4SQn1W4j7cCdKtzbmAXeELj0uU ZhJBM3qf9aeILRB/FaIEEhRQMLLROqSKwshI6eW9sZcWYtpFpUZrCCZRz2oSzZFJMzr/ iyfqL0uGLtNXbhB3oqTyjTlN6EK6pVbAR+QYBXssqr/11uszmRzNQOoFlZugVOt8HdZO +z1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=vc2uBM9o+piyOkEM24AeBHy2SzwmaERQqvELLRhZ1Is=; fh=0GuLmCn4jIXEooNTfLWSsoyiLGYrpFsKNYzSZ98SnPE=; b=dI2sWEPvN/7/Ga7YHdiReyi19ylEOTq+XWgWBq5YgGNWJzd0dYO6F/8OMxGR2TYbas OlqCcK40io0xZL+3WxzqkhnFlDIYBnkBMbmWiR79o/KQUvaPe8dhZWI/4HQZ6Y1zmAuF AEsMKK6t8X5zuCAk4nOnjo4TAQkGxJ6axDbB8mVOJgc+PmZFrYXBfnlA7l1cRepUwV8O 1dm0bCyR0NbqzZOOyjnz7IANA3VRuNsfWXaysa/vuLDMVrK89KrFdilrAWA9EvxBOPoR ZWdCOR/Oh9kHQgmCD4hvx8245u2P7RGhoz02cID+KU7nZGx21XCY15rPk72oPSNG+KBY q7Gg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=i9j3UdCw; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-89728-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89728-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lk7-20020a17090b33c700b0029afc258536si7065333pjb.5.2024.03.03.04.23.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 04:23:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89728-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=i9j3UdCw; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-89728-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89728-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C32B9B22DB5 for ; Sun, 3 Mar 2024 12:20:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ECDC6BE4A; Sun, 3 Mar 2024 12:20:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="i9j3UdCw" Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FAE1DDCD for ; Sun, 3 Mar 2024 12:20:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709468451; cv=none; b=ArEbw9b33WMtxki1OMY3H9qDKqAHypBO3qNkqHNzBcy0gMCljs8iT4N65dZooVnKj7dGbz5Cckg6MWFrn+hFjw8iFqFhGDjL0rIL9t1ecJeHSbNkVsGreSk3X7DmP8ziZjitht+id61xUZ7kVO7q3U5W6TdS1GmVnI2eL+BL9bM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709468451; c=relaxed/simple; bh=ie061LENUD0zBdDlewZewpA9Ylp6l3STHYJtKnOroog=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=PCfvoBNiBdnvKZFS+4388M9iXHgh62mX/Q5dH5nbvORLHoHJI9Gm0PmXKowupf5T3jHDafU74Tmfvi/1mUqswmLVSfaYoB7KjyU4JYQA9rM6QVV+slQThWrrcooWzWMVLDclGsgR0xn2BZKyo+j+/knccUN+WRZHyLCNajLi0sg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=i9j3UdCw; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-412dda84216so3290245e9.3 for ; Sun, 03 Mar 2024 04:20:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1709468448; x=1710073248; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vc2uBM9o+piyOkEM24AeBHy2SzwmaERQqvELLRhZ1Is=; b=i9j3UdCwuBfTacPKv+Zml8UipbK+A6r84OYQjEv2PNATL9kO3YjKPOcSvuGhZ7PuBE 6Nbx0yfhXbajx81Q3UGnyyOfhDgYZ7If2QFa1SdzS8GPQOxKeQdPOyyJjK0J+tHB4wtF 63TDmna1QDB4RND6GINQb9mQ8szd8+F7sl6SMYOoLeUjABDwR/04LQUY3uqyChSZk8cn ivcQ5cFWEbksi5liOGfm9n0Oa5agK5lDeO2SnWN4961EMEWj8LQFI17NDXK+aRHJ8jBL dxrfBWMS7mMUIxLZ1Z6mUkPFbrK5ut7xoTuBASp/KOe4/U9fr7MeZPOOLGuX6vAjl84z JsbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709468448; x=1710073248; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vc2uBM9o+piyOkEM24AeBHy2SzwmaERQqvELLRhZ1Is=; b=sQSK99LDCGXjUJRcn0Bop9R35PeFzBFlJ0BOKs9kfWNZ0LnzRvAi3ZJUyveoT0Uvqz G9U1/9ZHC/Gt7TP2tEHLeOVUpRPH8lOLJHUo0bRbhCvwE6chtkfCw+T7+Dcx2nRF9q6O T6iasv1YDkiwtoH4RAa7xKwxg48Bdc66s6zgNFFzk1BEJOXZ396GHgDsqcWQU4ebvtQC 5Q8WxLPOMnsdv6zld436kUinGeYENWxh0XRMo3WMnAD2ZpTDGUVMeVQifCLeJhQT6zve GE+TMIrK7A1fGUvqpaip051rKnDS/yYivzchv1iQAEQ9TUIfwX5++s683kVYQ0a5UBva I8Aw== X-Forwarded-Encrypted: i=1; AJvYcCXPuhYv+igK/QwjVxd3RyCn7D+u1o1rdexnJ5z+rRH8hgNUXGzu0e8zg3dT7BPXWtLomeapYjkEHN3dpjujyrmyJED8QeoYkjRGtPbN X-Gm-Message-State: AOJu0YwqTvOm2sQ3XHAcJG8r6me8C7fCzr4LstDkrwcyGXxM8rSzg/fC 12zuwXfzvMPVVZ9GIHJlZdX08//cUOdbhRApLUxRgB0QUK5tu6kB1FZkMy5We9gUZ15dNv5ftdi 6 X-Received: by 2002:a5d:4ad2:0:b0:33d:8751:2288 with SMTP id y18-20020a5d4ad2000000b0033d87512288mr4684524wrs.13.1709468447558; Sun, 03 Mar 2024 04:20:47 -0800 (PST) Received: from [192.168.50.4] ([82.78.167.38]) by smtp.gmail.com with ESMTPSA id dw2-20020a0560000dc200b0033ddfba0c67sm9477927wrb.41.2024.03.03.04.20.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 03 Mar 2024 04:20:47 -0800 (PST) Message-ID: <824558b5-f83a-40f6-8ae7-bc38051d4058@tuxon.dev> Date: Sun, 3 Mar 2024 14:20:46 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 19/39] ARM: at91: pm: add sam9x7 SoC init config Content-Language: en-US To: Varshini Rajendran , linux@armlinux.org.uk, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240223171342.669133-1-varshini.rajendran@microchip.com> <20240223172713.672537-1-varshini.rajendran@microchip.com> From: claudiu beznea In-Reply-To: <20240223172713.672537-1-varshini.rajendran@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 23.02.2024 19:27, Varshini Rajendran wrote: > Add SoC init config for sam9x7 family. > > Signed-off-by: Varshini Rajendran > --- > arch/arm/mach-at91/Makefile | 1 + > arch/arm/mach-at91/sam9x7.c | 34 ++++++++++++++++++++++++++++++++++ > 2 files changed, 35 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..d998fb327860 > --- /dev/null > +++ b/arch/arm/mach-at91/sam9x7.c > @@ -0,0 +1,34 @@ > +// 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 This one could be removed. > + > +#include "generic.h" > + > +static void __init sam9x7_init(void) > +{ > + of_platform_default_populate(NULL, NULL, NULL); > + > + sam9x7_pm_init(); > +} > + > +static const char *const sam9x7_dt_board_compat[] __initconst = { you can add a space after * for clarity, e.g.: 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