From patchwork Tue Sep 10 14:34:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Cherechesu X-Patchwork-Id: 13798613 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8AB7EEDE999 for ; Tue, 10 Sep 2024 14:34:54 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.795663.1205104 (Exim 4.92) (envelope-from ) id 1so1x3-0006NU-Iw; Tue, 10 Sep 2024 14:34:41 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 795663.1205104; Tue, 10 Sep 2024 14:34:41 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1so1x3-0006NA-Di; Tue, 10 Sep 2024 14:34:41 +0000 Received: by outflank-mailman (input) for mailman id 795663; Tue, 10 Sep 2024 14:34:40 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1so1x2-0005Zc-9z for xen-devel@lists.xenproject.org; Tue, 10 Sep 2024 14:34:40 +0000 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazlp170100000.outbound.protection.outlook.com [2a01:111:f403:c201::]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id cf976920-6f81-11ef-a0b5-8be0dac302b0; Tue, 10 Sep 2024 16:34:39 +0200 (CEST) Received: from PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) by AS8PR04MB7557.eurprd04.prod.outlook.com (2603:10a6:20b:294::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.24; Tue, 10 Sep 2024 14:34:36 +0000 Received: from PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709]) by PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709%4]) with mapi id 15.20.7939.017; Tue, 10 Sep 2024 14:34:36 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: cf976920-6f81-11ef-a0b5-8be0dac302b0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CgW4wGjH35aQLv5AuPm221lwhmdA86TnBn23zotRrhsZJUtrSzu3A5ygtLp139jHEPJshSU01DXzmZT4ziiRwY/7AiggyXL9qkiUBPYXpFJhlzEnsKHGc/P0dunh7uob/toZ23cxHXX2mY9Y4QMJeE73DWAgXFRiMP/m+YqkEWrFa/7yK6wN2HcKEA7V+bHvW3iXiAZQBv/mG43UoCQGkb4X4HjK0zIgpNy5POJXOgj8+Bz27WevCbyVe/v/UzTbXYs/+0KR5Sh+1CkaXvHR7rYUjll1re6CxvJygrLOoByd1KKgKnApnqz4TVnfDTrCfVgsGjJM7CsyaymDKunm+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UO5KBFZz/KdCTUZRSQwTx6QNHVXbOXMluYbVu8Z7lic=; b=enTdU5ktxm/7Kgm/kAi9Imc49I9oTGhnzzWf5fiDZjWBqcvNTuVLjAeSF7GcUIGAQDTNzsNJctgGARaQ/+M5gH1cNCudibjDRLdXHStQpDdCuYdWZ3fPPFWLwYj1nCPvVEjDnGNv+4+PsHGBN6njku18Kt6wNAWiZOPk5GJCqB1CZ47TLfnYJXb6k1CXDN87686x8WScE3lHlkLmXK2JQWPUjcboiUvFACMHbd9g85JAq5uAgnCzWQETJEJzjADiQ3N7L6GGw4It03hK7ICAcLcR4CLmkgKZE1TTDknh66epD5HB+S8o15z0nR8rOwEjbdF7ADhc4C61yuwjXGFrog== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UO5KBFZz/KdCTUZRSQwTx6QNHVXbOXMluYbVu8Z7lic=; b=CQaPUrydyQaxJYFd2Zl4jRYC2WUoZcx26VSPdQ8N7OXOz2toIwyDC4cFvYMAsW9ggR8+XZaqWidSA0oSaGCv1twEZbTF/JWCmgfek+VbTe5tiotBW6Rc8HvX5ewbu/Ro9fwkZsnNiD4RLgsDgue1nkTGC6KLQqZ99PgZESL5UnzJPIooLMHTBDfuHQj8jhjZW5j/iizyHJAQSVPWyItZk/eGFiSLLOHNwTj9vnDxrkeZu9SJx8PVgr0CLdHrKsdgTVMKD1yFcdbMls8LCaHz3hADJm4MpQVtQ2wK8kuVRfqcioqvP2jciM2fJCtRTwN222OVQYungkr2qmEyIft3qw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; From: "Andrei Cherechesu (OSS)" To: xen-devel@lists.xenproject.org Cc: S32@nxp.com, andrei.cherechesu@oss.nxp.com, Andrei Cherechesu , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk Subject: [PATCH v1 4/5] xen/arm: Enable early printk for S32CC via LINFlexD UART Date: Tue, 10 Sep 2024 17:34:10 +0300 Message-ID: <20240910143411.178704-5-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240910143411.178704-1-andrei.cherechesu@oss.nxp.com> References: <20240910143411.178704-1-andrei.cherechesu@oss.nxp.com> X-ClientProxiedBy: AM0P190CA0019.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::29) To PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9565:EE_|AS8PR04MB7557:EE_ X-MS-Office365-Filtering-Correlation-Id: cd2c4e19-a358-487c-13bf-08dcd1a5b201 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: IC2mtPeZTGZVOhC59l/ynVrVu4QQwKAqZzx9595lKEw50k5w9yTWW2pMbHILOQboXOrCptL7v+Sjq2oMpzy619zOZTb9poYLQtB6DD2yjiK4B+12SLgA8Vrzsm0h6wRAflbUK0FAheP5WE0bk21/1Rh7ZSnCbALGDdJdr0tuzOtxpK2auezKICLT3JVNrLbSGmhMKUeFTP46hsu8p4cYkIlH3yms8aDT5n3HMiuIngjTVP/PqGJqhtLd2CSHAMZBMxwBVF7r0EmPCmfb9iUl6abhO4wW+qKHezH16KLp54TwLbFhBG0RtgtpFRMHzmqTnFmuPh3IH1zW3zmwjFEGM31VB5H+7t8elNFwV2ZuHTWA+ExHisEdinsq1285zVEXh98slLWv5186fpL8ddcdmtQVIKc7FFMEHGaALa5K/CQQY3jTfR8hDEVMHYGFRSCnJzG4wAxA2lr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look.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ML/LXXcStMqKubG+cY8AkLxMPhFajZ8MvCG3P7IZJddMGjlcXHqN9sl4xa/jZKHodyVKHlxYhOGsAxhWRD5zXgcR92cDnLxHT+xuGs7gFEVjyiHpYqlvQLCBR39enfYYoBt87om+GD2xDxFA7h3HN/sU/W5z6BanxDR/5DbMoQBjcZonnzusjbnlohSYjd1EoSBhi1ds3k4AED+woo+psJRxWdAe7Y0uQSNcCREBIpy/9/ujJ9LkQ4d0/0XKzAbatq8Yqi68Uyk4WPQ89Y29IYZbjPVCwmxhQagEGr4VTrlCmWfTm05pehATfigpvlKZQClcpnrvoxCAastXmGUW+gd5i35+7MhW2GzK58EWxvxuus9yu19z1STxc5D+RG3GRDWCk6Ty3SZaWV4zuj7rZg9kpuRSrq4T9rrjfmassN8iWcpyeVJOt8jybGRCl5iEqcVsvZT2zl9ZoEhfsQeSLnsBn4GPTPAP7rl1RKEl9Y8F+9z/t1O/9CSFnC3KRvmuu7aHb5o0bvJPPh7fqrONVi6QRBykxXCiy2FTIHufVjMNFoyog4H9T1K/igU9o10Xow4sMWq4OhpEkeEmEV2v3YPdOpgRxe1+7g5mw5wBkOsZ7zbsfYqiJPzQOmZA/gzvznxn973SprKr5SBLWivGjlun7vKkTBrJnWwK7ybhjU7UQn9tOcIHnyrd/NZDw2tq3HlK12VbBD+JwiKE7LPuJopmYIpbS+scxRrLkEF6NLfcCg+OEMSIEYPBGES7BdVHD4+Un06p5PWvSR9S+O+5WGbqNCFX+Xp8+s6g31v3yZMtSGbVeTyWNGkBgQWjWMeQDxzZEqZhXeY+zXpn5b0nbMX10P7s3BdbbmIWHYYaeNTe/YJpGnfIyqt1LJ2Mj8w0yjrTZPYp/A8VjeLx0AdCbbbd+69RbwZYehkRn2A1pXGU9I0evn4OTOuGW6dpDN+1GUoL9vU99Uj220Ik8ZCiQXHZRJwjS7CRw9huoeLuHzyQ1OzC7HEgycXemiRnOA4eeuA4ylZiuz/SFbBwR0WIvFI5vu5BJ+6+tehVu0nfQjn2rLfxnaUvw5hxsuBUymFqtR9+QIiujdVEB3FRgaRODXKBa8hc414Ck70v1fS8kknIHARcuhjD7GeYpEoQpEWUND2vlD+Td8cYXDVIBxziRiLMP49xxUefztcSicXgLooBFNRlcn7zNOSfuQFZ3wiCcMSDkAziPZRzjZk9YphjLQUvG6+W+Qv6zo5ftqsYLcKek1pVjqJZ7+aaEt+a3i/DidhiOOmyGy88m47pkyJkvNxrjg4H3mNbw7zHHf0Dis/ZZPXyaZ5E0XNUjNfLYVCw/82RdLrrkfRo3o6ENLZbbP1Z+8gEgctvZAbLWYNkTvwbMm3Y6LZq1nyZUZC32MG5V65+iEUu2qGnogkAbWSple5/VdY1ysKEvYMn1/mkEcke6xrYZW4/BaaZ8ShevD99C846fEkMgf+0rZG4P1uH5gl6Rcqu3rLXGeW9iXtGnAJWyNNsRT/7jPMRiCSUUAdhKrbgcC3g1VuD4dD1vQ2mLjwLaPpiItVDE8/b3EwjyFAEfqHg794rT+NaCvF+BcnxkikVEcnqIMGDssAIZON8KQ== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd2c4e19-a358-487c-13bf-08dcd1a5b201 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9565.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2024 14:34:36.7676 (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: MHHCRTyLG3C5uPcXwR2gFB/mHpdexSnewGmo+qQnzccqmoExVQAlG5XnL6myk+wHdWdCM9uPOtrdP1B2xTA8oWH5QlhPAP2DIHhExd3qohk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7557 From: Andrei Cherechesu Enabled the support for debug through early printk on S32CC platforms via the NXP LINFlexD UART driver. Signed-off-by: Andrei Cherechesu --- xen/arch/arm/Kconfig.debug | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/arch/arm/Kconfig.debug b/xen/arch/arm/Kconfig.debug index a309f67f90..9725f4193c 100644 --- a/xen/arch/arm/Kconfig.debug +++ b/xen/arch/arm/Kconfig.debug @@ -168,6 +168,9 @@ choice config EARLY_PRINTK_RCAR3 bool "Early printk with SCIF2 on Renesas R-Car Gen3 processors" select EARLY_UART_SCIF + config EARLY_PRINTK_S32CC + bool "Early printk with NXP LINFlexD UART on NXP S32CC processors" + select EARLY_UART_LINFLEX config EARLY_PRINTK_SEATTLE bool "Early printk with pl011 for AMD Seattle processor" select EARLY_UART_PL011 @@ -243,6 +246,7 @@ config EARLY_UART_BASE_ADDRESS default 0xd0012000 if EARLY_PRINTK_MVEBU default 0x48020000 if EARLY_PRINTK_OMAP5432 default 0xe6e88000 if EARLY_PRINTK_RCAR3 + default 0x401c8000 if EARLY_PRINTK_S32CC default 0xe1010000 if EARLY_PRINTK_SEATTLE default 0x01c28000 if EARLY_PRINTK_SUN6I default 0x01c28000 if EARLY_PRINTK_SUN7I