Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1097137rwb; Fri, 28 Jul 2023 04:55:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlE6sTKynfFeZ0D/fBiJhdXmuvzKAJLPpXPVY9D3dBChXs4zBByADEMK0O/x+RZFPt1GU+Q7 X-Received: by 2002:a17:906:13:b0:99b:f4b2:6f15 with SMTP id 19-20020a170906001300b0099bf4b26f15mr377921eja.48.1690545346082; Fri, 28 Jul 2023 04:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690545346; cv=none; d=google.com; s=arc-20160816; b=k1yRjKuHNDQg14VWPSZyStq1ZWvDdfK10xno/cwN7RXjYQihLC6iGT3ablQgo0pMgn 25DbtUuVyZwrHJUAhgd9TX6s5SZwIGvWm6p6SBhK5j5SSwEr/E2yPbXAo3jIjqanqxOf hRQr1vg04ZSeunpx0cXKpSy/4VcQUL7bz8vESBj7X5zH29UqKcUbtx7CuxuutRuYlhCp nbiEx2aqTDuz40zwkiM4K3XP+HWIfevAgKZqtc2UBB/O4B5o0umxBhXwFLCDQZDS+3Jk pav+2FFd1SmUEoA0P/ezi66VpDhboIOTOKKxbdDm+swgIEvx0WtMkwZ1/88tbH0sEBfB gw2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GMUphwJr1PjBcb4acLrrkhXbLoDulRewOKxj4hXxBu0=; fh=WSzKNqLojcVl23JN2OirrokcvFofWNf682DO0OVLZ+0=; b=L6Vd7L3Ex6ukoP+lq2VN391ZaZaDe9UK4jXybSi7sDbcfvv7ngIGqGIcwhJZbWtB6O wG+3MxZcGFmt95fRa6sIXzVfnWS3X3ctOeSda6Y2tE18v01nSGBZnApzWKgVUhyvisRm IXdved9b5jiam+knkRi8TdpuQkwMF12dAH5GvctuBALJKFM9va2Fanhmnk7+wP8riaKY +B4HPkd0jk1PuysvPaAZPxXwm2Ub9nWAzCo4Xlu7Qijn0tTINqYuJ/HxPSIVWY5WlrPd r+t+SAsWhZVZ8h60woHN2uBuQHpjFfprJBSku/wxuskgGo/+3LFllpCDX7kTAmnGWljj w5cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=GdheOqtz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gz21-20020a170906f2d500b00982a5377650si2414545ejb.247.2023.07.28.04.55.21; Fri, 28 Jul 2023 04:55:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=GdheOqtz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235905AbjG1Kbj (ORCPT + 99 others); Fri, 28 Jul 2023 06:31:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235501AbjG1KbP (ORCPT ); Fri, 28 Jul 2023 06:31:15 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93A2E4228 for ; Fri, 28 Jul 2023 03:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1690540176; x=1722076176; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ig30gwYZkr/IoUPy5H3F0pxktm0wBBqBXGc48gOkR1U=; b=GdheOqtzgKkEYZhpqc/icjpwp/6OTCD+qAEOQWsH5OaMLK5BYHLJ7Rcj LZYpmkZGew4fDVmOmjU37SEAfmsfytri+kVy5XzSTcoI0QRY31C+iroiR 1WwrrX1Kcsk9q/4ju8BuDxI81qJ2+mDtKT27Y4yoQBBpLoKZRC9Hvr4vt tfSVEiwOgKp6aB2zHwpi7f1KRdI4K5SgqA9THMCxYn5NUzsqLUisqLUHB BRfalY4jeMVBEwsnZJGCRSr9Ukzb1aXJc2D9gkl9Lb/Mr9roGxQUxAXbP AFcX6yoQGBNXwhru/8Qb7zip1ZrSK+hrMk0lw7BOdYdHGsAdI6BGj4mTj w==; X-IronPort-AV: E=Sophos;i="6.01,237,1684825200"; d="scan'208";a="226623395" 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/AES256-SHA256; 28 Jul 2023 03:29:06 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 28 Jul 2023 03:29:04 -0700 Received: from che-lt-i67070.amer.actel.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Fri, 28 Jul 2023 03:29:01 -0700 From: Varshini Rajendran To: , , , , , CC: Subject: [PATCH v3 35/50] ARM: at91: pm: add sam9x7 SoC init config Date: Fri, 28 Jul 2023 15:58:58 +0530 Message-ID: <20230728102858.267082-1-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- 2.25.1