From patchwork Mon Jul 29 07:07:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varshini Rajendran X-Patchwork-Id: 13744437 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 730EAC3DA61 for ; Mon, 29 Jul 2024 07:09:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=TxFj0I3Mx7NgyQRD+ngpD2mjR8LwqjRpd9zQFcW16sE=; b=Oec1NuV5norkOCVTpuMgDLBQHB ATKMVUpLh/EEBre7FMGHXO/D4JDAjX4kXewt8/DABcp4dGCFzKZdQH9M/eZNWpm7cwDRreYizaHbH 54CE9hY/w46iqmaPRGIMVMctDCV3zPL3FmO0RRPbrw64yBUqaU46XpRjaNKCNK7F9m558qFzpFoL8 mjsTrWyWB8HXsFiVXzWeB0WYhADLryoQKstYGQgzsntMrvX5ruXUNdrBpyWBYYv0YZGzBN/qYKqAH VduOlZwLJ9tLM3vufJTUvDS99DSfm9rE3yfzGW9BZq8UPbfZlXvfhoyC9+BXyxzPLAwVWgJEURdcR E6rsc0ig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYKVc-0000000AH1Z-3Irb; Mon, 29 Jul 2024 07:09:28 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYKTY-0000000AGD1-0XCR for linux-arm-kernel@lists.infradead.org; Mon, 29 Jul 2024 07:07:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1722236839; x=1753772839; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cNR7aeg65TsGA3e44kaxGzl/Q7whcBFLFl/bGD4/iqc=; b=UN2gD39aM0odvDo6ynNxC+vMRTshEotUnL3G0sxEMri4R6lQXeoZMvLo E50mivg/weSNIU3wDxjkq91zUUacg1pMiISIQkxmIoVk9Mhg+ULU166ew IC2nPwAw2pmlGH809MgX2WrbamyD009ogTh0ftl7etjNm1rcbIBgu6ydN 2G+g4tZZig/tSzZ9P+sOxwniXSQfc34d5tzjSPiaLQbt/7Do2nxz6wEVR 7fXyNiVLkdmA4vzOZrcu3e2rNbK/sQlwOSdqbk/uiXACB0CJmOMkt5x1W CAoTzLfCnaQfInKrIl5t1OioqUf2fMYrOcXtoJONr0oT3Y16f9wygLhUB g==; X-CSE-ConnectionGUID: mu7Bu/86R6+7o/RTnFghuQ== X-CSE-MsgGUID: /kT5rc6tT/CPxgB0IH+RkQ== X-IronPort-AV: E=Sophos;i="6.09,245,1716274800"; d="scan'208";a="32596830" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 29 Jul 2024 00:07:19 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) 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; Mon, 29 Jul 2024 00:07:10 -0700 Received: from che-lt-i67070.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 29 Jul 2024 00:07:08 -0700 From: Varshini Rajendran To: , , , , , CC: Subject: [PATCH v6 07/27] ARM: at91: pm: add sam9x7 SoC init config Date: Mon, 29 Jul 2024 12:37:05 +0530 Message-ID: <20240729070705.1990557-1-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240729065603.1986074-1-varshini.rajendran@microchip.com> References: <20240729065603.1986074-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-20240729_000720_263447_E27EF315 X-CRM114-Status: GOOD ( 12.70 ) 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 Reviewed-by: Claudiu Beznea --- Changes in v6: - Updated Reviewed-by tag. --- 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); + + 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