Message ID | 20210629023240.22394-43-peng.fan@oss.nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4509767jao; Mon, 28 Jun 2021 19:07:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza9WgDB0aaM9gSRWcyfZd52R0U6+XNEnqMntq+vY0SJ+NguonNpA7lSWSXaKlnp0i5AxZw X-Received: by 2002:a50:d64a:: with SMTP id c10mr37879286edj.199.1624932433835; Mon, 28 Jun 2021 19:07:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1624932433; cv=pass; d=google.com; s=arc-20160816; b=wXLADy3IoopY0E3RR/nx7hJf1zsN6vwmz3ZFzoMmghGNVghlP1SlgXFcTe1A1zXAKL jz/jhaMTjuVxLJ1jfTj3H9LTqmw9MU4qQgKzp9ZCh17YFBjpXTrQf8oE33pg/6dhfS1n KmnL0d0kj93m/OwJpkutI7hRd8s441dccCiClJeN20aOLVkkEPuFPWdTegmfSl7ZZyZD NPfZsMr/ZyKOz9JCnwNZn424cRMDBCDIdIo1v+zJT2AR06QcYhLvGXMvnnCaOXK+Hozx d5L0XsLv33ieNgbE+t3TQNKzj4cj11unTWsvL9s6c1qAhCmsmpt+MjLekUPFgUTLQQOW 459w== 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=ieP67K7dHpv1m7k7Dj60O7acUMgHAz4QRqKpGFGHLABgR51EFmN+JPCQiPoURdxp7n ZbVcasFCQrx2wmsHQlGzOgnYAvdOmhKrMPQhdeyxi3KkgDoI3L878QBr3q0AQl9/mEcz 1JIKU4TvAirAaa03p4Ew1AG03TT/XWz9I9UW81BOwtTrijaRKRBDY4rR21JdZ3PKZ1Eo baYIuR6j94mrHheM8aKyFbcUDG/NaThax1CRKtpXJsUhJIJAnD51xdYGZ51a8zir2nVJ BvOrl7uEBNnt9xduQa1fzAZCdIHI2c9mEUbM5lQ0BjqwOB3nHHqSWH/Vj0/aDJGsPB4B i+wQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=UnvCtaN5; 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 ca3si8155329ejb.511.2021.06.28.19.07.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Jun 2021 19:07:13 -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=UnvCtaN5; 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 908AB83196; Tue, 29 Jun 2021 04:01:49 +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="UnvCtaN5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8D35883141; Tue, 29 Jun 2021 04:01:05 +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-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20600.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d00::600]) (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 D17808310F for <u-boot@lists.denx.de>; Tue, 29 Jun 2021 04:00:59 +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=Pyb1dOSeaUkx08xrLWrY/m2eunQMOX0zoxRKu/2uXb33FA8A+eefS+MHbsoOgN6CSyi/4l9GZI/NQ/cWle+2YIKcLqEkDLP2YPsv5ufEz9qzmvbx0OeDRj7bhOVEOj0P0fcYuJoH3d7ZAkz0r7vaRMkd6Ym38j8pWX8p0yED/wFjK1hLNVBn4Xopv7eIE+I6ol9FNUBkWi5GwoSJW/Cve77Fs+DWDy+qydEKlZjwYFFxxBJ5yA8CsCmXXzJVfZaD7ZuKGrii1l8cUc2hSqdGnPhjo3XJ2GUy0ufcDsrLU5mokjvQ8SmxvMZr+MfKWzoDzSvmKbrIpp05ZGHJLtf//Q== 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=D6iRqr3gRc8uj52YozTbwl61VeaE4z//B8wJx2YS5jVxk9QCzUuAiz4kXRsx2+WwcHoTRuBuIAaCD6MH1HywsEARGQ93/zORh2C+GX1BPVJ0PEH/FPGa7oiO8sUVv3jPasebs/ZGnS0jv/lL1tKLAF7mh8Noq5InBq+wKyEHRiiM9Ovw/qgftCTvSlBUI7DKDBxEu9LRLpgwNEVaGA9Wk79AvUkGKO25GBUk1lN/8C1LkpvPyzRlNQHg58ugRRI+0yggTGNDdFydcdKDAZQKYxPN7qDvr8Q4tp3CuR0aHAmSK19hDY5DiwvZkyp+HKf33ygw9uC8nAeKv520rmY8hA== 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=UnvCtaN54N5WwComnBYfqxVYNPxzv6TCaSuToMTC50xQv1VhmSB2/Gh5vA1yXnuQJgRCJzvz7h5ZgAreNzHkSiDYUsc5PZ5sCrlGlQruNvHJCnaZcI9CYWpomRnv0Mne+F9mkkmDZ/F93IKK0h6Bb6IFaQJ/iC/zdfqw2hEx1ZU= 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 DB3PR0402MB3657.eurprd04.prod.outlook.com (2603:10a6:8:b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.20; Tue, 29 Jun 2021 02:00:58 +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.4264.026; Tue, 29 Jun 2021 02:00:58 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: sbabic@denx.de, festevam@gmail.com Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan <peng.fan@nxp.com> Subject: [PATCH V2 42/46] imx8ulp: move struct mu_type to common header Date: Tue, 29 Jun 2021 10:32:36 +0800 Message-Id: <20210629023240.22394-43-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210629023240.22394-1-peng.fan@oss.nxp.com> References: <20210629023240.22394-1-peng.fan@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR06CA0088.apcprd06.prod.outlook.com (2603:1096:3:14::14) 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 SG2PR06CA0088.apcprd06.prod.outlook.com (2603:1096:3:14::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.19 via Frontend Transport; Tue, 29 Jun 2021 02:00:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 94a2225a-f2dd-4a46-e252-08d93aa1bcc5 X-MS-TrafficTypeDiagnostic: DB3PR0402MB3657: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DB3PR0402MB3657B713984A9B01C7BDCEA3C9029@DB3PR0402MB3657.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:826; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Z/9E56pMrsQlXa1CXvTqAY0brrd7ZfaLWOL1I+SMlofxzl4/1KpyEppxWRfqVah0q315WePRxWAHNmQQoDzzWft7mRUuyhoFcESAWdUD40Hs811mJXsQPrqqlkE5Y9sT2DZKk8Qqhk/SIIqk7nrM4vEXpbIjMX5lP5JpelN9qNdO9s5IhgHR2hMo3YuEvedJNxNcEz0Lr4fiIwKiZLpX8XpZNXmg8MW7W5Lyv4+8rX6zkXUid2K8eIb929/HSoZAZCoa2gyc15TotU8FLNbdtdtsc8hR+4+kEKUYPNnTW4H2E2epvt8PdLsgZ0tkAnwaCWubaJLxhJR69EVndPBUDEXThyIdEuu6ejoMBB0Y1BqqBNBocEijOyegVAxa+ADrM44dgHTHO5q2K5ITzy41VF7PSgOJSnolmk1vWH3gNe7LeUQ2dWMxui9QYx41BmwKKOn8sfluJpZfNQlboB/EqqMBWKyuelPg0lRw+LkjG4AoQihvrZo3r9OwZNcaM3GJHAAkO8gyzRXVE05iOGc1xU8r5NuNLlBuNkdTKr2ClULnvQkKy/BPo/4EeUuifSoWTOpszsVH33fDirCJb6g+ZJRwAyzvvu4fuqBAMxngU/nNlQazXS9BbsApltJeeFhH8LBea9qWV6VHwKfdl7eIQAOCve5NMRz4PEfCsbyd6NIJi8XIlFIPLRZ9b4EUQm8Afyvwib5jjZGwZ0Wxx82Ayf98CA4jBtUdRcl/20hD0qw= 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)(39860400002)(136003)(396003)(346002)(376002)(478600001)(26005)(83380400001)(6506007)(38350700002)(66946007)(5660300002)(66476007)(66556008)(38100700002)(6486002)(2906002)(16526019)(8676002)(52116002)(6512007)(4326008)(6666004)(956004)(186003)(8936002)(86362001)(316002)(2616005)(1076003)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: J1Guq+Gd/JCeM0p5FC5fe/QsaCSVtGFEuD+DUHb+kmhS3DJWiYqkauRCvMzTBRiJDHRh+qVpyZvmj9YfpSfWHrBylMR+v8MOwVnnLAXaE9PYQk5w8X6uMn5JNOb4JiT36epls88AfeKiTPSLXJVQYTyB/pWqizw+za2otvAr7NLXVU/sPuimjGScp09kQViTUo6DLdhTAKxU2F1NsPak/QEJBOP2S09ahMy1R4dw0Xt8Gun+9vR/rA3SPYC0RWD6pzdtwtNdaPXnhd2L2/5LeQWDNCVjxonTPLnaAuCQtve5tFEQcuh0SiltaIvgmeT7NzRF0MLYSpfFaJg8gqtd2mU1rAZHzcyrOTwnTDSEud/JKSene8g7OdzgckTpuyaqw4Kmmg7e3A5QUGIQN/Rc7aE6XoHgvgjR8fzrWpzR+tvU/LzWSX0TPaZ6XlFPuEJYvB00Vzg/MpiY+CxR/ZcjVm6U4a7J3yiDyajqCZFjhWlNxHJu1eEFGvfaF4/GxUAWZ03cr/poy9iOSXHqdzR52b8OG29U2ZvqyJUbdCcpVSbL3y182Z/eTGyNeVRAkDZyyAd5KaM7u9ACMabBcnpx6XQdGgTVN2j6g5ky4npFHZfKTH0pwXvlUyqctR6dkbWqbLjNa4a0yoAXE6KEPnOxDtuS3ZAbJiHM2z3bboeliBvxZF0rzOAVH2/d+iV+jPxcFhaNh55yxbLJvstEpC5hFxrk270QbZiLf9yHCTKb8/wE/XL2++ZjNKIyLPXKZBaoU9l2bwW4yERLpS5sM8Xhf14s896KU4cBfJqiHUK0lU4I8HyGYW6PLaATAk1MrWJRihdz1UQUzY6SIHmKd2+gXnW7uNOd0p/T+2talln8OE2zlP82payjMwNKiGkQbqsO3V2xFtzYYAxq+8NDRnWQkj4qun6bfYgJvlIzFbSiMnIrRk/xhNZ5RNTAvkEOxaeF/+VXVRizbFo5aJfbZchHfomS4mp55Lo7MGZLBOIKRWtIsau1vdOWYw0jCOyxFwiHQUI5vWw/xmDwyPBogf8k0v+N68zcEkpPy1SP+jHlPnv681QNT0DR7VBYsOQ0Sy3VTV1S/1Ln1lMOH4CXXLYIIghasQTFUBksQNQVZzNc3Rg0tc0FIPgbkOCSdeV8BELeHu0BCIso3qdke184u53ho72s/oNsEXeSbaGjP4bH0MxNagyOIbLUCbD6va0/1qrfAzWqL5mE0LfSSvij9rcYoZX1lzVmGMLp2Mwv2XxC2Qf6phZg0M2MvKRBaMGEQkfBn2pOmpBhrFZvs8lP4P2JEgBUpKbR9RRjJrdSNvrEl1TCDcljL1FhFdZNGyDjFf7B X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 94a2225a-f2dd-4a46-e252-08d93aa1bcc5 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2021 02:00:58.2885 (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: yU4Gv11ZWpd5w3xMzs1WsJpiYL/AmkEqhb2DCY45eMyoMRgRVBxssphU5kS9iDirFZCOrY5+BhzaYkC65W0cMA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3657 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; };