From patchwork Fri Feb 14 05:34:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wasim Khan X-Patchwork-Id: 1237850 X-Patchwork-Delegate: priyanka.jain@nxp.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=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=WVBEkUev; 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 48Jhst5MGrz9s29 for ; Fri, 14 Feb 2020 16:35:14 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 25CC881253; Fri, 14 Feb 2020 06:35:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.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=nxp.com header.i=@nxp.com header.b="WVBEkUev"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0E91F81253; Fri, 14 Feb 2020 06:34:57 +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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20630.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d00::630]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A08138121E for ; Fri, 14 Feb 2020 06:34:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=wasim.khan@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SB30jOYIqsVIK+fkSls5D6F51OAFQI4K/doYIsMxLS0gW2EKz2seaI9p9DAX8xJZlbennkx6jDL3HUOQD4mkWZAGXfuFiuhR6lVLJTP6BBtYI4RtPXBv7b3Aq+PcSbEzpw/KFZ0UglSLu5cIibdHejKJq0WygcFDc11YMPKvkilnbp5WCrpUfRpAVyiuFpwgS2rjXSghcTHvnNv22AekAm89KPVC3DKKDfkMeUwfjhl0FDtw8NJXJzlNkBjJR7nXlA8l5uwMcltzKamGUIeBvfjSZkkSM6IbsS1kfi7rLrkKPfyjTRNFKQE1swoEYYiSIdROih5jX1aBWHQg+IjrYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=znT0BnZFB0aEYp8UGhWXSxTicIVqKqKu3FKk19Wkbh4=; b=bLJriJur5GZqkbVnVIS3HHmFuD4OgzbFbyPAelsOegbfki0pPNMUEyR9YitoXbpVVTICox0NrYIYDKG+OHXBkk0MmnzTMisXdpxBvoa9I1OndlN5JlgeFzsP6WFjBjGeh+FPHNa2iv9ibOLsV8ur94h4AouJQoqKGkp4nIooBKemPP3WntKOVcGDtOX4sTvNb4h6OGxh79OsxXusMTVfxWTVNukkVLejRCsTIhgJclnffzIs9VyJ89Zvz0AdtK2gnrCHJspAM/oLmi5Ph8vLvBeO2iAN8PqHAGJFEPmqH6hEoRvaSutSf0OfrtGLK46s6ClSWQl99zKVNhuXUlShng== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=znT0BnZFB0aEYp8UGhWXSxTicIVqKqKu3FKk19Wkbh4=; b=WVBEkUevS09zHgeyc2PuUjMP0LcjKcJpJ5zbKv73QwP9qqs4VkmaC8Y2Ji6tvbGpQFX0qbA482EEs/+c6UEniEYmkegO1e5fwrxTaCqdBtboZfEi69DlNRltohjy45pJuPEjHIFuTTLoegVW439lZti4NUA1VkjThZwlrfJrybU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=wasim.khan@nxp.com; Received: from VE1PR04MB6702.eurprd04.prod.outlook.com (20.179.234.141) by VE1PR04MB6559.eurprd04.prod.outlook.com (20.179.235.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.21; Fri, 14 Feb 2020 05:34:50 +0000 Received: from VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::cd7:c03a:ccb6:7aca]) by VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::cd7:c03a:ccb6:7aca%7]) with mapi id 15.20.2729.025; Fri, 14 Feb 2020 05:34:50 +0000 From: Wasim Khan To: priyanka.jain@nxp.com, udit.agarwal@nxp.com, pankaj.bansal@nxp.com Cc: u-boot@lists.denx.de, Wasim Khan , Manish Tomar Subject: [PATCH 1/3] board: fsl: lx2160a: Program GIC LPI configuration table Date: Fri, 14 Feb 2020 11:04:34 +0530 Message-Id: <1581658476-12611-2-git-send-email-wasim.khan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1581658476-12611-1-git-send-email-wasim.khan@nxp.com> References: <1581658476-12611-1-git-send-email-wasim.khan@nxp.com> X-ClientProxiedBy: SGBP274CA0001.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::13) To VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) MIME-Version: 1.0 Received: from lsv03032.swis.in-blr01.nxp.com (14.142.151.118) by SGBP274CA0001.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2729.22 via Frontend Transport; Fri, 14 Feb 2020 05:34:48 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [14.142.151.118] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7d36bba9-9dc1-4ead-8a3c-08d7b10f9c94 X-MS-TrafficTypeDiagnostic: VE1PR04MB6559:|VE1PR04MB6559: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1148; X-Forefront-PRVS: 03137AC81E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(396003)(376002)(346002)(39860400002)(366004)(189003)(199004)(66946007)(6666004)(66476007)(1006002)(2906002)(86362001)(6636002)(66556008)(54906003)(5660300002)(316002)(55236004)(44832011)(81156014)(8936002)(8676002)(2616005)(81166006)(7696005)(966005)(186003)(16526019)(26005)(478600001)(52116002)(6486002)(956004)(36756003)(4326008)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6559; H:VE1PR04MB6702.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MVYpDOkWL0YiaWmeu6b2dk5ltZWnhiwIuLg918Loz3fw7YhBBMikaYI6o+/WwR9n7En8r6JWseBn9t0OladAlBqLBNlXIlwAsg6+YhyZX685iP3K6OD4mMuT/iGl5dq/Hd8kNYw1+xqdj53dEEQi8c4ogAFdFolEt3tqptkcDGwYfBKl/UyRcnDvGR0PG9oJkFx/KJeKeW2/pu+hBn4gRS/vzKNCM8i2LM5NxhGqw6W7vyZ7LENQ23TaomYXkEV/8EI1DZ8+QqQTpawDjXZ/ScwusozmMDb1ar/OriVqbPbe/XHI85pxJ3SwgCQYAhSERykvlPi7hkV0RVTMhQb8Tu0c+YwmY0lefgRae7DIrObdgpFUFn8uhwmryAlxDb4rWiWybeVgArDWsDwQ7N+i4WHTRq1h8/EoDVLO5U1U5Zrp3L+YoGMQ/tNCBn2a1c6gov2wXID+BnzyChAufx+RB/4cCjKDmjowaz1DPJSX5kLewoWdYNkDqW54X3L2N1dHG0e/EWgG4G3eOXhcxBplWXy38ptJdvjIl32c/nmb7lx6V6NomtkvLDkaowgRs/gC2p3CLkN8Zt2dMNxnkQ84FQ== X-MS-Exchange-AntiSpam-MessageData: XDyEzVsfGLK31ejWccVQCFiOLRPjYiOKqMYO2f22FNffLZnoxGje5ns0/SBj1jUixsu+cwqy1t/V0V+WsIrSDclRDiakCnGf6/7Cp9foJk4Nz4p66HDMSvVkCv2+Bdh3WzDUy6uZWQne3cRVG3s0Hg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d36bba9-9dc1-4ead-8a3c-08d7b10f9c94 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Feb 2020 05:34:50.7499 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /tvtmj74ktqvF5LNZOV9+UNROFAiy8G3/z2XIuIL8+AFZqDZEUSzU3GrGuxNnbQC6SQDhjgING7FoFGfdiNvFA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6559 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.1 at phobos.denx.de X-Virus-Status: Clean Program GIC LPI configuration table: 1. Redistributor PROCBASER configuration table (which is common for all redistributors) 2. Redistributor pending table (PENDBASER), for all the available redistributors. Signed-off-by: Manish Tomar Signed-off-by: Wasim Khan --- This patch has dependency on patch: https://patchwork.ozlabs.org/patch/1237847/ board/freescale/lx2160a/lx2160a.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c index 103b0cc..d8753b1 100644 --- a/board/freescale/lx2160a/lx2160a.c +++ b/board/freescale/lx2160a/lx2160a.c @@ -29,11 +29,14 @@ #include "../common/vid.h" #include #include +#include +#include #ifdef CONFIG_EMC2305 #include "../common/emc2305.h" #endif +#define GIC_LPI_SIZE 0x200000 #ifdef CONFIG_TARGET_LX2160AQDS #define CFG_MUX_I2C_SDHC(reg, value) ((reg & 0x3f) | value) #define SET_CFG_MUX1_SDHC1_SDHC(reg) (reg & 0x3f) @@ -628,7 +631,6 @@ void board_quiesce_devices(void) #endif #ifdef CONFIG_OF_BOARD_SETUP - int ft_board_setup(void *blob, bd_t *bd) { int i; @@ -639,6 +641,7 @@ int ft_board_setup(void *blob, bd_t *bd) u64 mc_memory_base = 0; u64 mc_memory_size = 0; u16 total_memory_banks; + u64 gic_lpi_base; ft_cpu_setup(blob, bd); @@ -658,6 +661,11 @@ int ft_board_setup(void *blob, bd_t *bd) size[i] = gd->bd->bi_dram[i].size; } +#ifdef CONFIG_GIC_V3_ITS + gic_lpi_base = gd->arch.resv_ram - GIC_LPI_SIZE; + gic_lpi_tables_init(gic_lpi_base, cpu_numcores()); +#endif + #ifdef CONFIG_RESV_RAM /* reduce size if reserved memory is within this bank */ if (gd->arch.resv_ram >= base[0] &&