Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp110144pxa; Wed, 26 Aug 2020 18:59:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxO9EChqkbBzaY7qjDqVCBTOtRyjm3rtdA5RK3wVc61Cwuiq+2yQuh3hKAf14o9kHYvJarY X-Received: by 2002:a17:906:44e:: with SMTP id e14mr14686378eja.352.1598493587550; Wed, 26 Aug 2020 18:59:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1598493587; cv=pass; d=google.com; s=arc-20160816; b=MJdwH45i6Zbe0qTXXbe38gPjuk8ZY6G9+EeT+Z0eIwCiSn30X9ahO5b9nvm8j6ESyc KM9+6YqZLVXVBR9cj9PdTkasNquJLnsF7NAZBgNt6dorQmhp4AUxN4Xt6A3aUZSdi9x8 vpWJkJMG8U/fZhnFeYLMopxG/Sr8BflqrfatH5A/qrTo0pivmLWsi5wMmLV3/fhtSrhm L6TXOPo9TGwwctnARqNDgkQHeh5Q+/7KEW26akPlc0p5Oy8zVHrxPjq61EDS1lK9aayu P9CWOpnOc3M4NFv8y8sB+Hj5/6YNzxwHYPDRLWnilVMjPABb4g9Z1Hpohzkf4SRsZY/Y dRlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=D8QxPMisC2+k/+yHudjuCuQoA5DHOOu3ciktYDpZmyQ=; b=yCBPcZTqeOCzVCd8jMwcFjveHAYJ6AkS32kwzXsBqmu/P4KHeOoZXLn8glCQvzKmsq uaU7DiBYNCulSz5H6SdPaF3UovX+u5yvSPBlNreWyuOtjuN3UPSklo+jVHYX5WReEHwG TxfJlJQPjTN4zxacSoQiJ0i2Nc35XwlGiglocjBkglfGsX2gCkaLB3ikutdFAdX5mPAi 6AwKpaDdaSq5JNGFdGTBqd2qqgPGGIoOkJM8SU9CYzxiJS0bT7oYpwIhbx/oBz5SkobQ 7o4aujPp9OGCmEoDT6Nbbjdq8sx1/adM3vj8a0Xa52ux8yTIhlBtaMVUFkRFO4GM+L41 2g1w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=gLYJjGT4; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci4si43566ejc.612.2020.08.26.18.59.25; Wed, 26 Aug 2020 18:59:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=gLYJjGT4; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727069AbgH0B6b (ORCPT + 99 others); Wed, 26 Aug 2020 21:58:31 -0400 Received: from mail-bn8nam12on2048.outbound.protection.outlook.com ([40.107.237.48]:43169 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726828AbgH0B6V (ORCPT ); Wed, 26 Aug 2020 21:58:21 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c30J9ooyWpRHS6zBiF4EFH+jupE/n+2j4lHROLXEOlB1eSP3b1/byx+Cscmpfsje6knpiGKr5j1apqs2ZMMP04wmweDnyW6fezTkVHYl9y87yy9cTmBkjskR6xkzSAFBdA+F0mkyYaFBI3J8fiyP7135t6VCXaOnt5ezQaLgb2R+cIWuAFypTnh1gWHW8fhJVCIN7jaLhZyKK6tSP3YKNoJp6PqrjqyrNfbWWcM2isDGwa1+YXMR76Jppxint3nit6o7FD5+C+/5ulBQ6E3rMSvHXgQEKTPHnpZw/bZ0M96dEc+Q2Qx5OQEnLvGHW6MCCiJ/CskSwC1WpwqdPBd8yQ== 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=D8QxPMisC2+k/+yHudjuCuQoA5DHOOu3ciktYDpZmyQ=; b=oAGYA5YcNXhDTq+b/hJQfuUJ1fhkTMJshJSTB9CuGOx2RloVFjKqpalIkIZ4Q0Nhdm3Oco0z0Z9JjYp7G+Sro3dC+7kDXujBx70F91J2HjRxk6Ui2nBB7qo1c7+PhAX+JEeaPghgxO8nRQbu8sEr8Uf2HyjoRtlLUtFjs8mnRUKotTDRiovxupnLUtRUMs33pdtqQx47w9SDk9zrK1bfv+QZcGezw9EdIDLHUzIzT/EZxVFP8NOq8YMdl0Ci9gQPvJg8yxc8U+Zkf98ifvob5ZvG+WF7PaxQh0opteFoPVAbrAiGzkGg3lyii5HmhbAQe+1cqYx4OOfqCSuM/gTLwQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D8QxPMisC2+k/+yHudjuCuQoA5DHOOu3ciktYDpZmyQ=; b=gLYJjGT4mXLXAutMiD7Kjis3hfeVC96cvS/QAlKWV5GnV9ztdBsgRcNI5rHhWCb6KBRAv16DIx7DVyC+dAwLOpHniDQMvjQHd5jEorg0+Yl+8AhSYCGQa9B74OPl4fRh4I1UTk+SIuR8YCV0tnzXE/b4rdFCvKDbzUAi/nkD7LM= Received: from BL0PR1501CA0034.namprd15.prod.outlook.com (2603:10b6:207:17::47) by BYAPR02MB5559.namprd02.prod.outlook.com (2603:10b6:a03:a1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19; Thu, 27 Aug 2020 01:58:17 +0000 Received: from BL2NAM02FT051.eop-nam02.prod.protection.outlook.com (2603:10b6:207:17:cafe::5) by BL0PR1501CA0034.outlook.office365.com (2603:10b6:207:17::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.20 via Frontend Transport; Thu, 27 Aug 2020 01:58:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT051.mail.protection.outlook.com (10.152.76.181) with Microsoft SMTP Server id 15.20.3326.19 via Frontend Transport; Thu, 27 Aug 2020 01:58:15 +0000 Received: from [149.199.38.66] (port=58724 helo=smtp.xilinx.com) by xsj-pvapsmtpgw01 with esmtp (Exim 4.90) (envelope-from ) id 1kB7Ad-0002AS-OR; Wed, 26 Aug 2020 18:57:43 -0700 Received: from [127.0.0.1] (helo=localhost) by smtp.xilinx.com with smtp (Exim 4.63) (envelope-from ) id 1kB7B9-000183-CW; Wed, 26 Aug 2020 18:58:15 -0700 Received: from xsj-pvapsmtp01 (mailhost.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id 07R1wATw015256; Wed, 26 Aug 2020 18:58:11 -0700 Received: from [172.19.2.206] (helo=xsjblevinsk50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1kB7B4-000155-Pw; Wed, 26 Aug 2020 18:58:10 -0700 From: Ben Levinsky To: stefano.stabellini@xilinx.com, michals@xilinx.com, michael.auchter@ni.com Cc: devicetree@vger.kernel.org, mathieu.poirier@linaro.org, emooring@xilinx.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, jliang@xilinx.com, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v10 1/5] firmware: xilinx: Add ZynqMP firmware ioctl enums for RPU configuration. Date: Wed, 26 Aug 2020 18:58:06 -0700 Message-Id: <20200827015810.11157-2-ben.levinsky@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200827015810.11157-1-ben.levinsky@xilinx.com> References: <20200827015810.11157-1-ben.levinsky@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: d32f913c-e99d-4747-47e2-08d84a2ca997 X-MS-TrafficTypeDiagnostic: BYAPR02MB5559: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:565; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: woSdLsUuhd83tujIVQSoyGL+yvtLKkLuCjD1XvzRk8Z0SjuFgcRXIPounCk36+CyHCpMB73dkEFcvbW2GYrX6WhJf29wE4+txADqCDX5CzJQajvrkFDKRepDfvOY09M+ogXI8Gf6AHhDbEaZz/yGwdQGbyMRwz8pJlfH6zSL+oh+LWwHj4wSoVi+3isfifrt+ge32zImCjO1zt2ymGM2iccLER/H98wnJRYICYy6Vlot2lClG/zGt9SfOZDcP//ZHzz4Oo/2wdhzkzU+GVTFAOyx7PE+0IP1p57X2HUxGyBUd4ROV/aepS/WD33kBNMlfdXt6ll73vskDC13abC1axl1eldvXxG3mq5idbyJ9NylcUoS0hS7UFsL0V5Y87sTWBZ8wAgQundGwuEQ+LIiZQ== X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapsmtpgw01;PTR:unknown-60-83.xilinx.com;CAT:NONE;SFS:(136003)(346002)(39860400002)(396003)(376002)(46966005)(336012)(8676002)(9786002)(82310400002)(356005)(478600001)(2906002)(316002)(81166007)(83380400001)(426003)(82740400003)(47076004)(70586007)(44832011)(8936002)(7696005)(2616005)(70206006)(1076003)(186003)(5660300002)(4326008)(6666004)(26005)(36756003);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2020 01:58:15.7115 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d32f913c-e99d-4747-47e2-08d84a2ca997 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-AuthSource: BL2NAM02FT051.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB5559 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add ZynqMP firmware ioctl enums for RPU configuration. Signed-off-by: Ben Levinsky --- v3: - add xilinx-related platform mgmt fn's instead of wrapping around function pointer in xilinx eemi ops struct v4: - add default values for enums --- include/linux/firmware/xlnx-zynqmp.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index 5968df82b991..bb347dfe4ba4 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -104,6 +104,10 @@ enum pm_ret_status { }; enum pm_ioctl_id { + IOCTL_GET_RPU_OPER_MODE = 0, + IOCTL_SET_RPU_OPER_MODE = 1, + IOCTL_RPU_BOOT_ADDR_CONFIG = 2, + IOCTL_TCM_COMB_CONFIG = 3, IOCTL_SD_DLL_RESET = 6, IOCTL_SET_SD_TAPDELAY, IOCTL_SET_PLL_FRAC_MODE, @@ -129,6 +133,21 @@ enum pm_query_id { PM_QID_CLOCK_GET_MAX_DIVISOR, }; +enum rpu_oper_mode { + PM_RPU_MODE_LOCKSTEP = 0, + PM_RPU_MODE_SPLIT = 1, +}; + +enum rpu_boot_mem { + PM_RPU_BOOTMEM_LOVEC = 0, + PM_RPU_BOOTMEM_HIVEC = 1, +}; + +enum rpu_tcm_comb { + PM_RPU_TCM_SPLIT = 0, + PM_RPU_TCM_COMB = 1, +}; + enum zynqmp_pm_reset_action { PM_RESET_ACTION_RELEASE, PM_RESET_ACTION_ASSERT, -- 2.17.1