From patchwork Wed Feb 23 14:01:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1596703 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=NzfbZkGq; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4K3d5Q2vW5z9sG7 for ; Thu, 24 Feb 2022 01:02:18 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DD29A83CB4; Wed, 23 Feb 2022 15:01:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="NzfbZkGq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E436983C99; Wed, 23 Feb 2022 15:01:42 +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=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0035683B58 for ; Wed, 23 Feb 2022 15:01:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x635.google.com with SMTP id lw4so52657685ejb.12 for ; Wed, 23 Feb 2022 06:01:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jeREij0BHLswJxGJczoCMnpGsF92H4GlBNFvcMGmvr4=; b=NzfbZkGqVw+hbg2JUN7AmGLQwEqS55M54iRa81o345qZ2Nvqw8qgTCLx/lnuvJmF1g nc2xgMNi/CEm+bpokSgm9Ky8HbhFueC8fEbOVY5pXxeXcmhq+uS2UviL2PV+XhYL5nN9 WxYeUsj9kw2gwS49ovu9YK6faoG7gEr/z9SmOOkj+rjKuXgcZjOHfRtFzWt0f2mTyBwK jTkKs0kvtyihNilvJjBoeOeoY5LOX3V0Ftc31XpEhX4jUV7ZulGmzToWTS4TtlqruFmd A8kFkuY9tzqGtU4DAaU4nZAvS2DssfNVrAfe7/hZkfYQ64Oy5qmX8wqAtnlrio93yHH3 j01w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=jeREij0BHLswJxGJczoCMnpGsF92H4GlBNFvcMGmvr4=; b=DLRdHueo0iX3rV42OSKJ36EiesCPOQCE34BhVRoBqwWwrGkSqD4kkJfKUsCvRU/t5z 7sfbpyGap8LQxXFTtl1mr1HoOOMPRBjxAZP3s8o72bi30dnPjODW6Z4FOvNR+fhhZDlS mWS4vC4+cti5sUdVNzRJQHvjIqgaUQ+GHNP+byuDbuFi2uhoY+kcObRTfpEJO36RT8et ehtVzP2e1KHbZtyFeX/7B4swsBKFAMzfM/sujiKLceUCuDAboqZciPF6fi1FJ8k3V6kg lJG9Zr7LbiK/EHwJlk5zq7fGS0iD7yFInF1oyCHr+xu06f51av2oV/1gQKEp0k7NfME3 8rJA== X-Gm-Message-State: AOAM532Zl2uwL4XZOXfE3Py8kP/YAily3N0AtPEgDjJ5RsutPk8tkHu6 j54crju4m/+dEEOijt2NDgDK5shFlxQC2A== X-Google-Smtp-Source: ABdhPJzzMY8U94rbcGcefrmykhWgDvh7MmHbaopaErN3/En3F0vn0PuWiBcD2MZ93oNCDGMY5PCE8Q== X-Received: by 2002:a17:906:d20a:b0:69e:cd43:bbd with SMTP id w10-20020a170906d20a00b0069ecd430bbdmr23195024ejz.219.1645624899305; Wed, 23 Feb 2022 06:01:39 -0800 (PST) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id eg42sm9833462edb.79.2022.02.23.06.01.38 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Feb 2022 06:01:38 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: T Karthik Reddy Subject: [PATCH] Revert "board: zynqmp: Fix for wrong AMS setting by ROM" Date: Wed, 23 Feb 2022 15:01:37 +0100 Message-Id: <215bc936e36f88d2e7c4422ec68cad6d40cb8f68.1645624892.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.5 at phobos.denx.de X-Virus-Status: Clean From: T Karthik Reddy This reverts commit dfbe492edef421de09617dc26805fc428440924e. Analog bus control register should be programmed in SPL only. This commit 3414712ba8a ("arm64: zynqmp: Writing correct value to ANALOG_BUS") is programming the same. So revert this commit. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 70b3c81f1284..bc2090941d90 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -399,9 +399,6 @@ static void print_secure_boot(void) status & ZYNQMP_CSU_STATUS_ENCRYPTED ? "" : "not "); } -#define PS_SYSMON_ANALOG_BUS_VAL 0x3210 -#define PS_SYSMON_ANALOG_BUS_REG 0xFFA50914 - int board_init(void) { #if defined(CONFIG_ZYNQMP_FIRMWARE) @@ -429,9 +426,6 @@ int board_init(void) printf("EL Level:\tEL%d\n", current_el()); - /* Bug in ROM sets wrong value in this register */ - writel(PS_SYSMON_ANALOG_BUS_VAL, PS_SYSMON_ANALOG_BUS_REG); - #if CONFIG_IS_ENABLED(FPGA) && defined(CONFIG_FPGA_ZYNQMPPL) zynqmppl.name = zynqmp_get_silicon_idcode_name(); printf("Chip ID:\t%s\n", zynqmppl.name);