From patchwork Mon Mar 30 18:16:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1058 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 53BEF3F03F for ; Mon, 30 Mar 2020 20:16:39 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id n28sf16077881pfq.4 for ; Mon, 30 Mar 2020 11:16:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585592198; cv=pass; d=google.com; s=arc-20160816; b=X9OBrRw9d2hLxfixIUPXGKQWK5K7CGWgCOJYiqHAxjN+ZfTRfOQHj3kmKvtLUFrVmv PlRKu29701PJssPwivBF5LwUcmd+m+ED5c50D/b5GHm4jDdRqBsx//RaLtv2h6XRnNmd PhQkFSPb7OdoSS5nOYz8zx5oJAnsSJa4NuRMAOnjafhYsY2ZMZqeCvMJkQpyQYDynMRX SaYdlIr9+mVeTAXozEWr+5c3FWVUEP2qn19xCG/LYiaxEcELz4Nv6LN9bZv8XIzoc7Tg GuJ2bls+3MPjCWc+KSpOlxDyDt/AiG1v1iIBZW1GpyAHC/cgygtM15ArTBOEvaAciZ0e x3AQ== 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=wilsGfRQe6dRk7ddtfZ4INeXj72VkEo4GCc+48klllQ=; b=jzvK9LDuZF7VFLMbD2rBdooGtTwMyQFEaqM+WEIKTzj++uplmgM3x2/wq4eERNQr+f rbN+/CY7Akee7kzk6+7O2KEkZI+Fe00uW9MUK8+i3gfFi29uBXnGSQeulVBOwQZfH35L 271f82Demi33TXqJyKf+9hnbD+VsIisrOR9IGRrXJF6VRNDZIztjShTQ56uIvOGkLfm8 5VxGCC7WCc7DmJc7w5Z1FToH0Ax3xm/L10uVO+0GoUoLmSxA/17JxlzeTKkFP9GTUsDX gi0RqPlKYU6/vdeTCUBJNoK+6UvAfvF/jIebD0HnhUG5kzw+w7Z2RHkV3j10oZ9I8XgK jIKA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fRsHvCK3; 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=wilsGfRQe6dRk7ddtfZ4INeXj72VkEo4GCc+48klllQ=; b=ZjtiLjQx0+um2i5hZhvLk4KGs4OUymxECMbwNjQ/lLZyYPN3TzuKCLsJmLwNTRnH29 6i6w1wIc85I6fi3tCtTSnzgl6D1vlwJ1Oq/toOyPD7Y05xrp9wy9xFt5yRi/iuDMVQ3k dcoqiaF3VyMNatUT7RiuoTKYhUl0Ng+lLrbao= 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=wilsGfRQe6dRk7ddtfZ4INeXj72VkEo4GCc+48klllQ=; b=Gj/riLelfBicdiTlaYNfoR9S9MHN7z7/7Df1NQ5fkhIVqAojr5cimuE6oXIpOOxdae kOwdq3hrLOXBT/TL/LMZTAbtgsHWe1VgSTV2Pp7NT2E/aHkTwI9ixoydD4y2D15SDBOZ bUfAkAlbSycxYC8gN4q9PqnsxTRs0Hk14c/uvxTxFWOInmDMo4HOtvRnwbRrMAQOBG24 h0C5mA6WXqZ9OD/6NFjaO/MHgzHpnRJeybvlnQjMid4lnjNQnr3xc0vyw7Zkm0VwNy/M jnpWrgsROtXI0Y1fPOx+2kp96WM/Oyb9bsBNFeJduA5jSwiz//KBS/jP06nX7szD/L3E hjCg== X-Gm-Message-State: ANhLgQ0zsRWB1eooK03hclfYQqfCup4K4zZB4bAcM/PNkNUBRQWqIGDG /gLyh7q2mtVjqjvy1Gnr/E6Ilv0w X-Google-Smtp-Source: ADFU+vurNXO919VZUnoyNabzuaAG82RmbDBJq86QCOjD4/wu8/yvbgdTSDhMhcLVERCHUmhEJwp0Vg== X-Received: by 2002:a17:902:fe0f:: with SMTP id g15mr14491230plj.25.1585592197484; Mon, 30 Mar 2020 11:16:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:ff18:: with SMTP id f24ls12989037plj.0.gmail; Mon, 30 Mar 2020 11:16:37 -0700 (PDT) X-Received: by 2002:a17:902:8c94:: with SMTP id t20mr13409503plo.336.1585592196919; Mon, 30 Mar 2020 11:16:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585592196; cv=none; d=google.com; s=arc-20160816; b=wQbVSkk7Xh08iGktfG5ZHRe4yKkrTU7Aoqul5CIeLqFtmtbGIpRQItbtiSGK3f9DaW yuJD0gg605PwZuj/Q93KHx9yLv3QgEoQWu47tbptT41XYtzM0lFuwWLE6hDzaHLDzrZ8 HDQT2L4VqIQkPDNKwEnW6CmidxPXuLESPJwHmqyG1YXxnGv13A1eldRVEbVGV1eFRTz/ MIO75FoQMv/E+jHynj6mqqzpJji/WT3LRBK4Xz3saZsLKMzCDO7laThRP0Gkyrgia6Db t3JBbMsVqp/x0xXXyVcp7oLcw9DJEOiRw0LGqJCU4hwpi6bKdaBf32Zt7dYYf3YDLMuu tNBA== 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=gvUS8A/eL7b7o1g6E1PL+fAftkvIDyBq1evUjTl0k/Q=; b=zA+AHTBZhDHSlz3YoG9gynptLfK5N4FmQrFlMZNfOhufD4xmmOdIBjXlykCHAY+Bal zLWI7ZyERW9ABKLLXnDU1hlSzdfC1JnKz0gEPIgR1cEjRSI4xUg2kX/ZyBmyP6uL7dy+ Pejbm2yxN3C5yeqcb/NNuFgIuPmVxnxzDWWQOQAqcAXAsD43npcBzJr5+mUpU5GO3+Ri yJqz8bF9ounK8VzYn3scTFkpZ5P9djdAAUgcckb1MtneYaRZbSAin68xAH3l0GZZzXW8 O+/bqnRPMLvxTZqhcJztWGdZWfVAmmN60ksRFnXOOiYcmVrOeQx6ikndw3BN8j45RsX2 Fthg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fRsHvCK3; 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 y22sor19691076plr.24.2020.03.30.11.16.36 for (Google Transport Security); Mon, 30 Mar 2020 11:16:36 -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:902:b682:: with SMTP id c2mr354882pls.36.1585592196301; Mon, 30 Mar 2020 11:16:36 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:b95e:3742:c972:389e]) by smtp.gmail.com with ESMTPSA id p7sm207452pjp.1.2020.03.30.11.16.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 11:16:35 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich , Anatolij Gustschin Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 3/4] rockchip: Enable pre console for rk3399 Date: Mon, 30 Mar 2020 23:46:12 +0530 Message-Id: <20200330181613.29462-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200330181613.29462-1-jagan@amarulasolutions.com> References: <20200330181613.29462-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=fRsHvCK3; 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 --- Changes for v2: - none 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