Message ID | 20210807080113.16020-41-peng.fan@oss.nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp1031386jap; Sat, 7 Aug 2021 00:34:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzD70601WVMCZffGdffQPe8vQr8uL9ndx+X+puuiW5YccQERPSa1QoKoTdU6f57lQ8AE/ph X-Received: by 2002:aa7:c74b:: with SMTP id c11mr17965554eds.353.1628321656837; Sat, 07 Aug 2021 00:34:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628321656; cv=pass; d=google.com; s=arc-20160816; b=lzTiuBte21cR0wNazcDCbFABwBqZ7T9uS1j4WTLJK/b51q/xNdOeSKv64+NXMysEln qnu/1PVsz3TpnbraoqwbPMYtdASnfoHlR1Ooa265veORNAtA2o8B3OV/hw+OWu1/GpAy jUJ+GKaNKM9AfawrAG/bKbUPPw5Yc/BhYjgJKIVZoPvi1Gfucy8BpT3Fhs2EnE5UzeGZ aIOCKH9ACosqdYRV2S9K+AGPaB55P/FJgRCLxjD8EiSlrOi+ZG4O67FwWrm8qNMRP4zG bWgNBAhMBIpKzW2XXtnehoVw6WTmbqNEO3gvZKju393BIFFpK6hFWSYB4bbYJ/MQLY14 pr4g== 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=eAWRDIxHXGJB1uyXbBztSac5e1FzM0AwnfIG49R+JFM=; b=eVRxLqVseEa48G5xsqHCJJO/rlcBM8ES7cdoIVuvTVrb2ZPbriLGyeh3t8XdrZlmxv LKU6drfFkhq+1AuIuhh1CnU7kbtdHke/DZtvqFRJvlzsA1euQE6s/l+O7y/Xl8vYZ146 SqKu+1qeA9oGazPOOYcuf1xqtydSy6LJ3TB7Yb1Ym1tAweY24LeeqCAL8IFEd4fcR/O5 bBWQCIUsDugiMmVqspiUwrBsAXcUXz5whPhO5XFiOFBM8rzCIe7St7/pFH+EEKjSwHMi CchMpEg1IN3CvYca+rN61vchXV+sdP4tDpx+XA7LmFkOQQePWFAbV6SwKUCwSnYQPXrx w7yw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=WusPgtBH; 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id i11si13297606edb.418.2021.08.07.00.34.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Aug 2021 00:34:16 -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=WusPgtBH; 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 23A19832EF; Sat, 7 Aug 2021 09:30:35 +0200 (CEST) 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="WusPgtBH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D2A6B83237; Sat, 7 Aug 2021 09:29:11 +0200 (CEST) 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 EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2061d.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1b::61d]) (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 A8852831E5 for <u-boot@lists.denx.de>; Sat, 7 Aug 2021 09:28:25 +0200 (CEST) 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=JCNTpRKfLli4rVy/XGiYgWe5Iw+Ykh2+l2cNmgKh7KDg8D2047W/tlJFDG07OaHzHwNcfv+/9eTyROFCHqVuSzg1t3g91vHjaBsOIojESZre4u9W3syjvpDl437trMAf7ocjqCoR69dm/9a66u7q18fWDnHQWpOABHCjTIC3u+MUyMFv1pbKG6HH9htoBTdAc9axtrXpCfuWmxQEG5DXXDJ2VhcAXzuJx+uIHDLTmZ0KLfmddwokPV7Cc7W9GJKZev2nzNnyyatOr6mCoH8nYb6os26dY1b2RpYsnPifmP4y6/BoUdLxpYczTn2yd5n/1u5tVQMItzJfgA0PHjL9Tg== 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=eAWRDIxHXGJB1uyXbBztSac5e1FzM0AwnfIG49R+JFM=; b=YS/ncEO3z6p5uMdmvVA0djEfWYi62wHna4AbwBXw0L6aLA1bTXfaFbbRVlDnl4EqWiSiFuzIUL0cY0Fzoagwwf8F0xuDrQhx41CP4IKR01cCk1AGC/pDv0Af6JeEz2aD+s1+FHA53PQXVuj7gQbnSj+gBZIWqIP4VE2GnqlycVmzUiVtigMThVuIIZvLKHKfwMa/dh9Hu+J8EogGEQ0GqLDrJw0ACe1qSNm+45C7rtX+ydODJV6jhdlYrDCZ5OLdp5I1s37cN+g2m8FWxyy9EasJPJFQYQSNpabzuAquVa6SYvQ5U3ojmu8MUGx4bkDAJkCavp8QgXFddCVEOV43Gg== 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=eAWRDIxHXGJB1uyXbBztSac5e1FzM0AwnfIG49R+JFM=; b=WusPgtBH4ruX6jdlZIy1WF5qiMOj/l6gehK9S1O+QOZOOu4eySK2EHG0QAHnICkbg4qK82XyrdjsVhJPLXDvhcghG5BOUXFw0YbmxPYUhoEiXIQnWyYoysbCePyjAJEgfGZXGgER8OG9SxqwVo9tFvBHfWw5bXDkWWLc75aTaUI= 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 DB8PR04MB6857.eurprd04.prod.outlook.com (2603:10a6:10:114::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17; Sat, 7 Aug 2021 07:28:24 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c445:d742:eb76:86dd]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c445:d742:eb76:86dd%9]) with mapi id 15.20.4394.019; Sat, 7 Aug 2021 07:28:24 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: sbabic@denx.de, festevam@gmail.com Cc: u-boot@lists.denx.de, uboot-imx@nxp.com, Peng Fan <peng.fan@nxp.com> Subject: [PATCH V5 40/44] imx8ulp: move struct mu_type to common header Date: Sat, 7 Aug 2021 16:01:09 +0800 Message-Id: <20210807080113.16020-41-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210807080113.16020-1-peng.fan@oss.nxp.com> References: <20210807080113.16020-1-peng.fan@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0133.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::13) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2PR01CA0133.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Sat, 7 Aug 2021 07:28:22 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 93afe0ac-8c7e-4431-b4fd-08d95974f0d0 X-MS-TrafficTypeDiagnostic: DB8PR04MB6857: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DB8PR04MB68574E40DB7AB6DA56D09724C9F49@DB8PR04MB6857.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:826; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ffopQWWiFtSooeDEZE1iOpWyQF0IacrZH4D0ZQN9VGmCMn81M8Fd4B461jIQJgMwyTN9yUevyCYLv+aDWjYqtCGYOmQV/dN0hwmqr0FKDsBjpvMlFXRA5wJbIHo1u3IW9RS87Wd1D2e5aA37gc8CYs2mPTZMNA4viwEamaRr2ygw5vHoMxh8MkwbC3N7Xc6VyFFmIOFvo4Yw6KYEJgTkFlw9wUUTI0xHb2I2wYf/zPqL2/mv5KGVvJEwpmaNxeOFsK/bB32zVcW+y7PNfsa4y58lc+QpX7b6J8qE99uKCKKS6rwOCJJbIKuBer0eXe4FLqYlFggFORzAkldMAk5HBMX7DyhiJ2ZaxurqeCCYuiSfMTp4ArikdS48olFAYyR3fjQMiE6dCqz39xvOOMHIH45bGvaEIsVn71/D0PpqWQX5JLoZe9iFPEsnI/mvEuujSb4/agcgNT57WfIDHuFfKPT30gKQrSOYKS70bXimS6IhFSjHN6PQBngR+oZpStu/DW3oBjoiwiFovN4Z8IBNpJ9Tqi5g3YZxsqmgv6gMkNH7vItVq0mEV1BzhEDoNNaLhdMsvX9jndwfCL0f2+Ds15ZYx14b6nF2nMqKUFR3CypmRbMhGoCODsOEGT/B8/yvItz/2T9tKLQ0L6kiKrh+WT+tEO+uFDuKRltYR/SdcjGuyVhKABqX/B2MubAdZG/VNx35kxEbxv6G0tUOkT609Vi3GE6Pf+Y5m3kUteRQzZU= 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)(376002)(396003)(346002)(366004)(136003)(39860400002)(6486002)(956004)(8676002)(6506007)(26005)(4326008)(8936002)(66946007)(83380400001)(2906002)(2616005)(66556008)(66476007)(5660300002)(6512007)(1076003)(38100700002)(38350700002)(86362001)(186003)(478600001)(6666004)(52116002)(316002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: RU5CyqGyBQJ0JE4I/gLaodVlMQL1gIRYcUQWOu5PPW9r34DjpRZc0vhtzPsgX/xUwZJReohQvQ+BPcke1IYO4EGs2eSKwT6WZjbFBJqFqfI/SmeD5qcQozgckjc4ceaSWGiVXpvXxdRr2R9I/tdV6XpzhMEq5PqRM8VAADuwfsEUfnQhLiN3qmGl7p7AnJ9KN0riLzrtqWZVa5WlLev6EkMGYv3ZKSvmL+aJQXMcfyMLP6dhoKl/oVO04RsC+HP+DFgiuuoC8Fd0AmOZvqHebRknmu2D/n2hBSJ4S+O4uk12xM0nGeYD/yo2XRXDkumJMmZGQkqPbCqPPccTinoUEqJgNir3Fa0J9rSEuI+hWVHR5aIZl/wC3Becx47y1ghpuKgM1jkgsySTYe4zW32XEwIshbr59Xc7iALje1g+xfQslMdr2LPhmnbEsEALcngcfwAaWLVH7XVH+EOzvksS12FdAMLH1S8SpItSZiJ8DUYclOW8bmAqA5tyRCLtJpKMIFJpNZ9gBmGHmcLR8VR+UCJRZmXUDUpHGd/oYbJglFqzn7A+yxPDNr0gxLVIZScer4Ku1MxxwsrRPkiDDPXFGvDuaaW6x63Z+CXL1UZIC2Dwm3qPR16KKAfrmEiyL7IA7eWVySGsUbUnpuDC3YXarWQzc56W4oKNG10OKvrYFjq1hU2364ZHPW7R4UvE6V2OJZnAMnK7ujMu5iPfDf2casZeF4nUiKJC/WcITT3lZXzmlUGDeGVYILFNo+aMS1SFfqmd6yDXgSsrWEps07mUadccb+DQWcsFdjtJTkf1PkWH+ziJ0JlJn2art69uVI2EZfrgC9qHgaZu0FkAtKS6LlwbowtdRVKV3TfcNhQjoSRjxLQyQavQFddWXOEW7J8crFzKyGTTFsTx8FcxZpNiorQskEwUVfGoWkyG3nR7m+j74G8Y2hho70jeWgAZ2s1SgQsTkgn5PdIODwq8FgbH57qxeXZLOjBB3IZSfQTxjFlRfIAxBbYnEbjXYJ5QYgg6DYWnCsSTZCWVqs0PJiJSwmfJ7Yz6xsGN5N7RkkL736bprqTV/z7eNrQtuUssMuT71fy2TbR+++xJRC6+q4o0xl6rVgoMY6haLHV6usH2q5jtbALbF8vHbOLZvTR9gv5tUNEG5vvD51hemL2UhEAL6g3YlBlMb4yYh+yaLGilRNrtUcpqBeMGpdot9Q5CcxJ+LqAalMGxA8JeVhw0BATTl80wWrCb6uZyHPvN57KeBmThO8iUHmaloAEBCj0/tRzgOk+DOYKDCBW0i/en0dbMd0LwdcfDXFz+084HaBN5xPEiWt0elVwTusCGSSf7Kpzl X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 93afe0ac-8c7e-4431-b4fd-08d95974f0d0 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2021 07:28:24.2912 (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: VDe70Soab3XG/yt/eIHnT6n+4rDGSMbMIMH/i2NtEWAOt0ShJ50uf5yFajSKizgq33tmo5D+OXK73NYOPKhKig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6857 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
imx: add i.MX8ULP support
|
expand
|
diff --git a/arch/arm/include/asm/arch-imx8ulp/imx-regs.h b/arch/arm/include/asm/arch-imx8ulp/imx-regs.h index 5231155089..af6845cbff 100644 --- a/arch/arm/include/asm/arch-imx8ulp/imx-regs.h +++ b/arch/arm/include/asm/arch-imx8ulp/imx-regs.h @@ -63,6 +63,31 @@ #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__)) #include <asm/types.h> +struct mu_type { + u32 ver; + u32 par; + u32 cr; + u32 sr; + u32 reserved0[60]; + u32 fcr; + u32 fsr; + u32 reserved1[2]; + u32 gier; + u32 gcr; + u32 gsr; + u32 reserved2; + u32 tcr; + u32 tsr; + u32 rcr; + u32 rsr; + u32 reserved3[52]; + u32 tr[16]; + u32 reserved4[16]; + u32 rr[16]; + u32 reserved5[14]; + u32 mu_attr; +}; + struct usbphy_regs { u32 usbphy_pwd; /* 0x000 */ u32 usbphy_pwd_set; /* 0x004 */ diff --git a/drivers/misc/imx8ulp/imx8ulp_mu.c b/drivers/misc/imx8ulp/imx8ulp_mu.c index 913ebe7ad3..333ebdf576 100644 --- a/drivers/misc/imx8ulp/imx8ulp_mu.c +++ b/drivers/misc/imx8ulp/imx8ulp_mu.c @@ -10,29 +10,12 @@ #include <dm/root.h> #include <dm/device-internal.h> #include <asm/arch/s400_api.h> +#include <asm/arch/imx-regs.h> #include <linux/iopoll.h> #include <misc.h> DECLARE_GLOBAL_DATA_PTR; -struct mu_type { - u32 ver; - u32 par; - u32 cr; - u32 sr; - u32 reserved0[68]; - u32 tcr; - u32 tsr; - u32 rcr; - u32 rsr; - u32 reserved1[52]; - u32 tr[16]; - u32 reserved2[16]; - u32 rr[16]; - u32 reserved4[14]; - u32 mu_attr; -}; - struct imx8ulp_mu { struct mu_type *base; };