From patchwork Wed Jul 15 17:19:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 1329711 X-Patchwork-Delegate: trini@ti.com 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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) 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=VzamjAQO; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4B6PL81ZMPz9sTM for ; Thu, 16 Jul 2020 03:21:04 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA63881BEE; Wed, 15 Jul 2020 19:20:08 +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="VzamjAQO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B345D81BF0; Wed, 15 Jul 2020 19:19:57 +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-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (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 291FE81BA2 for ; Wed, 15 Jul 2020 19:19:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=rayagonda.kokatanur@broadcom.com Received: by mail-wr1-x443.google.com with SMTP id f7so3566798wrw.1 for ; Wed, 15 Jul 2020 10:19:55 -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=3zS7UrYRtqniUvrMw8JY7hQ8blgEDIr4DFbDm/xZYc8=; b=VzamjAQOaIRHk/e3ti/2WjGH6Fkww/2Vr2xR6cGM2rSh9/HRZbn9gyFDu6E4S1r1zl iWNLGunhd232vGNeQh94AbNX3fm6w+Oz/4BiHUOxc29dkIGQEwPcHdvgXTjZSPmkn3Eo IJCJ0ll+FBq5oxGiZmEcCrlW/pRn0mt4K/Jt0= 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=3zS7UrYRtqniUvrMw8JY7hQ8blgEDIr4DFbDm/xZYc8=; b=XsH7vlON9d9nAaFd463KC334M2fEYGBAVdtY2P30/slZjn8oaSQ2rTtE7dQUnqWhgV Xknra6N6+Nign1nBCVN4CKNapJ827NhWbVm/DIrWZqI40eNwFj9MGZWJM+pRp4wLGC2e OFqam/npJEnB35Vtq6br7U9x14thcrbiVpEbqXisb0NluNkrXsN1XgsdbXY6mDEzC2Bx EIghTdEiudrOmh43vwhNB+g6wqsxdgotcGLFazI7RBr9cvK1LQPqqKlNpcV7yZD6MoJn NYWpapw4tppGsLstplPl7PdQoiOUc15AOTwLYg2cIv5gc0Tr83VMMK8aVvNRxXBtBlVe cFUQ== X-Gm-Message-State: AOAM532HzWOlfsh7HpP4APTxF2m+am2raDbKArFmoC7N896hO/W1//iC W+aMW07RFvGOGlga69gI85h8D4xgMVIeFLidwvIOG0XFiHNW0s8aVUY8YEfrjaV6PS98owowaQe vQeokJ1elWDY0ZVry65B+jU1YLNMRJCB6/aQ2yuASdn0ynvKBlkcAMe1bxXTqEsex3mogwThNtu CD3Do= X-Google-Smtp-Source: ABdhPJylIENAzBmNwtr1tonm1EHqQa1eg8g7u7bV/b1+qBHnGFmRpOxldjvuu/j+EQtj8dS37VpeYQ== X-Received: by 2002:adf:e6cb:: with SMTP id y11mr393278wrm.282.1594833594017; Wed, 15 Jul 2020 10:19:54 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id y6sm4328870wrr.74.2020.07.15.10.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 10:19:53 -0700 (PDT) From: Rayagonda Kokatanur To: u-boot@lists.denx.de, Simon Glass , Marek Vasut , Bharat Gooty , Thomas Fitzsimmons Cc: Rayagonda Kokatanur Subject: [PATCH v5 07/15] board: ns3: program GIC LPI tables Date: Wed, 15 Jul 2020 22:49:01 +0530 Message-Id: <20200715171909.25868-8-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200715171909.25868-1-rayagonda.kokatanur@broadcom.com> References: <20200715171909.25868-1-rayagonda.kokatanur@broadcom.com> 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 U-boot programs the GIC LPI configuration tables and enables the LPI table. Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- board/broadcom/bcmns3/ns3.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/board/broadcom/bcmns3/ns3.c b/board/broadcom/bcmns3/ns3.c index 6a72e28494..feb940d9a9 100644 --- a/board/broadcom/bcmns3/ns3.c +++ b/board/broadcom/bcmns3/ns3.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -91,3 +92,12 @@ void reset_cpu(ulong level) psci_system_reset(); } } + +#ifdef CONFIG_OF_BOARD_SETUP +int ft_board_setup(void *fdt, bd_t *bd) +{ + gic_lpi_tables_init(); + + return 0; +} +#endif /* CONFIG_OF_BOARD_SETUP */