From patchwork Thu Jan 23 16:28:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1045 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E20083F042 for ; Thu, 23 Jan 2020 17:29:22 +0100 (CET) Received: by mail-pg1-f200.google.com with SMTP id t12sf2052981pgs.13 for ; Thu, 23 Jan 2020 08:29:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579796961; cv=pass; d=google.com; s=arc-20160816; b=0Ksx6dUL4YWPLtARbTllOjg82mSsJQhZz7aANqC9/UsuPbjniUsj54I7Najmz0qkyP AAvyr8TP0fXvsluGriF++omM9V1cNIWah3igMiRhvFjWomqDmvuuGg7DgSoADN/r7ZO5 IdzSa/5ZOwen9H/TEtdSAgGVGnxsVBnY8MmwbfPptOzWJfcYIGfgOSax+I78cTR4uneD mqegL4FNkD4djfsGmA4OcEHce2VEvapBb7LjDbszlnr/QodFtLQApMhErKBWg/mVKzkG tLMNCZ/XNsI0I8OEHrV4iglFwOaCOSRwlvSpmsM2R0sN279PTRVtqXiSNxm4abwzDdBH 4F/g== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=1RHLjPsQuYGlNXS4XmOgFM/B0w1vvyWCFWL9skJGuAQ=; b=eooYz0mSQlVMzvVles04zPARld3bPky9BXaEevcfwYXgKM324PJFQ0PK0u0ZLYr1P7 nw1fOfzgxJKOQGHOKcZLblAD2VQ3tmU9wabbVN9BUtGQTH5QUmdiP2hqcnPaO2kaIz98 4W3f0/Eh1A1Q0gS27BPUU4dnkD2OhY/z/iq1hfOvZ8b8V0/2HWQnaudcdTSp8DPRqFTT ofDcFY5FC/EKakBJ0pXBK15HY/DbN3HJMRVi7cJQA2KqDlET4/01bwqxEJSGtVD8DaC0 QSiJXM2PbVNAxC/OmuFlBiv5Sha6DZObgAc24zM+DJIqn9x2V50iw9mBz0A9KbULiy+L XnDA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XchflPEb; 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:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=1RHLjPsQuYGlNXS4XmOgFM/B0w1vvyWCFWL9skJGuAQ=; b=iCDvkyHxk7esjVZYutnG/798GMxYhgbuJjHSNhZccyqUFGpNIGkFfnMDaiFskWvMyQ f3HeyPIgD3QM6w/EE7MJhQ0ku7Mo4NERwSkUfZAcp6tdgFoY51S30DQSR5dwS39UM3mE 0zQ5l6j0aofcb8dynSwxsjRPUl8agVqoHKt88= 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:in-reply-to :references: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=1RHLjPsQuYGlNXS4XmOgFM/B0w1vvyWCFWL9skJGuAQ=; b=oiEzi7U5CDFy7ogy5IVVxsiwqbk3uXE6qU+P3cujsN0Y4dST3sz8eiy0fdQCUC+8/X BiWlIzQ57WtLUQ7wRLegT4Bg6ZtihKEES7HJfytLotBb99Ivx/phDBEkmbuRwFJMOtah 06iyss2Tfv7htf28o7FBYxdx2nLp2C0vsMaNnoedkx0rXZdN+KqQkJdJBxptcCVLyOMr sXHnyul3JL84NVh9pRbsRoPXFXswiZC2Ezk7z2H5UrjMhEIfMqxfu1251Bq3WhDAcOjh hrPzM+FBfjy0L3Gf3V5rjgHMvW6n6OUkjDuVvsXKGiNqCOUPBm1DaghWrY+2PPM+ZPg/ 4yKQ== X-Gm-Message-State: APjAAAXd452eb7r2PltiRXDjKV1qQQ30c+ntUbt3fczKtd4XohznKEx3 88r/LVjOsvzNU73o6l/DUAMu1aYC X-Google-Smtp-Source: APXvYqznolN5cS1AA2bi2X6jg0/soyfL3lLJcUJfX2oc/eSEnKC1+vkWrWoCngi9T0BZlI03ujH7Zg== X-Received: by 2002:a63:b20:: with SMTP id 32mr4579703pgl.390.1579796961671; Thu, 23 Jan 2020 08:29:21 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:567:: with SMTP id 94ls13473545plf.8.gmail; Thu, 23 Jan 2020 08:29:21 -0800 (PST) X-Received: by 2002:a17:90a:e657:: with SMTP id ep23mr5201075pjb.105.1579796961163; Thu, 23 Jan 2020 08:29:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579796961; cv=none; d=google.com; s=arc-20160816; b=j6muJKEdiv8c3nGQKS9lgXk4M28CUKZgg121DZjygVvLkphxDP2VxTuh0aQiG5MgxH EAGlYnjdejgNznhsdLfpgoHry4bdHxtXrLyHCRxPMCX4+tqNVtKShMgn7XbccuZ9a99I izk89IQw9101mWub9mkbMAtF1JADT1roGbPm5w4C7IajLm/hcDXhbRURMN7NKb4Uc+U9 fQzWv+5jsbQDFkTEKIx+pKWnLIc4++5XkWbHZvMQ/NiyOPo47dSxnFwSPdjzzbg4Ky7U jrPIpSxPlWAKw5DyA2nptj81u38vT0Sm744PacKO2l8vRDlOwDR5tAERcfHFiOVuY1Fy inCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=J+OiRInHosqjCdmhqjIGvub+XWktp878CWzZRNlLP4A=; b=Jpjflj+rUB/AJx8PJ6FeP5bP12YDbeGRjeNLjUgdItUEVTSnDjyfucittDVPubqjP1 UV3/KrIFAcCp1tLz8Lx+ucShUfTeHsQMPOq321zLiELQK7BIh8vK9LvMc4VdNytjnUx/ tLZbp+vq9UPGOlbw8lPoiES90k3Xr5B6oI5KNJ8TWnSbGtptV+5hyaug0BD6bS4Wze85 e6GiOFGKnZe4bmNhJKblOC5bqgmVu5IPdOsWVzpQ1uI4HSv7jbPyBQFJV6UqO0HZ0Riw muw3yms6YGrNIybx5dTaD9fMCnEW4L4w7+42MyiXJDEMXaXwcMTe9lr5T8rB7iwlRVnV 80gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XchflPEb; 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 2sor2758689pgy.36.2020.01.23.08.29.21 for (Google Transport Security); Thu, 23 Jan 2020 08:29:21 -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:6f8a:: with SMTP id k132mr4915552pgc.70.1579796960871; Thu, 23 Jan 2020 08:29:20 -0800 (PST) Received: from localhost.localdomain ([49.206.202.109]) by smtp.gmail.com with ESMTPSA id u1sm3188909pfn.133.2020.01.23.08.29.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2020 08:29:20 -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 3/4] rockchip: Enable pre console for rk3399 Date: Thu, 23 Jan 2020 21:58:44 +0530 Message-Id: <20200123162845.10651-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200123162845.10651-1-jagan@amarulasolutions.com> References: <20200123162845.10651-1-jagan@amarulasolutions.com> 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=XchflPEb; 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 --- 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 21d0244050..7d81924340 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