From patchwork Wed Mar 2 15:53:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Ferre X-Patchwork-Id: 12766252 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 681A0C433F5 for ; Wed, 2 Mar 2022 15:55:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=d7XpckO2XJqZioVwP3iarduNd0fJmhT67nnIJSxkwj8=; b=L+6HR859gNO6Tg 8dKV1adAlXJMLNBbzNtSjA09wsv9APWP5p5ywNwSqZNFKF4XWGag6hjL/PpN988qZisBXPEPNm/Pg R3/Z19nJSmOXsRyaM/IzcUHtsLAFEHbOmuSlavfPjrM3aqgKQvzhzrgmMTDCzPuZ2OqjbWrMcePLv Lr6fEQ2S+JVFGZZTPXPxy9KBS4ppgun+Ybd7HCgJ7zoHn6rTbC4u8PPuOcuRQ+a76a678eRLqziGw P251B4OOInlGDLrDchPstHzKO6hVvC4U8btLpNGfmFpS+5rX+MqLqdWakro9VMpbJqic/e87Q6qk9 urPvSH6fKl/a0HC9mbMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPRIU-003EyZ-4S; Wed, 02 Mar 2022 15:53:50 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPRIQ-003Exj-Nx for linux-arm-kernel@lists.infradead.org; Wed, 02 Mar 2022 15:53:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646236427; x=1677772427; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=qbujCBUUgtRWzXMjdt3ZZyu7YDdq0pA0BSSFCMRt2B4=; b=M7AFwjBL0SidsG8EqIc/PheBu8kMl/JtiH5bjK6IsRbcn3r92FW1BhWc obhqnw7bxKJ7cSlqgqgGa2vvoCRxXpUXLv70ZrN7pt/3eRb0Xj2NIu26U fOsuWtn79fBvPE+5/C35b4xWWXU3+nUmWaZQH6VhFGQ3ZfVbuu/0mC1To qZBFrmNO9hvacQScsZqLZBBXADrtMRyMAsrIIvtllsq11Jec5LjmtqujS +ZOo3gplhqmotXfd7Gg/0W3wPgW2+N96K+88G5253po0tzWJVpDEYBdQ9 6pAdz8NIyBLBYTjgzkUMy+nStZoCBQLwL97Ln/ObxSzBC5rut4RkNVxSz g==; X-IronPort-AV: E=Sophos;i="5.90,149,1643698800"; d="scan'208";a="147819436" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 02 Mar 2022 08:53:42 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) 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.2375.17; Wed, 2 Mar 2022 08:53:41 -0700 Received: from ness.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Wed, 2 Mar 2022 08:53:40 -0700 From: To: , Alexandre Belloni , Claudiu Beznea CC: , Mihai Sain Subject: [PATCH] ARM: at91: add support in soc driver for new SAMA5D29 Date: Wed, 2 Mar 2022 16:53:29 +0100 Message-ID: <20220302155329.27668-1-nicolas.ferre@microchip.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220302_075346_909203_29C03C57 X-CRM114-Status: UNSURE ( 9.76 ) X-CRM114-Notice: Please train this message. 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 From: Mihai Sain Add detection of new SAMA5D29 by the SoC driver. Signed-off-by: Mihai Sain Signed-off-by: Nicolas Ferre Reviewed-by: Claudiu Beznea --- drivers/soc/atmel/soc.c | 3 +++ drivers/soc/atmel/soc.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c index a490ad7e090f..b2d365ae0282 100644 --- a/drivers/soc/atmel/soc.c +++ b/drivers/soc/atmel/soc.c @@ -156,6 +156,9 @@ static const struct at91_soc socs[] __initconst = { AT91_SOC(SAMA5D2_CIDR_MATCH, AT91_CIDR_MATCH_MASK, AT91_CIDR_VERSION_MASK, SAMA5D28C_LD2G_EXID_MATCH, "sama5d28c 256MiB LPDDR2 SiP", "sama5d2"), + AT91_SOC(SAMA5D2_CIDR_MATCH, AT91_CIDR_MATCH_MASK, + AT91_CIDR_VERSION_MASK, SAMA5D29CN_EXID_MATCH, + "sama5d29", "sama5d2"), AT91_SOC(SAMA5D3_CIDR_MATCH, AT91_CIDR_MATCH_MASK, AT91_CIDR_VERSION_MASK, SAMA5D31_EXID_MATCH, "sama5d31", "sama5d3"), diff --git a/drivers/soc/atmel/soc.h b/drivers/soc/atmel/soc.h index c3eb3c8f0834..2ecaa75b00f0 100644 --- a/drivers/soc/atmel/soc.h +++ b/drivers/soc/atmel/soc.h @@ -95,6 +95,7 @@ at91_soc_init(const struct at91_soc *socs); #define SAMA5D28C_LD2G_EXID_MATCH 0x00000072 #define SAMA5D28CU_EXID_MATCH 0x00000010 #define SAMA5D28CN_EXID_MATCH 0x00000020 +#define SAMA5D29CN_EXID_MATCH 0x00000023 #define SAMA5D3_CIDR_MATCH 0x0a5c07c0 #define SAMA5D31_EXID_MATCH 0x00444300