From patchwork Fri Sep 27 13:35:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1168521 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="nb9yA00N"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46ftH63K2tz9sPY for ; Fri, 27 Sep 2019 23:41:06 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id CD036C21FDE; Fri, 27 Sep 2019 13:35:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 42C12C21FC1; Fri, 27 Sep 2019 13:35:47 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BAB6FC21FC0; Fri, 27 Sep 2019 13:35:33 +0000 (UTC) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by lists.denx.de (Postfix) with ESMTPS id 5EDB4C21FB9 for ; Fri, 27 Sep 2019 13:35:31 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id i18so2744085wru.11 for ; Fri, 27 Sep 2019 06:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=KXJaJOL3MXV+1LbiKWDkkTlqaOHESTui3pUW6KalQoM=; b=nb9yA00Neug0erLzU09w2xDcI+dlYYdr/k5RzdtnWCzaJFabp2GdWFiJhqlNaE0Lix 9I8fs7JtnmPPi9PaGqwkYmqVqZYdmKbigB4ryNiB44kjO1OdPFLiEZUfXAQQh3IG8FUa NsNjtRzZPk4nhB8/tZ1NDottstTjZzGl9H9hODQvsXd0khyn7kkot8H5dZApP+nQgVLN V50egcVlBWbvJ60bfS7sEe2AQ4/2mu+dIgdf99gndSZANKITiKEBO4JgSDy/qVtAczfI J+KlUXjQmIBi9YDrqV8g5srTNYEbOSZI7Y5fP6h1BY1M0buZaJmcX/v8N2E3lBltS7oY KI1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=KXJaJOL3MXV+1LbiKWDkkTlqaOHESTui3pUW6KalQoM=; b=lyDrTNI1fBC99PNlKYNEh9PwPg2QhfehLA7l3c4zBzlCovgu3Oz8IgrzQ2/xKO2IZz 2p7tCWDJwwcfeXWolijSgJuQo68WuucaCR+aay3LR5rvbugq1FHRkAghaby1q2juldaa PWT/Kdat3O09fsMSIuSHD68Ki9qHpvG6StU9+iUkKdqui8asvw1o20n7XMK+kYOx49uF 5sQc5behXNUnfXpO9x2WM8c3/ZKdWjzrKUdMJsxKSn51ylT/Lg1yh0BvBPOVkhprmyPe KzrjUs2HljUA9YxODmS8S6+BzyY4PLBQvPux/M2CJU2Ptdb56MldpOIm98mJBrkpsi8A FkSA== X-Gm-Message-State: APjAAAUvRj7abMwnnGbk7Sj7k+25eq/E2DGDm4ZpKvqemRh0EfQ2pxX6 FqjOUCXma37wPe400Try52dWBDzJZfekYw== X-Google-Smtp-Source: APXvYqy6FAKs9L8cju9LO7TFILoGIEExnikem9rN6clY2Nw1JU4AKuBpgrHj7X317MVu837CNvYVcw== X-Received: by 2002:adf:ec44:: with SMTP id w4mr2892206wrn.251.1569591330492; Fri, 27 Sep 2019 06:35:30 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id t6sm10592499wmf.8.2019.09.27.06.35.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Sep 2019 06:35:29 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Date: Fri, 27 Sep 2019 15:35:01 +0200 Message-Id: <2650fcd70e642a1ea02e160d1aca11f65f8a7955.1569591296.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Cc: ibai.erkiaga-elorza@xilinx.com, luca@lucaceresoli.net Subject: [U-Boot] [PATCH 10/13] arm64: zynqmp: remove old fw version function X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Ibai Erkiaga Removes the old function to get the firmware version. Signed-off-by: Ibai Erkiaga Signed-off-by: Michal Simek --- arch/arm/mach-zynqmp/cpu.c | 23 ------------------- arch/arm/mach-zynqmp/include/mach/sys_proto.h | 1 - 2 files changed, 24 deletions(-) diff --git a/arch/arm/mach-zynqmp/cpu.c b/arch/arm/mach-zynqmp/cpu.c index f28b964a1560..bb21cbcadf69 100644 --- a/arch/arm/mach-zynqmp/cpu.c +++ b/arch/arm/mach-zynqmp/cpu.c @@ -180,29 +180,6 @@ int __maybe_unused invoke_smc(u32 pm_api_id, u32 arg0, u32 arg1, u32 arg2, return regs.regs[0]; } -unsigned int __maybe_unused zynqmp_pmufw_version(void) -{ - int ret; - u32 ret_payload[PAYLOAD_ARG_CNT]; - static u32 pm_api_version = ZYNQMP_PM_VERSION_INVALID; - - /* - * Get PMU version only once and later - * just return stored values instead of - * asking PMUFW again. - */ - if (pm_api_version == ZYNQMP_PM_VERSION_INVALID) { - ret = invoke_smc(ZYNQMP_SIP_SVC_GET_API_VERSION, 0, 0, 0, 0, - ret_payload); - pm_api_version = ret_payload[1]; - - if (ret) - panic("PMUFW is not found - Please load it!\n"); - } - - return pm_api_version; -} - static int zynqmp_mmio_rawwrite(const u32 address, const u32 mask, const u32 value) diff --git a/arch/arm/mach-zynqmp/include/mach/sys_proto.h b/arch/arm/mach-zynqmp/include/mach/sys_proto.h index 658974445417..27603a60ff8f 100644 --- a/arch/arm/mach-zynqmp/include/mach/sys_proto.h +++ b/arch/arm/mach-zynqmp/include/mach/sys_proto.h @@ -48,7 +48,6 @@ unsigned int zynqmp_get_silicon_version(void); void handoff_setup(void); -unsigned int zynqmp_pmufw_version(void); int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value); int zynqmp_mmio_read(const u32 address, u32 *value); int invoke_smc(u32 pm_api_id, u32 arg0, u32 arg1, u32 arg2, u32 arg3,