From patchwork Wed Jul 3 10:27:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varshini Rajendran X-Patchwork-Id: 13721751 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 B1462C30653 for ; Wed, 3 Jul 2024 10:28:00 +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=W4Za7BGXO9UtLFNqHkYixGeZSx9lfhkpLlkSuVEQ6Nk=; b=IFPMZqu+q22DScnDXtFkNoQ2A8 l/g2JdSFClKWEYJFFr1eqMBWACOLbE9qQSgt7ApOBRj5HpS80tCq9VD5f6jNXdVbpj0PFUYhVL4j4 x0/Wy5TYsm/NK0hFY8o1Y6ugsTRfHfP0Y7/XG6Oau5sOASiAEoD1LwKWsDlYk1EWdcAfAOn4UfvvJ oA5VXuPJ2HHu3dJY4fWau17dvyfw3/UKUd+7/XR9kQucwoduAYZxrxFFb9lSQ1GHWNtE+uCrR3INb b45PO9DI0rt/VbTvbqKTElBP3SRXkyvVVQqX8tNuGIdF267ceVS5/lg2pFB5kj2DP4tIDCu12YgI6 Gqr0j6Gw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOxDJ-00000009kx9-1ETQ; Wed, 03 Jul 2024 10:27:49 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOxCn-00000009kl4-2ruI for linux-arm-kernel@lists.infradead.org; Wed, 03 Jul 2024 10:27:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1720002437; x=1751538437; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Lv0sEaA8F2c8HiyRvT8WYHleiLqbWNB02c+WFOle1GY=; b=tuj5rD3e34J7FROL5UPZMTVsirhkgwZZrvFApZjLGgguGEArkvh4dJAT a8RJ860yAguL/AxddQe1gn2kp5zJsC3Z7dK5LSzMge0oi/9LGgC7gBsXv G3OGxoBUp3rcPJoQR0oE7gELgjLN1yH0yrwdwiEWmMW3yLMvHUFlMvrQ8 8KOdoP2aAOLq8x4JSj5g1FphDRqCB5MK2ucKBqsXNWbaeqlU6A+kNlfCd 00SM26EqeYXkCDAnBG/V/wGVSwVbOdZ89E6f8JUWUpUUVJgYN+HEePpC0 JAASFW12XCG2HDreVHfU/53Bkaf0kBtTswvKHuLIQWif2TB1VAHDSbnw6 A==; X-CSE-ConnectionGUID: O6jm4qbsRBydYsAuvGKY7w== X-CSE-MsgGUID: LzxUdgSRQ8uM9Ewfl3OogQ== X-IronPort-AV: E=Sophos;i="6.09,181,1716274800"; d="scan'208";a="28772336" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 03 Jul 2024 03:27:14 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) 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; Wed, 3 Jul 2024 03:27:08 -0700 Received: from che-lt-i67070.microchip.com (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 3 Jul 2024 03:27:05 -0700 From: Varshini Rajendran To: , , , , , CC: Subject: [PATCH v5 05/27] ARM: at91: pm: add sam9x7 SoC init config Date: Wed, 3 Jul 2024 15:57:02 +0530 Message-ID: <20240703102702.195564-1-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240703102011.193343-1-varshini.rajendran@microchip.com> References: <20240703102011.193343-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-20240703_032717_835318_D7A9668A X-CRM114-Status: GOOD ( 13.39 ) 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 --- 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); + + 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