From patchwork Fri Feb 23 17:27:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varshini Rajendran X-Patchwork-Id: 13569692 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 7C68EC5478C for ; Fri, 23 Feb 2024 17:31:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GE2DfPjUsTPiCfw8EllCqKL0es/VZs+yzhgP7RJIhuY=; b=zDli66gBMUSGSZ s7Q0+iunS1pSQIKFN+sK6T3hZhcBNTlx9qV2FctDXU6AbiW+ceV0y0CYyCxy6NfLjoKPMHLIMhaKd D36QC/AEmfQU4U2W4soJwF7NA3Y3Ein8MgFR2Rq77uiOVRxnkH7swa10jaUFewP/lL4fONo846vb1 wOYwr77Bp6+FYt7DW6a++GZhczBIdnYyn7DdzVn/UNyPt9m/JPvgVUG0hUGxiwB+Z01gauDIRatVR G+bF9o+iq8N04ziRtaWdk3qLBFKKd1OEsTvn2m2FhOHLdQxQM6XdzfayvxOObISumP7hzhwo7PH2V Wx9PnzLRY0ngKMJTAE1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdZOL-0000000AVsf-2gHX; Fri, 23 Feb 2024 17:31:21 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdZL4-0000000ATxP-1DGu for linux-arm-kernel@bombadil.infradead.org; Fri, 23 Feb 2024 17:28:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=GMUphwJr1PjBcb4acLrrkhXbLoDulRewOKxj4hXxBu0=; b=HdX7yg3M7vtjpwoR0FhetZdKUI m7TDbFxMV7lMLAJ5iYTfcESLY126mP5+rZZRjO5DRwegpmlQYjeUnOoT14mf4IVfrXTISGogeBlw+ mZcPG+R0CpxDeINwJLrheM63ukf0bIvq4hqrPmM4ToBt/ODqlNtPfcmC4ZrfHVVfFcnnFMany4Nwb V3FG8Ce8liDj1ntIVzqBLnK4NLgrV+3d+utOcxLDOoetvv1QWfeKkLW9oxvkIC6z9y6VDm5xpQ1Ee cOHC/T5Pu/4jvgUQKK51yIWjtBuZm2nOCcv4nRlz8VlUh/wyLFGLbZdvbnjnHOem8UPjxSz0a6ZkM h3KyOVXA==; Received: from esa.microchip.iphmx.com ([68.232.153.233]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdZKz-000000002Bg-49Us for linux-arm-kernel@lists.infradead.org; Fri, 23 Feb 2024 17:27:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1708709276; x=1740245276; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ig30gwYZkr/IoUPy5H3F0pxktm0wBBqBXGc48gOkR1U=; b=sOmT2NNj06PAorSAMi02Zyb/h9HcwkCJgvpRe0ZlOR7IlVPvucWp1LQK g9hKq5vVgwrVtSxzJXoZQJQorLrBxcZFk67C10c1xvUyjzYm+2s1G0ql5 a7TO3bKAuvh3Kh2yOS2OCpOHi30OVwHl/r0MGjfKdM68HE+Rp+W9MRXTx DdWq5chqH6vpymwJBx/90fMs4S5Sh7C2n36+N6gaxO0FyuEwpL0JNrilf iu+1U8z7mjUhmMvwLdgfwuH34y43U+QJAjr+Mkgq+3/3rbkblo/9KDnX3 oIEt4XQ9itTj+2hREuONuvT8n8kUyohb8Tv3wVqSw2vGTKzKJHkrDO/Kd w==; X-CSE-ConnectionGUID: VJwSy7CGT9OoHBfoc7EWkg== X-CSE-MsgGUID: dncu8mqSRtmSlxV9oczyJw== X-IronPort-AV: E=Sophos;i="6.06,180,1705388400"; d="scan'208";a="247481500" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 23 Feb 2024 10:27:54 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 23 Feb 2024 10:27:21 -0700 Received: from che-lt-i67070.microchip.com (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 23 Feb 2024 10:27:19 -0700 From: Varshini Rajendran To: , , , , , CC: Subject: [PATCH v4 19/39] ARM: at91: pm: add sam9x7 SoC init config Date: Fri, 23 Feb 2024 22:57:13 +0530 Message-ID: <20240223172713.672537-1-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240223171342.669133-1-varshini.rajendran@microchip.com> References: <20240223171342.669133-1-varshini.rajendran@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240223_172755_487365_CE1EDA95 X-CRM114-Status: GOOD ( 12.10 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 + +#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 = { + "microchip,sam9x7", + NULL +}; + +DT_MACHINE_START(sam9x7_dt, "Microchip SAM9X7") + /* Maintainer: Microchip */ + .init_machine = sam9x7_init, + .dt_compat = sam9x7_dt_board_compat, +MACHINE_END