Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12974278rwd; Fri, 23 Jun 2023 13:35:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ55bdODAdv7SZxldtrB5CckOGv5QaK4TdG3KBVpok8DaSG9MnHE7iRtk0J25Bl2jDvZtYhP X-Received: by 2002:a05:6a20:4418:b0:125:213e:8b68 with SMTP id ce24-20020a056a20441800b00125213e8b68mr7842986pzb.0.1687552547095; Fri, 23 Jun 2023 13:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687552547; cv=none; d=google.com; s=arc-20160816; b=QVHDRfeQ9hjwAKm01VvdP9RdikRfi5Q0LmJu39ed92Hb13XyQ3SBq55awvDLZCDElu Fm0w4gb3Lzdt/E8qgJazzGNYEHdO0rgO8qxBq+kMhT6zRJ2k6uIBKXafAvF/XO83Gmle qEXB+GXN3qBWlnZET+YqcosDnX7PFXe8d5ybJttEBxtD4N5iuuI8vgyBjyUj+exrE1gj xY4ucO1xt7lAnS2jgTRrgk7Sb/HwDFsv4KGFYfz08ig5cayGV+RgX/Ft5W6ntxavygqp 9B+vNaKZc2Oqw+buFFadfVqosRBk9HbQra8WT3oLCkehmgIuD0FcCf5dHWkMMJ5ZBvwR D1lw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GMUphwJr1PjBcb4acLrrkhXbLoDulRewOKxj4hXxBu0=; b=qxSIGTe5h3xRV1Pv0ykC5OuQ5GBHV2Oktd90YSnTHuBmydT6lzoFdM0lGAPn4GsfB8 sBmkf8/k64V2P+VAzxGoxx63EM4nNZwbbiBFwccS6RQM9vY05DK8lp0qWrYDzyCBG9cE sj+SA/46SUkmzeD9sc6vGeeur1XEoqS5NpQgiQy793reb9qvh5zvV8psGtVFjCe5xS2P JJFU3uSND6td+UNO3yKwAFsx/yGbk4jp/Y4LzzO56+7DwqQrQRLM/bJwYLrVhl3v8blc EnLICFyM0y62IDZzeaUiOtC4BV8sl27w7lRnKuJZX0WfsSAxuKXQlmV7U/OYVQUSvFP7 SLqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=BQaXMNQR; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 y29-20020aa79afd000000b0066885c2a4besi725586pfp.65.2023.06.23.13.35.34; Fri, 23 Jun 2023 13:35:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=BQaXMNQR; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S232198AbjFWUfQ (ORCPT + 99 others); Fri, 23 Jun 2023 16:35:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232085AbjFWUfA (ORCPT ); Fri, 23 Jun 2023 16:35:00 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF7152940; Fri, 23 Jun 2023 13:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1687552470; x=1719088470; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ig30gwYZkr/IoUPy5H3F0pxktm0wBBqBXGc48gOkR1U=; b=BQaXMNQRHtDuvALxOxM53ZRg3EWgvGK1z8rYW+8XbXCuEhR+6V2Egu+9 55RJ4R8pOYIqMHzSBpRkbNGYV2ht3Zlc03pPCxpEISNnLaJysTE4OFAba 043TgJxZeimdHi+85sid/bVZyuYCAEFX5ws0q+tK1UH1Bg9ygcqIMDnZb BoU1EM0FOyhEjTgi+pd1TVyBIfM6Qh9fFtM7BSpssK6E8/c0vZ7WbMsLR Gv7SLs7pJs6x7xbmrt9daE2zbBO7MVNTv4qo0raYCuAPU2HVLBPoyFRze 9tyO7Kd7mv1MqfOJT0asy+RfVrwBczc33XcpUfCD1izzzkYx08oIlcrMO Q==; X-IronPort-AV: E=Sophos;i="6.01,153,1684825200"; d="scan'208";a="217418402" 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/AES256-SHA256; 23 Jun 2023 13:34:28 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 23 Jun 2023 13:34:27 -0700 Received: from che-lt-i67070.amer.actel.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Fri, 23 Jun 2023 13:33:58 -0700 From: Varshini Rajendran To: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH v2 06/45] ARM: at91: pm: add sam9x7 SoC init config Date: Sat, 24 Jun 2023 02:00:17 +0530 Message-ID: <20230623203056.689705-7-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230623203056.689705-1-varshini.rajendran@microchip.com> References: <20230623203056.689705-1-varshini.rajendran@microchip.com> 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, 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-crypto@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