From patchwork Thu Oct 26 05:46:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 13437267 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 50EA1C25B67 for ; Thu, 26 Oct 2023 05:50:25 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.623474.971329 (Exim 4.92) (envelope-from ) id 1qvtFi-0002gz-QQ; Thu, 26 Oct 2023 05:49:54 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 623474.971329; Thu, 26 Oct 2023 05:49:54 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qvtFi-0002gs-Ng; Thu, 26 Oct 2023 05:49:54 +0000 Received: by outflank-mailman (input) for mailman id 623474; Thu, 26 Oct 2023 05:46:42 +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 1qvtCc-0002dV-Jk for xen-devel@lists.xenproject.org; Thu, 26 Oct 2023 05:46:42 +0000 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [2607:f8b0:4864:20::102b]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 087c10dc-73c3-11ee-98d5-6d05b1d4d9a1; Thu, 26 Oct 2023 07:46:40 +0200 (CEST) Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-27d5c71b4d7so1280842a91.1 for ; Wed, 25 Oct 2023 22:46:40 -0700 (PDT) Received: from niej-think.. (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id so3-20020a17090b1f8300b0027d0a60b9c9sm831152pjb.28.2023.10.25.22.46.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 22:46:38 -0700 (PDT) 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: 087c10dc-73c3-11ee-98d5-6d05b1d4d9a1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698299199; x=1698903999; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iSTgWq3on62kpQTfU80MQgPRThAMsrIIzsvwWPX7qKg=; b=STSz3Q5wCH1AGajWzlKDiimcDB6Iekl2NPpz+p2MfUsJO8vEgizPw4TfwIVv9YOetf laL4QSKYdHabgBHBMfBnzDSxOIou1BcR4i6rrdPtvee4+dUDhGu6aFhUJTLXs4/O18Oa KfpXPMcpVsxuTxmTeaD42ZqZX/gxSWQhTZTLgQgoJojsbYGxV0M/q2PejGecFrHUe4xZ jn/d2Vpx7B5020hh+EpCV9WRb0GMa9PgEWLT5k5jvIG/Vrmum9ItRYKDnDYoSmkMeIM8 VGQyURECzYi/yiWi2Mw8VaXndRdZaUu0gZ4H/d7aJVlMrfWq/TE7Iye1u9cAOKCTrVna SlKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698299199; x=1698903999; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iSTgWq3on62kpQTfU80MQgPRThAMsrIIzsvwWPX7qKg=; b=sVNkM5HEDcUQUfputDPLbBuCgeqOvAyzOXPpmt130jH0p1byJFG4cExsRYAyXFZWoH 5yMgg362nwyxwwbECtP2bdJf9xvy7qS8Ta3Tvt6Y3sTkmkjjy/sv21Bs/zIyzabubvgU MGDWzofKR10JP945Ltxq8POg3lyGMKVrJc2dT7F+rjO4rHZHlT1NWGItFOOJxFU+dltO 1DL+oYvsSrk1Y9lwZXLHBL57Y5W+2H87oNyTNmx07RVpLthPssn8hTK0IsrGhJuRTc/E BF5lU3aBndbX+kn9DZBaT435ultIPEJoupACTbpOPhzXAiFj+zeVF8nPh2+3g3grlVEt WBnw== X-Gm-Message-State: AOJu0YyHtXse+jgjxClZQLyp5KdxvYVj6XskTKgYNDk5/HPDKrqiAyct JkiNiv5UIYt3BVboAPF1EtNySw== X-Google-Smtp-Source: AGHT+IFFPi+uJmeQ4qWhfIG8ErAuI2vJxo9QF9JlrFuuINJsXwgulTJDIePIaTab5TfsETL1usThrw== X-Received: by 2002:a17:90b:d88:b0:27d:1a75:5b98 with SMTP id bg8-20020a17090b0d8800b0027d1a755b98mr2184057pjb.12.1698299198676; Wed, 25 Oct 2023 22:46:38 -0700 (PDT) From: Jun Nie To: sstabellini@kernel.org, julien@xen.org, bertrand.marquis@arm.com, Volodymyr_Babchuk@epam.com, xen-devel@lists.xenproject.org Cc: Jun Nie Subject: [PATCH] xen/arm: Add Rockchip rk3399 early printk support Date: Thu, 26 Oct 2023 13:46:34 +0800 Message-Id: <20231026054634.2805035-1-jun.nie@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Signed-off-by: Jun Nie --- xen/arch/arm/Kconfig.debug | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xen/arch/arm/Kconfig.debug b/xen/arch/arm/Kconfig.debug index 842d768280..fefe8ac4df 100644 --- a/xen/arch/arm/Kconfig.debug +++ b/xen/arch/arm/Kconfig.debug @@ -158,6 +158,9 @@ choice config EARLY_PRINTK_RCAR3 bool "Early printk with SCIF2 on Renesas R-Car Gen3 processors" select EARLY_UART_SCIF + config EARLY_PRINTK_RK3399 + bool "Early printk with 8250 on Rockchip RK3399 processors" + select EARLY_UART_8250 config EARLY_PRINTK_SEATTLE bool "Early printk with pl011 for AMD Seattle processor" select EARLY_UART_PL011 @@ -230,6 +233,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 0xff1a0000 if EARLY_PRINTK_RK3399 default 0xe1010000 if EARLY_PRINTK_SEATTLE default 0x01c28000 if EARLY_PRINTK_SUN6I default 0x01c28000 if EARLY_PRINTK_SUN7I @@ -270,6 +274,7 @@ config EARLY_UART_8250_REG_SHIFT default 2 if EARLY_PRINTK_BRCM default 2 if EARLY_PRINTK_DRA7 default 2 if EARLY_PRINTK_OMAP5432 + default 2 if EARLY_PRINTK_RK3399 default 2 if EARLY_PRINTK_SUN6I default 2 if EARLY_PRINTK_SUN7I default 2 if EARLY_PRINTK_XGENE_MCDIVITT