From patchwork Thu Apr 2 11:41:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1063 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A92E63F0D3 for ; Thu, 2 Apr 2020 13:41:51 +0200 (CEST) Received: by mail-pj1-f71.google.com with SMTP id l12sf2977112pjh.3 for ; Thu, 02 Apr 2020 04:41:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585827710; cv=pass; d=google.com; s=arc-20160816; b=hlBo+DxePopEj13y/3jO7DtfGpChHmGx948VEyemGrRTkk9Mgw0XApQZxin/r/Jbkz oHwQ3kLJgNasF5LMb/cC6i9jlylcB0/TDxk9B17uFpnybIFqXFecvnPFP7WMv0gwOsrg gZpWRbfxUP5OeAN3HweBIt+TpTYJ9SU/d1ItaP3x2SVD7UqKzFb5pQhGoL4Nc0Bgvr5K uoahSm0mXCDeZ6c/CbP6V3aVAXhb8d9uuRkm4GscKi8luL3tD7/UXhX3fGWYPpIQ7kV6 IpmKf8rQqXD2q6FxLlvFcLC97AyhwmI7ycaaT42+ovDpVuvYuh43NtXhbZB0k4IvU5Xm LgWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=Hvu/9b5PxjqubF6svFjb6M4uhF/QYzSRCN9D1oCx044=; b=xtoMXp9lO2adgZXT919zxB72XG47t86ko6c2u7R4qbuoHUc1iEV2C7sN/F2+aup9OB bO55xISZbe53bwx4CW0HSYEyMxzdGdHw+BlCebmJ4VwhwUWHmP6/Z61i2sWRlsks/DiR t2IIMyHPqi1gvwHbvSMKm3jUQEYHR1a2ivcUFSqYQzxMhG1eTr+ANvcdjMsPaYpotbuS LzjRrKmpID/x3Jr1dSJ9keRArdN8Eo/Sur9JMYqitDANxJKq1a3sGHt1CFSClFa87ndK SRjWIGfrLKbkG9MBl+3k71dLZRjYbQDUkqrhPD55FBZhRrHrkvKy9r1EeSr8V9Wzt9V7 CKEg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="M/v//8fN"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=Hvu/9b5PxjqubF6svFjb6M4uhF/QYzSRCN9D1oCx044=; b=lte/4Rai3j5/QxOiOyU5xOrDc5XOWdRlMnRqMen3KWBDvxK+hVu0+p4wSQZeQT2KCp dDchbDikrgIEipkWl7wvF3F6RDjzbNHhYwu1Y+fzl05BAaLIztkuLq9I7ny9loPZFoRd txK8rv9SbSLndYGLXDPaeC1+Yw9Gj20k7MWpQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=Hvu/9b5PxjqubF6svFjb6M4uhF/QYzSRCN9D1oCx044=; b=lR3JN18EwUN0xviEhllihssIezwZH50/AH9ahNT1vWR8ClkZRb2GUAVBzTRhbRmVTT yRRBVfGb8+Tf40w/00mRDTxBPNaClSmZD3Ah2aM8OtMmuKVP0PCfKNCsehwWslchHY2w s8/FTc83xa7hzoWgW9eVNwhnzOnpVJWVeBjifxtc2wSSkauFJQnwEaGwuwQ9pK5XMmF+ Vcmp1WxH4YMrz/+MNu70hiLdjRMA1az0NbO80HhIrUy1h57LW6up0xJ6Vr3C6u4gUcBK EPto72XKlURZFJ16XnANrglncWDu5tgfVXFn1+dOwl58KajnJs4Jvc0QqXdO6ORoi9fd 8HXA== X-Gm-Message-State: AGi0PubcV4Ka8jMTzJ6qMN3v1iP3UHXQ1p/KgwgKTW8mII7NGSXYurQG FHthCXGa/8CsuRI3+JuXSIDGaGUg X-Google-Smtp-Source: APiQypJskm8ZA0jcnkKyUJvAeWv0S70KZKDAYmmP6eX/WL6DW23QfZJoC3vkLYwGxsl7t2FupOQaGg== X-Received: by 2002:aa7:9844:: with SMTP id n4mr2639203pfq.98.1585827710302; Thu, 02 Apr 2020 04:41:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:7d6:: with SMTP id 205ls2310293pgh.7.gmail; Thu, 02 Apr 2020 04:41:50 -0700 (PDT) X-Received: by 2002:a63:1c1:: with SMTP id 184mr3072534pgb.203.1585827709751; Thu, 02 Apr 2020 04:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585827709; cv=none; d=google.com; s=arc-20160816; b=om5vU+McB584jYfTd1Wkc/tv0u54KOC7mkOOemoATcsaGqCraFT0jMCy7lcE4/toru ZdduzEQ+JuRAQtkWOLAjzlUTH8CQzIctAqRWdBEbjGAtFPnSUSIBSXJyRnB+mrqTfyR0 e5vVTudZH9m1gs939ASsHCNsWn6FVsFHELyHCE4f6GdeayC3mXY3eBO+hnd+cA1pPJlW fowxEh1bd0WXiOcTHuwipB9HpbDkJ5KktXqu9IXc97kgEuKRv0bPVqqi9pSz04OtJXIV uEtBNXV0d7xkWyVzQ/FcnRH7y5RKyiZHEVc9CY7Lqsje2npiqxOOUKZF+k9Yo30DwZjX 3ioA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=U9shr/sIXGUpkWVegpw8emtHcoxnHuA88+inRf7p4IE=; b=W92EVwJZ9j2X1FihNA5vbaPxASG9BX68N2U/DgJ//2GOPRSDT+8HTW49DEJlezHgWv jYdnL3ZFGELdPhiVlBmu0atuGIEH1mqCBOlk7lhbXIqHkamsFk5PBLzh9UG6WJ47v1cA PUnqbZRAaf8GqPFW9O8fpolqk8SMslGIPnsOiQ3fcb9Yys0WTd71cpdT9lIB0bsQ01sX XXRvXoOQ6STpgoXrPPR0fK271iGyMObpAkquWQ2Xden3otqnEffUkgqv0fXQxCUSq9kp kWEGFK/9CkS+1zxGqtj8+nBWtaipdpKC2X/Shh2oTog4rxfxaGZDzZFYZdEZyuZp4SIk V4ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="M/v//8fN"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id g94sor6730926pje.1.2020.04.02.04.41.49 for (Google Transport Security); Thu, 02 Apr 2020 04:41:49 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:ad8b:: with SMTP id s11mr3306616pjq.8.1585827709430; Thu, 02 Apr 2020 04:41:49 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:3532:519d:ba6d:25e1]) by smtp.gmail.com with ESMTPSA id i4sm3618107pjg.4.2020.04.02.04.41.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2020 04:41:48 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich , Anatolij Gustschin Cc: Mark Kettenis , sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 3/5] rockchip: Enable pre console for rk3399 Date: Thu, 2 Apr 2020 17:11:23 +0530 Message-Id: <20200402114125.2501-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200402114125.2501-1-jagan@amarulasolutions.com> References: <20200402114125.2501-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="M/v//8fN"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable pre console buffer for rk3399 platform. This would help to capture the console messages prior to the console being initialised. Enabling this would help to capture all the console messages on video output source like HDMI. So we can find the full console messages of U-Boot proper on HDMI display when enabled it for RK3399 platform boards. Buffer address used for pre console is 0x0f200000 which is ram base plus 240MiB. right now the Allwinner SoC is using similar computation. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig | 1 + common/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index ed7514ab75..0cb1f23d0f 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -229,6 +229,7 @@ config ROCKCHIP_RK3399 select DM_PMIC select DM_REGULATOR_FIXED select BOARD_LATE_INIT + imply PRE_CONSOLE_BUFFER imply ROCKCHIP_COMMON_BOARD imply ROCKCHIP_SDRAM_COMMON imply SPL_ROCKCHIP_COMMON_BOARD diff --git a/common/Kconfig b/common/Kconfig index 46e4193fc8..bd35de3056 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -568,6 +568,7 @@ config PRE_CON_BUF_ADDR default 0x2f000000 if ARCH_SUNXI && MACH_SUN9I default 0x4f000000 if ARCH_SUNXI && !MACH_SUN9I default 0x0f000000 if ROCKCHIP_RK3288 + default 0x0f200000 if ROCKCHIP_RK3399 help This sets the start address of the pre-console buffer. This must be in available memory and is accessed before relocation and