From patchwork Thu Jun 20 18:54:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 679 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 F045E3F086 for ; Thu, 20 Jun 2019 20:55:22 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id s4sf2381641pgr.3 for ; Thu, 20 Jun 2019 11:55:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561056921; cv=pass; d=google.com; s=arc-20160816; b=JUEN5cNjmhannJRHyn4CaPpEjRVJyCsPxvAFZpOfUTIzgeQtpu64h93Uw5bnZZtQvl 6MMX4l+7Y8DY+/dvzxlECLjFR1FWlPCmr6irSnKU8ATR3yJb+mjaHDUhEDLxFCcFg05+ fT1yEqm+e++it6tjIm9mpTiuOqN6y+T1glK1ZoJMdUATF5/ge28yf3wbagsqCXAkWvIN Jm1G3K0I4wv6wF+DutJwv4lH/xLNd2+8u/dakm+CYhp03fT2H6QI4vI3lpEvIRqXxUOq lLkzNH/RCnSvbsROa1Xqe/ANX0AZ0GmsvJJfgQzPOV8qaVPQKySWDu/Jq5f8wIFFpDPv 2WJA== 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=UzZcwMfaGmIdWq3sjgMfSVaPjx49YyZXav0PBnIEbJg=; b=TQA8YVN8IoPe/+7IzPj+UzTuh85KTflnmsNxnF5Wdn13zqfxSu2Y0VLPKl8cg42zYu 3gdbbYRvAecpCE6zJ5dWwGGSVw89z2/SLhDLYY1KoIcD4KvKtSEDxTD6UOJa2n+hj3Dd sNrsatB2J/FI03ZnuiGUgW/xcf1KcXpCO1CU07S6OSc7mVGbGEkxQ/oDvpwf+eREli1d WKcmXDtnjUodYU9nyiIjEltrmk44I5Is9ARwiwXTb322p5ws11M+JDBxp5MRdoaA5ZnM 9otsbgTKjhctm3cSFwf/ggqnzLPygSwEl0SNg92f5QKnb6fYccKfTZt+niW2LZQPlu6M vdpQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XXAFy64w; 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=UzZcwMfaGmIdWq3sjgMfSVaPjx49YyZXav0PBnIEbJg=; b=ikIWeg71xQkUedKxDt5Er4Y1ZBkpvSL3QkB58h39n/x5Gf3epUx29p3RfDAAOFQpzZ iC2rB7/dqNVTMHmWZnPFlRXbxDd+39IOA85rrMYicwT5dCmZO2fxH+VSg39s0u2BmjFc K1pT+BGULxgOolqhuzidp7z1a+318lrLlt6o0= 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=UzZcwMfaGmIdWq3sjgMfSVaPjx49YyZXav0PBnIEbJg=; b=cvrzFr2VYKc7KljlrfRiELEc17NiNSK0EcUaK+uhMN8C/ZntnTQg5JAwIGVVi54Y8+ 05Tg/t7u5abKM83VHBYgzxWP5H6pt6rHLUOd+1E2ZJkMcDny6o9F8WHOpi09csrf1/vL tksDYMUe0cyu7bH7DzWR8TvAVTakuFlLwyx8/x1MmJKBXNwhQXaRfHPiG4N+Q7C31Y7v O0WAAJlF6b0k09TloJmhililG0nUliikN3C5h0nqPuwV4UekBGZEWQfZzLEBSByRUj7W bwNh8dXjtSy3aIFRFuxS8Ti7HSBPTR5hF9nSzKvPM7Hu5Z2CsJpuT7+iulwV1Wm4SK39 U4dQ== X-Gm-Message-State: APjAAAWZ0BWl6309OW45AcebptJsDogRBNvAalwAjBTY9RIFmgHVecrC aFB8/qD4UzKFmNKUw6RbOQqE77pr X-Google-Smtp-Source: APXvYqziKX3BFgc1b3sdHoyy8oPJkPXGU5dv88NgOKr3/bxbfX5PHZmtPikucFmh2wsQ6blIz2DuNQ== X-Received: by 2002:a17:90a:d983:: with SMTP id d3mr1151745pjv.88.1561056920550; Thu, 20 Jun 2019 11:55:20 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:8609:: with SMTP id f9ls1556855plo.7.gmail; Thu, 20 Jun 2019 11:55:20 -0700 (PDT) X-Received: by 2002:a17:902:294a:: with SMTP id g68mr129115082plb.169.1561056920180; Thu, 20 Jun 2019 11:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561056920; cv=none; d=google.com; s=arc-20160816; b=J9cXEBzq54sJphxMVQXkLRY/K3KkLF2XHZNoXyV5KkYJRh4pWprkUtbhUdw6tkSHGI 5P62SFo6lZrwbNGyNZfzjDtdt41zB4X9qmAVnKgVIX9WpALi0iupvNogTf/VJwGAmAyw CtNPbEyDGXaJbEUPQARHz/O3ZE6bdiyzIBi8boEzSDu2I2MdehGr1hWewavp0801h1c7 4ayxXl484vmFjiSE/VkXBXJqc0sqio0a3bzSQJmu+/g92fZ0gvOibbE5Kq6jbtodyjln yE8vskwAcD/WrL4dKfZotWLYWGnsYPYn0Jx08dp7Uki+o9/FB+Pon6s5J5mgqTMnyuxk tPRQ== 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=dliYcFtfFRKcruaQ18nkUGrUM1yrABrfWlip8Ygjlfg=; b=lIP+c22SshU8fZHQ+UycGz0v89JJ1BH3neGk5Bb57qDkZXeioDybk+brPAXfHrQRR6 IVVbU83O9ppXwmZ9aCCkg6h9N7HB9yoP+Fv4BRI8Fi2NC0yRnOxvzODkw7pWFy0O1uBi VXQHcJZuppaSg3WE95iV9zJZgxcg1hjj/98O3G3qCtBz20FRXP5XW2RS17Ar1SHsdnmJ oLny9n2G9Asjxewa8rd9+DN+9HZVp6Bp5qseXrXGADRo77SNsP2W1KnfthuvcbgSsYi2 CVf/x2jlgGthifbzwho2mhQruKm0xkyXBBs2vIWei5SCikn1N0VRaA8G9kVc9/6p6Nfs Odsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XXAFy64w; 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 g5sor545932pgc.72.2019.06.20.11.55.20 for (Google Transport Security); Thu, 20 Jun 2019 11:55:20 -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:a63:35c7:: with SMTP id c190mr7972977pga.445.1561056919652; Thu, 20 Jun 2019 11:55:19 -0700 (PDT) Received: from localhost.localdomain ([183.82.225.128]) by smtp.gmail.com with ESMTPSA id k3sm372183pju.27.2019.06.20.11.55.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 11:55:19 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , u-boot@lists.denx.de Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 0/8] rockchip: rk3399: Use spl_board_init in SPL, TPL Date: Fri, 21 Jun 2019 00:24:58 +0530 Message-Id: <20190620185506.11449-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=XXAFy64w; 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: , This is v2 set for previous v1. No much diff, except the latest rebase. Usually spl_board_init has preloader_console_init which would help to print boot up banner during SPL and TPL. The current rk3399 lacking that in few of the boards, this series make reuse of spl_board_init in SPL and TPL stages. with this series: ================ U-Boot TPL 2019.07-rc1-00243-g3f0cad6bd2 (May 08 2019 - 11:29:32 +0530) Trying to boot from BOOTROM Returning to boot ROM... U-Boot SPL 2019.07-rc1-00243-g3f0cad6bd2 (May 08 2019 - 11:29:32 +0530) Trying to boot from MMC1 U-Boot 2019.07-rc1-00243-g3f0cad6bd2 (May 08 2019 - 11:29:32 +0530) Model: FriendlyElec NanoPC-T4 DRAM: 3.9 GiB MMC: dwmmc@fe310000: 2, dwmmc@fe320000: 1, sdhci@fe330000: 0 Loading Environment from MMC... *** Warning - bad CRC, using default environment In: serial@ff1a0000 Out: serial@ff1a0000 Err: serial@ff1a0000 Model: FriendlyElec NanoPC-T4 Net: eth0: ethernet@fe300000 Hit any key to stop autoboot: 0 => without this series: =================== U-Boot TPL board init Trying to boot from BOOTROM Returning to boot ROM... U-Boot SPL board init Trying to boot from MMC1 U-Boot 2019.07-rc1-00243-g3f0cad6bd2 (May 08 2019 - 11:29:32 +0530) Model: FriendlyElec NanoPC-T4 DRAM: 3.9 GiB MMC: dwmmc@fe310000: 2, dwmmc@fe320000: 1, sdhci@fe330000: 0 Loading Environment from MMC... *** Warning - bad CRC, using default environment In: serial@ff1a0000 Out: serial@ff1a0000 Err: serial@ff1a0000 Model: FriendlyElec NanoPC-T4 Net: eth0: ethernet@fe300000 Hit any key to stop autoboot: 0 => Any inputs? Jagan. Jagan Teki (8): board: rk3399: Drop explicit uart enablement in spl_board_init rockchip: rk3399: Support common spl_board_init rockchip: rk3399: spl: Mark printascii into debug rockchip: rk3399: Move u-boot, dm-pre-reloc of uart0, uart2 rockchip: rk3399: Enable SPL_BOARD_INIT rockchip: rk3399: tpl: Add spl_board_init rockchip: rk3399: tpl: Mark printascii into debug rockchip: rk3399: Enable TPL_BOARD_INIT arch/arm/dts/rk3399-gru.dtsi | 1 - arch/arm/dts/rk3399-puma.dtsi | 1 - arch/arm/dts/rk3399-u-boot.dtsi | 8 +++ arch/arm/mach-rockchip/Kconfig | 2 + arch/arm/mach-rockchip/rk3399-board-spl.c | 65 ++++++++++++++++++- arch/arm/mach-rockchip/rk3399-board-tpl.c | 9 ++- board/rockchip/evb_rk3399/evb-rk3399.c | 29 --------- .../puma_rk3399/puma-rk3399.c | 58 ----------------- board/vamrs/rock960_rk3399/rock960-rk3399.c | 31 --------- configs/puma-rk3399_defconfig | 1 - 10 files changed, 82 insertions(+), 123 deletions(-)