Message ID | 20200427105207.5659-50-rayagonda.kokatanur@broadcom.com |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=eyyIrc4K; 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 499kbk6PQLz9sSK for <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2020 22:29:06 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9B80381E8E; Mon, 27 Apr 2020 14:22:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=broadcom.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=broadcom.com header.i=@broadcom.com header.b="eyyIrc4K"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AE8B181E0F; Mon, 27 Apr 2020 13:06:28 +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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0: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 3E18F81E0F for <u-boot@lists.denx.de>; Mon, 27 Apr 2020 13:06:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rayagonda.kokatanur@broadcom.com Received: by mail-pl1-x642.google.com with SMTP id t4so6855506plq.12 for <u-boot@lists.denx.de>; Mon, 27 Apr 2020 04:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4HFRj+jM7Hclr+P6J7ZbNHCsHzlFx8fPApnp6TUSZ90=; b=eyyIrc4KjIsP0MUdilVs3ESXfahvknGMX/2QZa4ec6vfndlA6a6YOdXG9gqI+cRskP 39JI7fhHuotDeNVtWbcQnvQXKCTknK4yQz8LL1mZi4dk75rz5v0xI9KopF67elGi51wf kpyVD5b/UcKAoNQRXGTftcimGGp2KCPxr+t2U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4HFRj+jM7Hclr+P6J7ZbNHCsHzlFx8fPApnp6TUSZ90=; b=crEE3xJl3IRTczZz7w6lrGpU8E8ZHKkwKdKR2tq8WIdIcMoZAcYxol+0kU5opKrnnK sgzNjpxwlEEJbMTkuTXoTKbN2lwEzi70Dyun7QcnG8ua5jk2vYC9+b1ebw5Schs0Isg9 RJ3HZthbJwOh3MoGpIfsxYaRh3+CydhUO2YScieAatdbA2ChJy7bp2OrWGyLBhy9Q54n T5d/92rPDl+K81iBjXWwbCVHxSh3FFYHscxwXQRkgmFrfAx7K8bnYUxsK7q7NP3yBul4 7/QXW4WmoefznOIsVxeO6dCuj/FAKoOfa0yJVDu5bxG9e2DuSfTSVz8OoIH9TNvEoIKe fN7g== X-Gm-Message-State: AGi0Pua6vqTb6ksTUwrzHNrj50SQ675rLYNNQ8A8Fvo2+YvVYb+prADC /0Rn5gefqBpiPdHgyjvUZytaGSazuXwsB955TIMxtutzNKJhUrMUfHqHlid6NzQycCQr/wUMg1H 0n5MIzEsdiRTbnPDUaR6tH6VfSVEETFfWcpdQfY5GzKAJoCPSDDUuIy7hL+2PY4JS7X4pxAsLtu r4lhBgPks6 X-Google-Smtp-Source: APiQypJgW8kwvfh8guaX1I6XwlVvfUN7kPs9ThTrTOytdCahF5kbtqEqk5SKe6tgery7gp66uvGjtw== X-Received: by 2002:a17:902:b711:: with SMTP id d17mr22871655pls.333.1587985583210; Mon, 27 Apr 2020 04:06:23 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id u3sm11996430pfn.217.2020.04.27.04.06.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2020 04:06:22 -0700 (PDT) From: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> To: u-boot@lists.denx.de, Simon Glass <sjg@chromium.org>, Kever Yang <kever.yang@rock-chips.com>, Michal Simek <michal.simek@xilinx.com>, Jagan Teki <jagan@amarulasolutions.com>, Marek Vasut <marex@denx.de>, Fabio Estevam <festevam@gmail.com>, Baruch Siach <baruch@tkos.co.il>, Troy Kisky <troy.kisky@boundarydevices.com>, Josip Kelecic <josip.kelecic@sartura.hr>, Priyanka Jain <priyanka.jain@nxp.com>, Biwen Li <biwen.li@nxp.com>, Jason Li <jason.li@cortina-access.com>, Philippe Reynes <philippe.reynes@softathome.com>, Eddie James <eajames@linux.ibm.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Sam Protsenko <joe.skb7@gmail.com>, Lukasz Majewski <lukma@denx.de>, Miquel Raynal <miquel.raynal@bootlin.com>, Ramon Fried <rfried.dev@gmail.com>, Anup Patel <Anup.Patel@wdc.com>, AKASHI Takahiro <takahiro.akashi@linaro.org>, Patrice Chotard <patrice.chotard@st.com>, Eugeniu Rosca <roscaeugeniu@gmail.com>, Joe Hershberger <joe.hershberger@ni.com>, Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>, Boris Brezillon <bbrezillon@kernel.org>, Simon South <simon@simonsouth.net>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Marek Bykowski <marek.bykowski@gmail.com>, Lokesh Vutla <lokeshvutla@ti.com>, Patrick Delaunay <patrick.delaunay@st.com>, Rajesh Ravi <rajesh.ravi@broadcom.com>, Abhishek Shah <abhishek.shah@broadcom.com>, Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>, Bharat Kumar Reddy Gooty <bharat.gooty@broadcom.com>, Srinath Mannam <srinath.mannam@broadcom.com>, Pramod Kumar <pramod.kumar_1@nxp.com>, Ray Jui <ray.jui@broadcom.com>, Vikas Gupta <vikas.gupta@broadcom.com>, Trac Hoang <trac.hoang@broadcom.com>, Corneliu Doban <cdoban@broadcom.com>, Sheetal Tigadoli <sheetal.tigadoli@broadcom.com> Cc: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> Subject: [PATCH v1 49/49] board: ns3: check chimp handshake status Date: Mon, 27 Apr 2020 16:22:07 +0530 Message-Id: <20200427105207.5659-50-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200427105207.5659-1-rayagonda.kokatanur@broadcom.com> References: <20200427105207.5659-1-rayagonda.kokatanur@broadcom.com> X-Mailman-Approved-At: Mon, 27 Apr 2020 14:18:25 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
add support for broadcom NS3 soc
|
expand
|
diff --git a/board/broadcom/bcmns3/ns3.c b/board/broadcom/bcmns3/ns3.c index e8f1d1b199..791baa904e 100644 --- a/board/broadcom/bcmns3/ns3.c +++ b/board/broadcom/bcmns3/ns3.c @@ -12,6 +12,7 @@ #include <asm/gic-v3.h> #include <asm/system.h> #include <dm/device.h> +#include <brcm/chimp.h> #include <dm/uclass.h> #include <dt-bindings/memory/bcm-ns3-mc.h> #include <fdtdec.h> @@ -240,10 +241,21 @@ static int start_wdt(void) int ft_board_setup(void *fdt, bd_t *bd) { - gic_lpi_tables_init(BCM_NS3_GIC_LPI_BASE, MAX_GIC_REDISTRIBUTORS); + u32 chimp_hs; + gic_lpi_tables_init(BCM_NS3_GIC_LPI_BASE, MAX_GIC_REDISTRIBUTORS); mem_info_parse_fixup(fdt); + /* + * check for chimp handshake status. 0 timeout value will actually + * fall to default timeout value + */ + chimp_handshake_status_optee(0, &chimp_hs); + if (chimp_hs == CHIMP_HANDSHAKE_SUCCESS) + printf("ChiMP Handshake successful\n"); + else + printf("ERROR: ChiMP Handshake status 0x%x\n", chimp_hs); + start_wdt(); return 0;
Add support to check chimp handshake status. Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> --- board/broadcom/bcmns3/ns3.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)