From patchwork Thu Jan 23 14:12:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1038 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E2A413F093 for ; Thu, 23 Jan 2020 15:12:41 +0100 (CET) Received: by mail-pf1-f197.google.com with SMTP id 145sf1703271pfx.19 for ; Thu, 23 Jan 2020 06:12:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579788760; cv=pass; d=google.com; s=arc-20160816; b=ThRRkFuRSHd3VtKB+EuRHYsV5DxFus2Gt5Dv307G4zpTCmJnV5l6XJ1NB3wFFJ9ii5 hHlBEJoVkR78poAAFYk3XixJLXFggj1hVxq+UvHz4fPrQZS2h1bDHX53OZ2leI9coRGW 8oly9y2tPJPySMbeFwodAGYYPdtxMrdlFa78mEjb5YRyTTQO8Zg4mPLNLpkw/WVcBrKw iNmbP2yKCnKZqg6kXeFaczukmAoazhr6KK5WCkA9AhRgtAedpiuOEmLFQkOjF7+Iyc7X dJgqK24pYb8uGQFTvq779vx1sFIG1HS5NSzKQE0Jo3a/xof9ndo5ol5csVCIJIQEBxwm i1+w== 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:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=i9k9uQC0EEUlnuvrJ+b0FiCHCjN5tK/VJloT1kLRhL0=; b=zs1YOd84VFp8FUXg8DwvrylrFgN0+EOmv/bWlg92cc2dkR14JAoI6LYAVldDGEcQRX DyGDAD+kYlF76jWJfJzAjoU1dX5U1V12nf/W9ebxvwMeWWCrbPDUZ6Bq3arkVMTD0xxy WMEChE5QNSwENRmDK3dKgp6ecnoNUWrffXAJhvZg8Bm1wi6ITth1pvIiYslHXGaQDknm GrsOuboSDkTclfuxV8GZRV8LsKbXW/WaUTxaEz4U2qoJo1DDBVl3J7vNFQ/trGITcKcb CBB784JXVBJyV4XxFH8/7dDPxhM+Lp+aRXX4LOQ4IBsalttRsRMqq38qCmLVryE3GepC yfsQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=a79gqNaw; 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=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=i9k9uQC0EEUlnuvrJ+b0FiCHCjN5tK/VJloT1kLRhL0=; b=JQ4M6gq5137bIWjqRi7kDLapO2SNbq2m5zfTwM84NI2G8Sve7E23XRoZaFqHlnnzEL xUfXcA9BuxRDaOrCpMhsDPPfmtT9SOkz0eK/g4G69mAt1szYicGGvaD9Da5qRdI9XcFH hnWpZRj97O1KISSN4jFOFTARYW6fzorzGHt8M= 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:mime-version :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=i9k9uQC0EEUlnuvrJ+b0FiCHCjN5tK/VJloT1kLRhL0=; b=ZcBV0eJgPgT56DXvBnsHIwNBCO7wKK6MTOKeenQcckwdxdUrnSKxlYFT/lI29dJvTx IpMH5fNGkmVBKiaNmhnj9sfXpTL8r5LmA8fBCvbqNxUqYVu5d/Iwxt+H3UL5RzjBrcFx 5h12uG+1VdE8oRYl1O2z7X5Uugj9NAydSI13AuswDmwOKrrayDMr8Q5ZCVAbJieURbz0 ugB5b6uv7HwAgwwZ63WagzEgswst3o8vcr8L9h20msiCBV1yL811nTS3S3y9nKBWLw+0 13IOGK74kS2LrwpSn0oOvgVW/JN2fL26u6FzHB0oixX7M4LM5kgJl+fqIyXxDo+YKWCr UdJw== X-Gm-Message-State: APjAAAXN0Q8sN4nkn3BanmhziNwcdRTu3DMPr6KMZM90QpTK/814nuK0 E3Q2WD1Pum7yRtdWFrMvQ7vVQOBu X-Google-Smtp-Source: APXvYqzl2NEywWnTGpoWNmKRL8GSLevsOtR/bsmdoP7OrseZQXca6nFuN6Q26ecETCIFC4oRminidA== X-Received: by 2002:a17:902:12d:: with SMTP id 42mr16138390plb.246.1579788759872; Thu, 23 Jan 2020 06:12:39 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:6389:: with SMTP id h9ls13204636pgv.10.gmail; Thu, 23 Jan 2020 06:12:39 -0800 (PST) X-Received: by 2002:a63:3089:: with SMTP id w131mr4364837pgw.453.1579788759146; Thu, 23 Jan 2020 06:12:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579788759; cv=none; d=google.com; s=arc-20160816; b=eg2g879c5hrDH8K+m1Q8aPbQn7eLl3U2MYcIwfUNSCT52A68ovNUxDGaVXrYfamgWy uEYqu3BYw7bDv/FGPQ0TDk/dmHjFDXMe6+mRz4ymwAbBRPgLv03daFDRvlqOwD8bg5Dv b2qcLRtHp62NekyT7WIZlDHpJVSVWMSSdw7epReKa8v1cHWidaQK344I5GorV12HRGXs jIo25std5wQwacmVSMleMYKACDupOjx6gjSn3lg6yr1O21cXBSVyXPsyCn16wvYvCtW7 sQmp9uu6FuPtHMBrYqrx/njfRIEehrZ536NppQgq9rApEOmgbr9zMMe4F1fUwCkQFfvA HhQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=rDeb4IRpDr+jmE5DvZP+Erb2FHBE6aPgX/dlR6Q3DjE=; b=MY8ZMg7lH/LXSStqnxGJf8zPn9ao8V69E8oEuTGJpG0YhgFZt7mG7o91zzYxiSqRH/ H7vzEoWg1KLdCzy8NSB+EHn2Ygi6HXao/Cyu6FHmj26S+y8WerJNVZJnUpEWAaavDFik kCnu3jAAckYIbtjF3EFXmGBdCjBf1yF1NdF6hEV5R0ODnzbgyGkimWpbVhm+lujeq/MB PGLlQdNErO8iGXDp3U0QTPFXsq3nrRBVZ7HDDFbDoLjquQj1F5jcRDgy8nlgQhstKves eZv8j1DAkaACg4KbkGu4DNUSKHsbspYcnxdOEYTWY4sKZnpFHUNyKQlPjV3Ca21VLyaK s/fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=a79gqNaw; 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 85sor2227487pge.61.2020.01.23.06.12.38 for (Google Transport Security); Thu, 23 Jan 2020 06:12:38 -0800 (PST) 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:a63:4b50:: with SMTP id k16mr4265766pgl.386.1579788758239; Thu, 23 Jan 2020 06:12:38 -0800 (PST) Received: from localhost.localdomain ([49.206.202.109]) by smtp.gmail.com with ESMTPSA id o6sm3136392pgg.37.2020.01.23.06.12.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2020 06:12:37 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Michael Trimarchi , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 1/4] rockchip: rk3288: Enable pre console buffer Date: Thu, 23 Jan 2020 19:42:19 +0530 Message-Id: <20200123141222.486-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=a79gqNaw; 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 rk3288 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 RK3288 platform boards. Buffer address used for pre console is 0x0f000000 which is ram base plus 240MiB. right now the Allwinner SoC is using similar computation. Signed-off-by: Jagan Teki --- 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 2f260a5c5f..ed7514ab75 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -102,6 +102,7 @@ config ROCKCHIP_RK3288 select SUPPORT_SPL select SPL select SUPPORT_TPL + imply PRE_CONSOLE_BUFFER imply ROCKCHIP_COMMON_BOARD imply SPL_ROCKCHIP_COMMON_BOARD imply TPL_CLK diff --git a/common/Kconfig b/common/Kconfig index a7c5ba278a..21d0244050 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -567,6 +567,7 @@ config PRE_CON_BUF_ADDR depends on PRE_CONSOLE_BUFFER default 0x2f000000 if ARCH_SUNXI && MACH_SUN9I default 0x4f000000 if ARCH_SUNXI && !MACH_SUN9I + default 0x0f000000 if ROCKCHIP_RK3288 help This sets the start address of the pre-console buffer. This must be in available memory and is accessed before relocation and