From patchwork Thu Mar 25 09:30:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 408769 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp364213jai; Thu, 25 Mar 2021 02:32:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDzQJyagxOF5sSlZ3B5uj3dyLrLfMvvMq9SxUijfeheDkar8dZZvh6ZTZkdTBbs8RV0tCW X-Received: by 2002:a17:907:3e12:: with SMTP id hp18mr8311264ejc.366.1616664739665; Thu, 25 Mar 2021 02:32:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616664739; cv=pass; d=google.com; s=arc-20160816; b=lMTYG0Y6zNBt/hkLOSpVOFNL4FIFzc/AYJFqZuDiOvNE9uQVtJ1MD3blwQh/gHaemW FzyFANW8QnmqnISCdGYdt/u+DuIKYOLQ9tAXOCtRJ3RXwzJQsEOzrJfd+l8XDoJWUekb Yjyy2mELy5CMui6tkVEH8zUXXzzvAbwJyBiZLz4U6ve0y3a9HCJvAMCG5uUqUyOZV++n yCsfknKkeaYyjc6LtwKcQuT5sMkeI5PZfFL+7/7tHWx/KvkcGBybKR/oLN0vJnrIAE3z 5nyLtzZLYw23Bb/e1TcIcepcCt5xp3EOMYz+7E+RIE7/Wv6m89znI29PKDQiNXgy6wnb mRDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=v22AeNYAli7pKlsvekfhtGauvOqMawu6Znga1iWRDRQ=; b=nU+nOoA1nctFi28k15aBeMszRfUWR6ta3qFRcJcfDlIQXWryRNA+s9f7wXD5L7yKCF qOVT/SPBzZSLkCPjp8zOcqhkQecmI3iNF+jApsVAtBpsCysrWAhlvvrFUzuB2V13g99E wsyVjvcmAbfcx5BJw/i0jjKqx1UVn1fvfgOWb1jaJvbmlfLfRQeXYsiJ94HucgysbmQU loqsgYPig8VUAyd4Ukcna672VlNBug+s08O5yyLeRSOMc5276/jol7b+8RBE3F4OUujW 2RDYEiLfCgHhuTy9x0MmUZ54M+Jl6G75VKmk0OY1OyT2rR1h0qrcGfHvp7oglIAR3e9z tLJg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=EVJDxlAd; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id oz17si3949882ejb.205.2021.03.25.02.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Mar 2021 02:32:19 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=EVJDxlAd; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 69F638283C; Thu, 25 Mar 2021 10:32:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="EVJDxlAd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0DE8E8276D; Thu, 25 Mar 2021 10:31:55 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0605.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1e::605]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DB6718219C for ; Thu, 25 Mar 2021 10:31:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@oss.nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IGFthAf+vN7fsULhTkLrEz/Jhu2bP030OTmohqqia2rM2nZzXDTXGvo5qgJIxeMW6ic8s5yRqJBWbLqAT3ujb+efv4+PvxW1Rpgl9TDv/gheJ6xJR+TJmBZ8H6UyBMnl8tyPCwoSpAUsas4Gb/G1TMY2oMuIp0XU0dRXPsnbwOjysRHogsmsMNl1Zhc4ttEIXYVqvnyY8zxqHJf4/Gc3i1Rgo/vehCKs5m1pOW2qtEDuS0kcSwWJ9TvtE8rwnHIBK7FnR2fKwTiRCKSm+YOoheHsc2vpfydErRB8571y9zzYLlNZLKC2DDMhKcAE2oxYoUYbz0rp0PTxDmySBppUFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v22AeNYAli7pKlsvekfhtGauvOqMawu6Znga1iWRDRQ=; b=nt6arDrokRivr01ktaAuU2tJf//gidiwxLMtBJyc+ejd6g/Ox1howcr5+nm50fq38fgJrjuOs3QLhMOSvKGxYjXi0eI71waVb2SSYfAvBMmVASQNHJoQk6BnRORY3D9TtHZXS73swcu4KG/0t0KNVi0ZnYzb88Nqbmuww+E0e3hR1rB1ZkWJ09rDG8fz7ljH/FwYDyBOWIUU0gNnmQ5qT71HEkfEQE8vREkOPLavx508GZHPYlI6j7MKEpxKq86S+wwf9WBVIOUz+z5xrXd+UvsJceAdVrZhmu+aSZD59GHzs4YjC1eytINk04ASdpm/TWe4bOTAWf9T+l9KChDL2g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v22AeNYAli7pKlsvekfhtGauvOqMawu6Znga1iWRDRQ=; b=EVJDxlAde22yyr2NX0lIeUXUi4MrRk0a2wKRJO4MZGn78m06X/M5xo63AfKGEUS/y6W7n3w80nNkcGeZZ0wGwiMyTyfWQx42kf5SFOdoaw9HSH7saQC/sDfdQhN6wk2Khq4OB7mbIsyn4OpBIaDmiP4IcApwCp2Wg0N0D13b1T0= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none; denx.de; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR04MB3127.eurprd04.prod.outlook.com (2603:10a6:6:c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.26; Thu, 25 Mar 2021 09:31:50 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0%9]) with mapi id 15.20.3955.025; Thu, 25 Mar 2021 09:31:49 +0000 From: "Peng Fan (OSS)" To: sbabic@denx.de, festevam@gmail.com Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan Subject: [PATCH 02/37] imx8m: add regs used by CAAM Date: Thu, 25 Mar 2021 17:30:01 +0800 Message-Id: <20210325093036.3270101-3-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210325093036.3270101-1-peng.fan@oss.nxp.com> References: <20210325093036.3270101-1-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR0302CA0021.apcprd03.prod.outlook.com (2603:1096:202::31) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by HK2PR0302CA0021.apcprd03.prod.outlook.com (2603:1096:202::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.16 via Frontend Transport; Thu, 25 Mar 2021 09:31:47 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2df6b2f4-f56c-4de4-2b88-08d8ef70d0ef X-MS-TrafficTypeDiagnostic: DB6PR04MB3127: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:189; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rkGJMKkh5kY9aE0KNLuePAFWPp5ugmItV/I4alXQBhSLt35d+5lJkFL8pMNQv/HhkUW/0aT+fD29Il1e7b1sU4mXNpm8pGU1JjJIopXvz9zLCZfFgA7R2jnU5RJYl5yo7XHQbUb9yTQSnH+B9qn4zqemxW3XjZQyRU/3j1054BY0Y+B07s2aFrU1EW2MW6F63xQ36W9Ipe3AHIqrTpdOriPY7MYb3Xn+4vh7zQUkzlRzTqKqX0g5orMKheYtiXwr1X+mNISmf4zLcwVwGmaZSmKzCBpC/Gf0Ok+5PW54P1Ka2KyBGko+tXeEN+zOVTXD6KcnRWahEHQBm7nd89D+XxfYGneYmoNsMxv2aK2yylEJ8OrL6bwzA0eKm0O88il9fHCWUDfa1cOs6zw1T81A9D+LeSkZx0EKCAN2/Huppqwi1NZnl6fZjrF0rKiy8/BHCyVtSplh5EGR3mV+97MVI7+xvot9Byep0tXjuwm/oN6UA6XKoUMPus6jQ+Y3sFiamsjqcEIy2fNCsmwEHCqaP/vi7cFiqtesWZZNiCplZbgbNMl6pxW1dR73US8oIE2xZnk3U047xMLYLkqHjBoVj+IFv6y3jB94KP8CJ6a196/IuID5i7xhQxLY8mik0UO+Lv1yEyscacikQzUFK0S+f9aaCG4eTyfI3HHI+EvKSprQkHe8M8N0d/Tmd6sfv8l+w4xjushWBZK/NXMAMNbSsCkxZ18xRHyiZ9gYPV03FQQ= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(136003)(376002)(39860400002)(346002)(26005)(66556008)(66476007)(8936002)(6486002)(6666004)(66946007)(478600001)(4326008)(52116002)(69590400012)(6506007)(86362001)(1076003)(316002)(5660300002)(186003)(16526019)(38100700001)(6512007)(2616005)(8676002)(2906002)(956004)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: dQM4VddWZLFu7nm+sr6xemvv85w7hNEx9/JaCLMK9LHwnbjaoSddX1gLaJyvxRbvKW7TiAdcmompwbUkMLn6tDmXTB5aqO7mxPtZ5dZCLaJ3zXYCr0YLscZN0xsnDQmpglWcHnMS6coUNFiet7fyllX/ID5bjxEMCgAmB0lLQc6abnr5uYEIaDV5o9vgVSy130OXo2RZBg/Jxb2klR5kLhqg9SFnjTDpfQXS6U6vPdhYw3ord8ucK/aDjoiJAMP2u9epK5i1F0/bY5dArYHaxhy+x3wdp1cD4UVdojoFxuod92l0dlH+qJACM+J8RcTtrDao/F+auRw54ZyKGPi+RvGQLxG2ud2Ac5jaaXqxyWZre187aJnCTQ+tENLHQ7gEoc7Ymb0Ge2aC80YYInmC/SjhaI0Ksud1UQIUU9aVu1e9Df6OHrokNXYPiYVRImh4In+giXzwpgze43Gwz7Y2vNAb6IckxdVvPwGwHblpC451bVBPe4lXIgbJvz1ohX3jki5jGtIhciBJi4MzAKbhoTZKv75I4EPt+ChYPJFjM3RGRPfbCgdjgG13GyiegzXxck3wGI12+6DIa34IcQrtf76+EZggfYz72MB/F2TrQ7JmUKfVUmNeSoZsIdBejpcZSz8bO5PBlweqw9pFXGglazKTUejhjQwASseoDz0HKWx15ivNe1iEsDadxwzIyWXPeGxSXa4+CsUzNL0mckvz7539SB/O6dDtYyTrOakLE9pA24sJYZDnm+AEaNV1lwvkDICXNRHrVOGYO7egnmlrfSJsQEZN5HFECkeuqmCtaoSzqCgmaVg0X/GuN3hPa1Dfsu9w4/aO3ntq2xiOHn9oTokZSCAcqV+QDikF1PFWE02iRo2JkymOmGuacBezhuYpJ7IiT1Td23Zh0RVkAiJ/p9+26gh+qU0tZI0tB3AVMfeuTWazfusqXmjYoz9NGCNGvRLfSVmU3h+iAeDFK916cNanmBEaRicRvk//V9ilEMjwxSDxj9ggZFg95/SzkctcXqVwVWzUS+Pod/bNQcDRR01bUKFV8qDztyozS+3KsAtmjKBr1xwrSU612rYDaltpfUtnWFnkqne5fkcfchixJLyWmXQsrZL/NMSXw3blt8VCf4sOp4WmXHj2DvGOgBJUVhzFJ89ZJldaCQTcVw7rxgUuStFrb6UA2IeRn8n0E7l0XVe1cBDi361iKXa17RyKOm1tUn/GqksgAgYAFzQL+I1LCHSzvJ44BmUdBbrSy3faMzPCVb771PAQTgM+2mTUJmry2+uDJI1Axxv9m6hCp1CzLR3r1nbDte26layf81FusZLMHcEKYuAS4/EwnAJsdnCR14xdmajx4WmvZNq7kw== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2df6b2f4-f56c-4de4-2b88-08d8ef70d0ef X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2021 09:31:49.8423 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2Dj90VnOVbaUsEknUb4GVFVCT6kVcckw0FQl2syB1meSlVq59mrQLaC7/8cW1sZdgjDFs94Vao4OfkdGEQfAOQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3127 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan Add regs used by CAAM Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.25.1 diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch-imx8m/imx-regs.h index 49bac8c1fa..b800da13a1 100644 --- a/arch/arm/include/asm/arch-imx8m/imx-regs.h +++ b/arch/arm/include/asm/arch-imx8m/imx-regs.h @@ -65,6 +65,16 @@ #define IOMUXC_GPR_GPR1_GPR_ENET_QOS_INTF_SEL_MASK 0x70000 #define FEC_QUIRK_ENET_MAC +#define CAAM_ARB_BASE_ADDR (0x00100000) +#define CAAM_ARB_END_ADDR (0x00107FFF) +#define CAAM_IPS_BASE_ADDR (0x30900000) +#define CONFIG_SYS_FSL_SEC_OFFSET (0) +#define CONFIG_SYS_FSL_SEC_ADDR (CAAM_IPS_BASE_ADDR + \ + CONFIG_SYS_FSL_SEC_OFFSET) +#define CONFIG_SYS_FSL_JR0_OFFSET (0x1000) +#define CONFIG_SYS_FSL_JR0_ADDR (CONFIG_SYS_FSL_SEC_ADDR + \ + CONFIG_SYS_FSL_JR0_OFFSET) +#define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 1 #if !defined(__ASSEMBLY__) #include #include