From patchwork Fri Jul 10 08:52:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 1326574 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=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=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=W0fDz3ff; 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 4B36Kc6L1yz9sRK for ; Fri, 10 Jul 2020 18:54:12 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DA686821AC; Fri, 10 Jul 2020 10:53:24 +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="W0fDz3ff"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7C31B8218A; Fri, 10 Jul 2020 10:53:12 +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-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) (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 8D90A8217D for ; Fri, 10 Jul 2020 10:53:07 +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-pg1-x543.google.com with SMTP id e18so2242567pgn.7 for ; Fri, 10 Jul 2020 01:53:07 -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=NfinMLhBk7U6DMcytBswmGL3BZ5KLNGO8omo/tqhM8o=; b=W0fDz3ffABKUtNFZqbgRiwRWni0ah9ykgbruvskfTDhG7z8HJFATUfdMxLk6Knzdf/ B7VVKpKiLh+WGudTlDiJdXU6+z+d/Ebk+GQskImpV/RLFh0QK9WRlADE91Tr0LhG09Al SIKH8YZb0aWX9PVLLa/Ri5LkhyiFnI80Wxdmw= 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=NfinMLhBk7U6DMcytBswmGL3BZ5KLNGO8omo/tqhM8o=; b=JbmgXKNIiuvTiav8CiD9jqrfy3VmF3XTzjumEVTFGjzCueRMPODcJz5x4DHnuU2Gfb d+HeEq6v7Vwmpu8BERVGSWjS5pxmKoND2wqTfqFG/6KjtsiPv7i2SlolVoa3kzzWWcEs BjwjFA4onkMMfiJ0HKo1C2YVs352bPDtUmfwLgm7ireH1BEJ2EVBdYCm8bkRDDBabeXu XuwzPW3d7e6ztGNu1eZnSBEvTtQOPQ6JqU6/i9v0xjIug9UxgFZkmg4L06vSQC3+Vab6 i9dKdhImC+rP05iDZ04WifzlQBSdlVYxTzj17jqZEN5ofNpYJlmPOWSZ1NgtK5k5SL2L MpCQ== X-Gm-Message-State: AOAM530pLFnrwtYIkYBsQ6ekXqLHBZnAwnegu+flkzAaVAotmjGVUMyl SnmTUHE04M/FXS+DmX2tm8ScbGyMqwe3a5cuX3gYXKPejWDcCgdXSMClU7q8IHh0vNk3mW+CoJf 7OrbvoOqFMW8AD8rGR3vMlHK9HL7tpeEHNL6CHrvVwwIF28x32oDX+cpUjo72HFH3jC18UntdmW LhYUo= X-Google-Smtp-Source: ABdhPJxZj98X6DK7Nqfi5Y6U3dA21VPhVdKtHwEHM2bkQFhP3BGa+n3k0bcD3Zc0K0YAoyrZ6xzHJA== X-Received: by 2002:a63:db18:: with SMTP id e24mr52149679pgg.192.1594371185368; Fri, 10 Jul 2020 01:53:05 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id k26sm5145914pgi.16.2020.07.10.01.53.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 01:53:04 -0700 (PDT) From: Rayagonda Kokatanur To: u-boot@lists.denx.de, Simon Glass , Marek Vasut , Bharat Gooty , Peter Tyser , Thomas Fitzsimmons Cc: Rayagonda Kokatanur Subject: [PATCH v4 07/15] board: ns3: program GIC LPI tables Date: Fri, 10 Jul 2020 14:22:12 +0530 Message-Id: <20200710085220.32730-8-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710085220.32730-1-rayagonda.kokatanur@broadcom.com> References: <20200710085220.32730-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 --- Changes from v3: -Address review comments from Simon, Use dt and a UCLASS_IRQ to get gic details instead of passing as arguments to function gic_lpi_tables_init(). 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 1221f26ddc..e7896f8e11 100644 --- a/board/broadcom/bcmns3/ns3.c +++ b/board/broadcom/bcmns3/ns3.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -88,3 +89,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 */