From patchwork Wed Aug 5 11:23:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1341202 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.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.a=rsa-sha256 header.s=20150623 header.b=A7Dc6oYe; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 ozlabs.org (Postfix) with ESMTPS id 4BM8Rc56Zyz9sR4 for ; Wed, 5 Aug 2020 21:25:00 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A5E3B82188; Wed, 5 Aug 2020 13:24:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (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.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="A7Dc6oYe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 973E282130; Wed, 5 Aug 2020 13:24: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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) (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 4ECAF81B65 for ; Wed, 5 Aug 2020 13:24:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x642.google.com with SMTP id o18so45969545eje.7 for ; Wed, 05 Aug 2020 04:24:07 -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 :mime-version:content-transfer-encoding; bh=uAmVLlNnltaClPCrSd5TFKJ7cY+CU0m84olj4asbBm4=; b=A7Dc6oYescZcKgBhCxQbu0Zdelu/IZEUjqQwr0qP2O/TxRDZLR17GmtKkcP1l6X/IJ HTpJULCJrEZ5jTxbo+nEGFkgbd/11tLwTvcodsiH4l3yWiS/DrT6VKCa3zPR/fd85cmz jcPDsQOMhonSIuq2Ck6WpyoM25IfBQ7jz4Ere+8WErv1AnxZJ9BgPOi/0298XeGF5KsS 1QwOD97EyLMmjsFHtBOJEMi3paHt4DZARvbSSdKRTnvX6Id6puYnITJfqx+//1Dx4E4I IG0UaxNxgBgu9hOc66xkxWJ6fKufRMA0z1DxRqM2PdHs9s59vhXbR6sQBIsowgdIkyBP fRFw== 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:mime-version:content-transfer-encoding; bh=uAmVLlNnltaClPCrSd5TFKJ7cY+CU0m84olj4asbBm4=; b=nUCMIUMPlTKDjfevY+0Pj5Z9C65XDpQZS7FsWtNjrMVWO9+rL8puQzYRgacfhljdMY c+IAUXBFXOrTS2+i3m26ZnA4m8bQfNaljq6H+OV3qdENlJQHE+o6HAFv0TRieLaUeraB a/4dvb3WyR/vNOnI5AccBsRXFAozD1V3+73q4gtiibN/gLx4tnpfQp7+Op0SIABAnTDy 7X+jbQ8c4+cjxLlPNJUGD3h1QEOriRmAtQuKtmc10wkAOYsueBefeC+zb5GMQXm+cNF1 ueKk00ucK9p8koD+4CSOsY73aqxCqsYxAOnKSbjygiZAjBsCUKgwfuBt6f8BLRC/L1O/ CglA== X-Gm-Message-State: AOAM533r6+C7gh+iue91t8UwswsLb2rUrK8SHNOWFmuSTW9CZcp2UAuV xNFNyfDuyFA0UbG9BWKpNZCYp3ySeyRVsQ== X-Google-Smtp-Source: ABdhPJw0wuArxxdz+q8YGPomQ1JIsfG3YLWmvLfB7gyxRYPQgLQ7bnIPIPzQXwwHq6EL9sN24rwZiw== X-Received: by 2002:a17:906:a209:: with SMTP id r9mr2793092ejy.413.1596626646751; Wed, 05 Aug 2020 04:24:06 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id ov10sm1341602ejb.6.2020.08.05.04.24.06 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Aug 2020 04:24:06 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Ibai Erkiaga Subject: [PATCH 4/8] xilinx: zynqmp: get chip ID at EL3 Date: Wed, 5 Aug 2020 13:23:51 +0200 Message-Id: X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean From: Ibai Erkiaga Modify the board init function to allow getting the chip ID when U-Boot proper is executed at EL3. Signed-off-by: Ibai Erkiaga Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index cf5febc4c41c..2b95a61dd0aa 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -362,12 +362,10 @@ int board_init(void) #if defined(CONFIG_FPGA) && defined(CONFIG_FPGA_ZYNQMPPL) && \ !defined(CONFIG_SPL_BUILD) || (defined(CONFIG_SPL_FPGA_SUPPORT) && \ defined(CONFIG_SPL_BUILD)) - if (current_el() != 3) { - zynqmppl.name = zynqmp_get_silicon_idcode_name(); - printf("Chip ID:\t%s\n", zynqmppl.name); - fpga_init(); - fpga_add(fpga_xilinx, &zynqmppl); - } + zynqmppl.name = zynqmp_get_silicon_idcode_name(); + printf("Chip ID:\t%s\n", zynqmppl.name); + fpga_init(); + fpga_add(fpga_xilinx, &zynqmppl); #endif if (current_el() == 3)