Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp990837rbd; Fri, 23 Feb 2024 09:33:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVyiiN0RdCoQIA9wK89LcYQbOOxtG/8yncEac5Nyw00cCak1wqi8ppsJALKx9MEnVwxSgDtUnqtZ++yjVK/WPrSCHf2qTX/IX3BDYUBHg== X-Google-Smtp-Source: AGHT+IEQnZn6aGq2CoYtQnT9nYLhiUgEeLYrgFuIZjy735EUv/Y1PFBGLJSVwwx3eW/+kitkBPLj X-Received: by 2002:a05:6a21:3a48:b0:1a0:e4d9:dbc2 with SMTP id zu8-20020a056a213a4800b001a0e4d9dbc2mr463977pzb.9.1708709611088; Fri, 23 Feb 2024 09:33:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708709611; cv=pass; d=google.com; s=arc-20160816; b=K+xqoG+ve2JPyqq4BNqgd4Ofh7pwyJOTVvaKBZSmMfTRDDyWwML0jnwEjJ+LfmksPr t7EfugDJG1zs7n7uuYmoAGQaxCP6XL+iTXXt29t+ySIyrei7jOB0DWOVpj1INxHirQ7Q 648sscaUg0kEM/e0G37IDF0crblTAb+4oz/YKQf4W1wWHwT9fZBixbZXgkLTeRF3zkKb Wbr6ppi+CBf81Ea2GWyarCUdpLM0NQ0p62+BMAc4DIbvRISA3Sw3jlw75CPN+dCDRMVW lOKWurqjHVHrnEGS4y/isAH8UICCGKVjGolpKhggv9c43FFZiElWHOQDgih1fcEUV9yW EqkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=GMUphwJr1PjBcb4acLrrkhXbLoDulRewOKxj4hXxBu0=; fh=zh6E5ZTCJOdOoU4l9vLjM+qWK/+xrLsspfN6mr1FSGY=; b=Mp1wlgUf63t9wBO2BejBCkYeI716zar6mesPN3H27hvQAAHc1qBxcLdJlNfchGFzlz E1ICGyHCJUTFNevZYUm37zbPXSl8GhMWNCY+W4h9tMLkgrdjqB5iv9W+2DbTmoIELd1m KGUSSimQBddKZE2U35iu/KJP9fh8Z4AWBz+PYck4+Ap30sCaSQ1O3R//cVVlH3dYiPpB YKVmtaj6lCPKeD0M6n5VRaZOkTNJnRXa4MXAii7WeNsizEwgM5OFn+Gx+1BDaPynPjg3 4V74cdvAQEthzB8swtV2vb8n53mLztsyn4F3ApFepFrIlliJgYO9kuxJPs9PKE6u/Auz M2Vg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=lNI3+6YJ; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-78854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78854-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h129-20020a625387000000b006e46a4606d0si8815962pfb.306.2024.02.23.09.33.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 09:33:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=lNI3+6YJ; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-78854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78854-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 83E332882AA for ; Fri, 23 Feb 2024 17:33:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2BD913F00F; Fri, 23 Feb 2024 17:27:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="lNI3+6YJ" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B50DE13F00A for ; Fri, 23 Feb 2024 17:27:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708709275; cv=none; b=RH863gZqnaid9USJdICmsA2xvygSqBGVKuPH9dqv5pmLPY9Xf8IPmheZHt06Gncgifql5pWYIgDiyYVGws+HWzWHNcORGT0zYkidt/a01qrFA+kc9Zkg6P2ojg5mlUnozjLsDz+JOGJFGsLkx++ohXv1o3mx0t66Ulii77zhz4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708709275; c=relaxed/simple; bh=Ig30gwYZkr/IoUPy5H3F0pxktm0wBBqBXGc48gOkR1U=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TGOndAvN5sjkIYJEiGCfCqw0u1SdhPoAk2sl4gOouNDdrsel/QETitPxqAYWfSJr4hUMNdMqdaeSo70iFdSZ+fTrasjEvlD2CzyTsk0pgHEFUe5jzWtTVOLMYbLCKZvRXJV+ch4LYDflOsYxbAY8XuvwwhYDjClA/1LaMcS50hQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=lNI3+6YJ; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1708709274; x=1740245274; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ig30gwYZkr/IoUPy5H3F0pxktm0wBBqBXGc48gOkR1U=; b=lNI3+6YJVFBDhsRfD5WOJ0kEnDm/ipn0aetCTTmBCfpt/fY3d2ZFcKrS NeEIm2J8g2yq/zuC3Rhmt0LyFKhUavF1SPjZLhzJ/VDkRNTozysvmXj9/ on7RydpTTdGHYZLiskK3ZabxjcwNvpQQTK2wbvlvABlo+/EMky3atZPHR 0IX4NBOfnWkt0XmZ97+CxeNZOaYI2jIpxztim8bRdZld6D5+3D3E1uTlq ytOPA0JfbjB23qsBgsTyQtdI7RCiqWy26ajN0XdGqMM57A2zl3NU3Nr4h j15pg50RFgReHIUUo23mK6W5yzyWN7o15FLod3QMqYn9vsOluXtbyfG4W g==; 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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