From patchwork Wed May 8 08:08:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 392 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 251643F066 for ; Wed, 8 May 2019 10:09:23 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id 13sf12124565pfo.15 for ; Wed, 08 May 2019 01:09:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557302961; cv=pass; d=google.com; s=arc-20160816; b=0BARIsHTIiUk2GP5sP6u+1/gQuEDFy9w3WzPlgIdfYlScEuBjJmgkuns5vOc43Cpnn +MXr6ZKvYA0mH7xWNcECbZtULZm5G/Nak8xXZDkYDvJVjQ5gHEsnFiPfZxySqJUphxgX kyA2RHBWeCCt6a9aSF1NMzd67sI/FQ3Hyz/IpII48493IKpMC7E3TAvuCW58YzxD8+Tu WKODwnNOo4jAQ814SA0P8ImWhSyGSfwSPqJcbBUU2QGRBYHOnzTOIAb82Rz54WDlFgiz t5In8s0VE5AJjw71S73bJpkAiwq9MfDB238UzfCLHf+wCPpSNzOJmDFFUaC2VBHeLVMp CD2w== 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=Lw0qFPQdAFOZgUJhXZ9wlv9sxbdiNpe+S/xrPVu6Udw=; b=rTbESrDvrGW53GOGs7RZuwhsfDcZqensOYZYUuBqIqhoNuhYq/rxpK34Li6hh8m9hd UOYm9docPiaMELcoaPTFaJnnaouApMYIWBom5ef4DZjLjl3ftTPHQSu6rFZbAGcWUe/f e19vB3mcb+JWMAsW2jD87jZY6OHvkkIE/8N0E6WvDIdKgGqh0NnmCN0+uSJFHDUF8wp6 IUwTt70Hvb/McBtPw8qYc6QknG3LdjNa5aGFuzx2tqqDGoLTqX2qDsEJLFiQKySurhPS uJv9ri89F5WNZNrv62QqnRRvL28jTug4t0luaqI53dW69rlv+SCs9+pVrZmlEpOm5U7k KvCQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="n3/IuhFA"; 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=Lw0qFPQdAFOZgUJhXZ9wlv9sxbdiNpe+S/xrPVu6Udw=; b=Vh0dNlVh1EA4wokq/Vrg9ctJ/pAsfsoqyLASTZK85tlmI3apAfW53nCj0eXu0rNnyy oHxbTLYbclifs7OAgcZs8GKbIJr9+5Tjxgu6gwHE2a+u3ShZSt4llN1yYVz64W8rndPs 9vG2ZJjDDJNPfas6yQtwfQKax06g3d28fIqJg= 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=Lw0qFPQdAFOZgUJhXZ9wlv9sxbdiNpe+S/xrPVu6Udw=; b=EwRhfVHLTtGoUTxHICqcvSxrhMYmvHV9Wqe7zIrbv4R8v0yay8YYAag9qSQJMK+YWp XEGVSPLM3pGC3C3XQhrYzmbQ2uqMgGkAVBhLdWx4VtsNMENfc4ZbzaORyPpScAY8UqmX xH0oqNKaLvldl2u/bbv1reGVZ/g0ieT4FYUeyZa2mUUkE8DKHV+4cztaw1eOWbne7aHG HWoC/O7MkphH6vIKVeXJ5+wbUnYbOjN5AIEs9InJ1okZF7/80d61GQKy1egPin0ZSCp4 hrsuXPDHM0yGes8HoYL5WVxcaFceg3uZpXP2OaLFyxQS8YhA/CYVAEymzNwckNhcK5m7 +WwQ== X-Gm-Message-State: APjAAAUb1dOn3YQfc7bRS6OQv3uqlQ47DwztZqVAkXh2y+tZJKOLRpPF wKXPFkDmcZrThBVH8QcULTvK8Vzr X-Google-Smtp-Source: APXvYqzrKM2HnYH4DcdLE4NRzQpl7dC3Q06ANZV2h1ytSgNO8ur0DtvgjYA58jRveau5Q+0QKSsI4Q== X-Received: by 2002:aa7:93ba:: with SMTP id x26mr28256985pff.238.1557302961655; Wed, 08 May 2019 01:09:21 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:9148:: with SMTP id 8ls5288383pfi.2.gmail; Wed, 08 May 2019 01:09:21 -0700 (PDT) X-Received: by 2002:a63:8741:: with SMTP id i62mr44895786pge.313.1557302961301; Wed, 08 May 2019 01:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557302961; cv=none; d=google.com; s=arc-20160816; b=trbZempWRYJhnepMuorqkxsXLVPAOyZkwC6fJk0Rg+hmO6F57asAbwI25cG82NNXSd iBJn3j4L7nLv/tgpPMAFUC0jp0molkcLnZHj6sT1qE9QOsDWffiPj4GnETgsaGohcZvf kXtta+tDcG+s3BMm3Sr5aGNukqd8gZT5uIy4OLmWpXLbEyufjiNmGzsqEkRE0JYt+q1R b1dA9oxo9GMWPF0fd+4p+MQ1CJErhlOP/Rel6JAqDjtHrvWxnQ5a6h8MDZiVN5u5xRIq Igdk13XCdq2M7Lti/xYaOX0GHI+abo2mGdCuUI3WLP48NJL7GZFTGafI6GicFXp94IPv T+Jw== 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=iJdc+LE+goLm9GBcZ8RQa+EHlJZSHEiVDu4uCr02hoI=; b=IcRYRcFZ4wR6NMHRxNr5B2Fkc37rU8NUyIdSmR8MY0+DkuPcPZg8L8iKZCQ+7/VGOu o8vXDdz4+xZaDoC4b/7cNkNuRT+J2nJWJlSegV1/vzLPJxcUDpGLH4MSQjx+3V3FKj6v WVE5WRm6U9CkrVuW7rz7HVboUGG3qXgGTxsphLcGPG/Ntviso/wFVuQ/UyBj9gezX6SP U3veaRR7O8QIKdsrd5vdRUmhnzQgo3dm61uSIycc/EqY6ZnUhNteXMa1Si/AR7n/6z9q nQzrF87UtjHs7VHU20jZmahX7zLK1wsdRFgaiS86eywnNirt6C8Pkd+Jd4AbDO7R35A3 9IAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="n3/IuhFA"; 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 v22sor11978331pgb.31.2019.05.08.01.09.21 for (Google Transport Security); Wed, 08 May 2019 01:09:21 -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:a65:6289:: with SMTP id f9mr7382176pgv.380.1557302961010; Wed, 08 May 2019 01:09:21 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id j9sm33537133pfc.43.2019.05.08.01.09.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 01:09:20 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH 1/8] board: rk3399: Drop explicit uart enablement in spl_board_init Date: Wed, 8 May 2019 13:38:57 +0530 Message-Id: <20190508080904.1567-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190508080904.1567-1-jagan@amarulasolutions.com> References: <20190508080904.1567-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="n3/IuhFA"; 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: , preloader_console_init is used for printing SPL boot banner that usually called from spl_board_init. The current spl_board_init in evb and rock960 is enabling explicit pinctrl, debug uart prior to calling preloader_console_init which eventually not required since board_init_f is already enabled debug uart. So, drop those explicit enablement calls from spl_board_init of evb, rock960. Tested this by enabling CONFIG_SPL_BOARD_INIT and adding u-boot,dm-pre-reloc property for uart node. Signed-off-by: Jagan Teki --- board/rockchip/evb_rk3399/evb-rk3399.c | 23 +------------------ board/vamrs/rock960_rk3399/rock960-rk3399.c | 25 +-------------------- 2 files changed, 2 insertions(+), 46 deletions(-) diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/rockchip/evb_rk3399/evb-rk3399.c index bf2ad98c47..769b5d146f 100644 --- a/board/rockchip/evb_rk3399/evb-rk3399.c +++ b/board/rockchip/evb_rk3399/evb-rk3399.c @@ -6,7 +6,6 @@ #include #include #include -#include #include #include #include @@ -68,27 +67,7 @@ out: void spl_board_init(void) { - struct udevice *pinctrl; - int ret; - - ret = uclass_get_device(UCLASS_PINCTRL, 0, &pinctrl); - if (ret) { - debug("%s: Cannot find pinctrl device\n", __func__); - goto err; - } - - /* Enable debug UART */ - ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_UART_DBG); - if (ret) { - debug("%s: Failed to set up console UART\n", __func__); - goto err; - } - preloader_console_init(); - return; -err: - printf("%s: Error %d\n", __func__, ret); - /* No way to report error here */ - hang(); + return; } diff --git a/board/vamrs/rock960_rk3399/rock960-rk3399.c b/board/vamrs/rock960_rk3399/rock960-rk3399.c index 0f5ef3a09a..018e4b55b8 100644 --- a/board/vamrs/rock960_rk3399/rock960-rk3399.c +++ b/board/vamrs/rock960_rk3399/rock960-rk3399.c @@ -5,9 +5,6 @@ #include #include -#include -#include -#include #include #include @@ -24,27 +21,7 @@ int board_init(void) void spl_board_init(void) { - struct udevice *pinctrl; - int ret; - - ret = uclass_get_device(UCLASS_PINCTRL, 0, &pinctrl); - if (ret) { - debug("%s: Cannot find pinctrl device\n", __func__); - goto err; - } - - /* Enable debug UART */ - ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_UART_DBG); - if (ret) { - debug("%s: Failed to set up console UART\n", __func__); - goto err; - } - preloader_console_init(); - return; -err: - printf("%s: Error %d\n", __func__, ret); - /* No way to report error here */ - hang(); + return; } From patchwork Wed May 8 08:08: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: 393 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 505B03F066 for ; Wed, 8 May 2019 10:09:27 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id a17sf12129251pff.6 for ; Wed, 08 May 2019 01:09:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557302966; cv=pass; d=google.com; s=arc-20160816; b=D5xY3Y/oilJ0Xw/XsYEiEFsuRXnI/4T+Bsha74mknCpkuvTcaM8J3FV0LUykEwqeW9 ZQL31eU/2CVnkuACfW3MQhAAtkooTAtFfeeOd5KYJIt3PqqqSVBDyVPo70pgqI0tAe4z 0EfMWpBLw8Fgtvrrfk7m39K9p27aXMfaljdFIjaZTiyZ/IJIN6Duxf72T6T97j9fkv0+ Z/S7xnMZQ4EKIEAqAfbmymlR/J3yD8+CC2Ty972gWin0VwJ/CUwHR6mMcPDjskW+tu2Z 7AgX34yB9VorxKa0UPRmMi2+rsZappJiCZF+oxkg0Sg08SOYuXXkEpaV87WNi8pyPAD0 xKyw== 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=9OVqmkvUz8mU7KYmujePoDaHdvHYE6+5rVrjqR+ZOz8=; b=kkZu+23NL7mrABwzwMfPnaeR6KYL2rihShPvoJJpeezdEKln0dV8IxL3GPavNa0hYg gFzdCXCHD3rqh1ol6lVKLuQ+6Rt2zgKpyF3yCgxQvU+xoEDhn2y/z6GHKAOmWB3ePr3v ToC5zXe3OLp5kBGO9AmDdsyh0xIOLFgcFXhEs0K6+LpcVLrlWJHfyHMNW5tKPQkE0Cwr hzCWaSXGH3wQDGbuBoMSLjNPCcM85WJUh3GL03F35wKAufrDmhhSLr4PCDhNaR4beM4g 5gLO1K9HjuxWCAYSzvTwTaueziizc0AkOiY6Nkd6Xp6mSTGuCinWrzCGQUht81uMiB2T xBgA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YLTiAkpr; 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=9OVqmkvUz8mU7KYmujePoDaHdvHYE6+5rVrjqR+ZOz8=; b=ga6gaL6SMEAlGznNnxxCpWso0VUtLKAvucOaKuru8sRm96P4KTg5zhovBNp/sikLca 8tEf5N8Em7lvaLz+ZoK+ducMuNT2EtOcg0vqVu2de1VxwcvmKQpbaw/MceANWpMcZS/p kql4T3BnrO9vTHStv8Pp/FaZSCd1VwXKzQBxA= 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=9OVqmkvUz8mU7KYmujePoDaHdvHYE6+5rVrjqR+ZOz8=; b=bcShimZmoDO0DuACnGUKOLCtZMJ2rWJkgtT10ZGA0wYv2k9zuX3g3kKwF7y5sy/5zE kWScKA2/SZGHiypgZR0T9uX2FV52OUAeJUBEXT0S1CVZVTORLTvj5VXFX6iDb4yNocrh 5YpnDQwNj+J0d1KCuBBQ7Ft3i+pBUCDqxuI8O4t5I9ccqk6CvUHtlsMZgjn39L9odrWF EdqT0GRZBjK8+rq4M0PpviIhjLNpARuywx79PAhID6MUJTCjGC9DL1yj51cyvixRWz6I hsDX9FfOkUSpUe4CaRmnZANvdIguRj6kAJtzzM532gGFYeS6rOvZacn8HPI9PtrP6rAm iJYA== X-Gm-Message-State: APjAAAWR+lL1Az7wS0Py+XmZGp4xjgOtYZRU5VibQpHFI0HglUIx2eEq SPpzRic8FCP8P42Ktxs0Mt59Y2bz X-Google-Smtp-Source: APXvYqxsXEZ95CozZTFU5crfsbqueJiezh5GGlEwo+qaiLuKaLcXH5L29rZ6GDqJUW7z4xt4ffH17A== X-Received: by 2002:a62:4595:: with SMTP id n21mr47563485pfi.79.1557302966095; Wed, 08 May 2019 01:09:26 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:2010:: with SMTP id g16ls4167041pfg.0.gmail; Wed, 08 May 2019 01:09:25 -0700 (PDT) X-Received: by 2002:a63:fc08:: with SMTP id j8mr24080390pgi.432.1557302965729; Wed, 08 May 2019 01:09:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557302965; cv=none; d=google.com; s=arc-20160816; b=JgD9Ef8VNo9q7fdANkswc/EeLxa47XvoEp3IbPsKfgtnjlQ9gRrLCjiAQyODevaTuo 9PhN1YNVjGLT781y+8CFNLsWbJn7xKkPVDBuhR8h19Qj0vV8iHOGziRbouhqa6hBePN6 xTgBqtDDfCHw845W/fwq+sMJ9LPpe+goy9C5KE5u0n/+4IXb6y7QhFdu+WMECMUgayrV h2fN5J0TVr/bJamn6YHMar24aKiAoL/xtQ8+xVbdX6gumX8OLDUcc9r5AO4mpfg/zsMr AUy0vNZjOXbx+LS/dTNUPKqfw+PtFEh6ZZk7UfZFKrVlKFmG0t19z2F0cMtJP7TeIuAP ah+Q== 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=RvueV0PhNPrXDT5MSIPl8OymJ30H1R/wIrXqrTQfjlE=; b=M++NsfmEdeFMziOa5XaP8VToOc8oIsnysccdmm8zkUEn9MvTJlnWrrHrd16e6Ru/HI Q0XoXx5RPPOMPFpePjqmU8CqMK4uJrjvvPINwsNi0aPAHKDnlRQwTA3mxkc1cm+cm12k vKqceTLSLhXAskjOo+YOOC85v36KZTrIM4Hjf4I/ti/KMms93i37gBJpffwPFm1SsdVh rjXdFc2UhMsK10EZrXkeyop6F8hf+9q+AWhusFDZG9bNLsf+82FlARqLlo17e38qtBay HGIG+r9/Zp4LmQHGVFOwWdj7MGf9aw6r3/znFdzMAg7oPbW2FGd4a8lFHGtnCxTZg6TZ ea+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YLTiAkpr; 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 u1sor12843483pgq.63.2019.05.08.01.09.25 for (Google Transport Security); Wed, 08 May 2019 01:09:25 -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:a65:5845:: with SMTP id s5mr26891500pgr.286.1557302965382; Wed, 08 May 2019 01:09:25 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id j9sm33537133pfc.43.2019.05.08.01.09.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 01:09:24 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH 2/8] rockchip: rk3399: Support common spl_board_init Date: Wed, 8 May 2019 13:38:58 +0530 Message-Id: <20190508080904.1567-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190508080904.1567-1-jagan@amarulasolutions.com> References: <20190508080904.1567-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=YLTiAkpr; 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: , Support common spl_board_init by moving code from puma board file into, common rk3399-board-spl.c. Part of the code has sysreset-gpio, regulators_enable_boot_on but right now only puma board is using this with relevant config options rest remains common for all targets. Signed-off-by: Jagan Teki --- arch/arm/mach-rockchip/rk3399-board-spl.c | 63 +++++++++++++++++++ board/rockchip/evb_rk3399/evb-rk3399.c | 8 --- .../puma_rk3399/puma-rk3399.c | 58 ----------------- board/vamrs/rock960_rk3399/rock960-rk3399.c | 8 --- 4 files changed, 63 insertions(+), 74 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3399-board-spl.c b/arch/arm/mach-rockchip/rk3399-board-spl.c index 6b492ebdb7..058acdfe39 100644 --- a/arch/arm/mach-rockchip/rk3399-board-spl.c +++ b/arch/arm/mach-rockchip/rk3399-board-spl.c @@ -11,13 +11,16 @@ #include #include #include +#include #include #include #include +#include #include #include #include #include +#include #include void board_return_to_bootrom(void) @@ -204,6 +207,66 @@ void board_init_f(ulong dummy) #endif } +#if defined(SPL_GPIO_SUPPORT) +static void rk3399_force_power_on_reset(void) +{ + ofnode node; + struct gpio_desc sysreset_gpio; + + debug("%s: trying to force a power-on reset\n", __func__); + + node = ofnode_path("/config"); + if (!ofnode_valid(node)) { + debug("%s: no /config node?\n", __func__); + return; + } + + if (gpio_request_by_name_nodev(node, "sysreset-gpio", 0, + &sysreset_gpio, GPIOD_IS_OUT)) { + debug("%s: could not find a /config/sysreset-gpio\n", __func__); + return; + } + + dm_gpio_set_value(&sysreset_gpio, 1); +} +#endif + +void spl_board_init(void) +{ +#if defined(SPL_GPIO_SUPPORT) + struct rk3399_cru *cru = rockchip_get_cru(); + + /* + * The RK3399 resets only 'almost all logic' (see also in the TRM + * "3.9.4 Global software reset"), when issuing a software reset. + * This may cause issues during boot-up for some configurations of + * the application software stack. + * + * To work around this, we test whether the last reset reason was + * a power-on reset and (if not) issue an overtemp-reset to reset + * the entire module. + * + * While this was previously fixed by modifying the various places + * that could generate a software reset (e.g. U-Boot's sysreset + * driver, the ATF or Linux), we now have it here to ensure that + * we no longer have to track this through the various components. + */ + if (cru->glb_rst_st != 0) + rk3399_force_power_on_reset(); +#endif + +#if defined(SPL_DM_REGULATOR) + /* + * Turning the eMMC and SPI back on (if disabled via the Qseven + * BIOS_ENABLE) signal is done through a always-on regulator). + */ + if (regulators_enable_boot_on(false)) + debug("%s: Cannot enable boot on regulator\n", __func__); +#endif + + preloader_console_init(); +} + #ifdef CONFIG_SPL_LOAD_FIT int board_fit_config_name_match(const char *name) { diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/rockchip/evb_rk3399/evb-rk3399.c index 769b5d146f..c600553ff6 100644 --- a/board/rockchip/evb_rk3399/evb-rk3399.c +++ b/board/rockchip/evb_rk3399/evb-rk3399.c @@ -8,7 +8,6 @@ #include #include #include -#include int board_init(void) { @@ -64,10 +63,3 @@ int board_init(void) out: return 0; } - -void spl_board_init(void) -{ - preloader_console_init(); - - return; -} diff --git a/board/theobroma-systems/puma_rk3399/puma-rk3399.c b/board/theobroma-systems/puma_rk3399/puma-rk3399.c index c6b509c109..251cd2d566 100644 --- a/board/theobroma-systems/puma_rk3399/puma-rk3399.c +++ b/board/theobroma-systems/puma_rk3399/puma-rk3399.c @@ -13,10 +13,8 @@ #include #include #include -#include #include #include -#include #include #include #include @@ -38,62 +36,6 @@ int board_init(void) return 0; } -static void rk3399_force_power_on_reset(void) -{ - ofnode node; - struct gpio_desc sysreset_gpio; - - debug("%s: trying to force a power-on reset\n", __func__); - - node = ofnode_path("/config"); - if (!ofnode_valid(node)) { - debug("%s: no /config node?\n", __func__); - return; - } - - if (gpio_request_by_name_nodev(node, "sysreset-gpio", 0, - &sysreset_gpio, GPIOD_IS_OUT)) { - debug("%s: could not find a /config/sysreset-gpio\n", __func__); - return; - } - - dm_gpio_set_value(&sysreset_gpio, 1); -} - -void spl_board_init(void) -{ - int ret; - struct rk3399_cru *cru = rockchip_get_cru(); - - /* - * The RK3399 resets only 'almost all logic' (see also in the TRM - * "3.9.4 Global software reset"), when issuing a software reset. - * This may cause issues during boot-up for some configurations of - * the application software stack. - * - * To work around this, we test whether the last reset reason was - * a power-on reset and (if not) issue an overtemp-reset to reset - * the entire module. - * - * While this was previously fixed by modifying the various places - * that could generate a software reset (e.g. U-Boot's sysreset - * driver, the ATF or Linux), we now have it here to ensure that - * we no longer have to track this through the various components. - */ - if (cru->glb_rst_st != 0) - rk3399_force_power_on_reset(); - - /* - * Turning the eMMC and SPI back on (if disabled via the Qseven - * BIOS_ENABLE) signal is done through a always-on regulator). - */ - ret = regulators_enable_boot_on(false); - if (ret) - debug("%s: Cannot enable boot on regulator\n", __func__); - - preloader_console_init(); -} - static void setup_macaddr(void) { #if CONFIG_IS_ENABLED(CMD_NET) diff --git a/board/vamrs/rock960_rk3399/rock960-rk3399.c b/board/vamrs/rock960_rk3399/rock960-rk3399.c index 018e4b55b8..2eb7120e84 100644 --- a/board/vamrs/rock960_rk3399/rock960-rk3399.c +++ b/board/vamrs/rock960_rk3399/rock960-rk3399.c @@ -6,7 +6,6 @@ #include #include #include -#include int board_init(void) { @@ -18,10 +17,3 @@ int board_init(void) return 0; } - -void spl_board_init(void) -{ - preloader_console_init(); - - return; -} From patchwork Wed May 8 08:08:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 394 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1CC0A3F066 for ; Wed, 8 May 2019 10:09:31 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id d12sf12148550pfn.9 for ; Wed, 08 May 2019 01:09:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557302970; cv=pass; d=google.com; s=arc-20160816; b=LAyDjPTAMRLRnrR5BfGjlX9H35vwG42QY8f6YyVsknTj0UHFsahVvnB5BnN5R3QUKq 72nrMGIqkeZtbyhiyIyxqz50QkFtpq1ztNMm5QxAX3Npw8XM+Jk1GM3BYBJTLrauWWqQ owQvAHdHP456R/GDWzhzSd76I385LydqbvD3B5X25TJQUbwYbaJgkUo8Qyn/QT5ezbE0 gHu40mDgC8ugDoOXh3R7DjaZos4kacnurp9ib4Yb+JuAmiMAxp0kcrRppe/dA1WS46AU ZklySjAL1Qk+Zahn2dkrIATijs+yX1MKSrkYe0tD/uLpmvl6NBFYCTZGarGAzw3z/pTn FqNQ== 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=XgRzfC9P4n+w45VOKvCtoPTh/ZbYhWxViIi1XN/p4SA=; b=O8SY1rtrNK89a7LK+YudHvOvZHdmkq2Qss6J5qiQC4C+36UgDA5u/SUH/VbYvWkLqY 3STx4bbm9moNmf5xXhjWq8OnMVGhPv2jiRbD9Z0vNQgPRAK85g3k9sG351bYDLWrxSpA YLXsug4+TaflcdAta/y4PNQiaVEfr6A2F9xXZc/yABKcS5aNkjYBelHZzeLAcu4LzGyZ eabZPZe5FPMz+UDHA8E/GRjBjJSmnOqXCAWUYd7IWbmacRyWzQrt2DHd6wUj/0PMUuQC MnUq3X2N5S4CGxg9FpnnTHXy+r465ZGAuFf7Bu0YLCMuFj9rM0+uflUHyH1sWwndXPqV WZrQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dyFwFRAb; 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=XgRzfC9P4n+w45VOKvCtoPTh/ZbYhWxViIi1XN/p4SA=; b=mBYlWSV2uoyGlqNuKw619gTx8fMMPDmYLlFyrK2w3wySnG06UDjmfNzCwzKZD8rUrK UoKj+3PC+T3ffjmHebLvpmwEY+yN5mnmA4ulAE1VixKFkCSnJthLn93EH6Hl7i9b5xsT Hn9AH2vRWWJbOkJLmqtrisZ6zB+oW20FIyh7g= 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=XgRzfC9P4n+w45VOKvCtoPTh/ZbYhWxViIi1XN/p4SA=; b=tbw+6MRFdEk+goi8txIS9O4IXzpVKp7qDO3Oc/DsD+F1EgODHIlHLeS2v/mVQ3wd16 pi9KdTU0ShZE7zz4eavclhJEE99tBaP2+5LIkJ/1oUCgOh3Nsh6WRHUjgpk6EV+eRtA5 cW9OffvBAcTp79H84jy7ke5NU8GJkE8XPFxx10QGi2R8aaHVOm4WA3SmucAzYSVpYddF aFiZMBEKazU5QlwJy8rz2LLpE5cP57suBixmssTiBPuyNKqNSyFj+TWPNH7bh/OTnNAM Quz+5UwRI1CN5p8dgIP9kFlEz+Cw6aJF4Ey64adsfhcaaCd0a47k2j+0IouYntOz+40i DJNw== X-Gm-Message-State: APjAAAXA38Y3w6shnCxR1Fdd/jMYTLaPVnDOm7z0oeC/ALfcJKMOhEu/ e2tIeiZYAfHQY+NX//qRYFRw+FiW X-Google-Smtp-Source: APXvYqxnHH4gpzsLV7hr4LhlLGDQbL5KIKBQt90xvoFtCqAVzROvTDZ/PYqtYAwUGs4Wks1pYnis9A== X-Received: by 2002:a17:902:8c81:: with SMTP id t1mr37649964plo.333.1557302969686; Wed, 08 May 2019 01:09:29 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:3483:: with SMTP id b125ls3916676pfa.11.gmail; Wed, 08 May 2019 01:09:29 -0700 (PDT) X-Received: by 2002:a63:d347:: with SMTP id u7mr45516174pgi.254.1557302969328; Wed, 08 May 2019 01:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557302969; cv=none; d=google.com; s=arc-20160816; b=i0HGGfpxmz8g7JhsBKXsLnrv/2NNGcx3vUxsxvfOiKNI+DecNKsmwqwrmK4Txb1Ib/ oQ3vBVVVnljIRTRHylA0lt3FRZ9E66XX9zArQ7stZujQX/6XVGxuImA1NpKUwbTkvJzh z0/pq5prvIFv1KEis9Z1X57mKoickPT2fwmUQOxIHDjayZTI9MSNiXRyXZfJ3nlJKX4B Zkh0XBEA/5vzBzPTjumRExzKcNobBewgOahBvZ+DboQ3ByYJmg2y0PV6uQDL70pvDpne YjOciQWhnm/zLzR5ah7255T9/Tdpkqefg5Z8jpbFOZdUegVqYbZwNTj/EhFTND0MA8SX 35+A== 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=AAXI61OqcQB2c5/+Po/kCTfrIbZ4kPTlhPaXAjgt6hc=; b=zWmOncMGUTY5ZXSUl1ijJYm7isBX1Ha7OalcrxoUOGVIiDiX4wHvI8TpWxzCIIdShV usL9sBlqUpomoT0bHKyHodNiVQ5IbKRZZwI9XDpyQyacqKmyP7t48Bbm4wAQMpNWyLB/ HEhqLkzE+A5qiAwNEBmj7hAMgvuz7osgC2LZuawLpJ0gLxzfcSSIH9hnVAOvlfOXMNaD ZJZMIF2zR1WkAgMdO8T4akVIy28F+rd8RoUUJZYl78+R/P8RUhJAlNaKeERCVaOKHRx7 qpePNNa39m8HeR3Xa1KIvB3Qpt4DhH0VVJXJ2EnWzrW3apoYeai7FQbXxaSQUDAQWgSj Q8gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dyFwFRAb; 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 c34sor1861233pgb.8.2019.05.08.01.09.29 for (Google Transport Security); Wed, 08 May 2019 01:09:29 -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:c64c:: with SMTP id x12mr45171483pgg.379.1557302969071; Wed, 08 May 2019 01:09:29 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id j9sm33537133pfc.43.2019.05.08.01.09.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 01:09:28 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH 3/8] rockchip: rk3399: spl: Mark printascii into debug Date: Wed, 8 May 2019 13:38:59 +0530 Message-Id: <20190508080904.1567-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190508080904.1567-1-jagan@amarulasolutions.com> References: <20190508080904.1567-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=dyFwFRAb; 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: , Now, we have spl_board_init with preloader_console_init that indeed show SPL banner. So mark the 'U-Boot SPL board init' print into debug. Signed-off-by: Jagan Teki --- arch/arm/mach-rockchip/rk3399-board-spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/rk3399-board-spl.c b/arch/arm/mach-rockchip/rk3399-board-spl.c index 058acdfe39..7a994b37c1 100644 --- a/arch/arm/mach-rockchip/rk3399-board-spl.c +++ b/arch/arm/mach-rockchip/rk3399-board-spl.c @@ -164,7 +164,7 @@ void board_init_f(ulong dummy) * printhex8(0x1234); * printascii("string"); */ - printascii("U-Boot SPL board init\n"); + debug("U-Boot SPL board init\n"); #endif ret = spl_early_init(); From patchwork Wed May 8 08:09:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 395 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id ADE203F066 for ; Wed, 8 May 2019 10:09:34 +0200 (CEST) Received: by mail-pg1-f198.google.com with SMTP id x13sf12174522pgl.10 for ; Wed, 08 May 2019 01:09:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557302973; cv=pass; d=google.com; s=arc-20160816; b=h+je2iGw41Ze6daoBdRIQqk4hIQSRBfgZjheIoLkVGdJ7wqJnqMjwKfPxuh7o6v1v1 pE95JFg5FjlgA0ZY9F8K+TmNQiFE3DXwy59CtLGOfzDAPu/llHDNq6Nnkju9uiBmMnbV HHyydyE/jDrpZS3h5wGBnL1g9PrefwMlRsoZajrAalhupHJZfLHMSPPNzgdhVsbIpn8I +L7TqKCHXarC4nzBaQyFI3lCNxmXs6XD+dwG9+WVZHnpzFaPYHqnnWDbO8rJuFeXjxvl oZW5G6KuCrUwrvCVK3YHWLIv+VVSx+0lHgSgN5Rlz0oso+JhZQbVRlmMD2DnZWtbHTos 11iw== 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=HYXxxr6Wc0ouows4ZKz7Du1ta1ot2a6j4TK6BxZWnv4=; b=L7UDC14i28JZ090LVZloIUMRo6CdP/gIa4gdm5wm/C8QJP3tKKCVFrqVMIWfphSU9u nt5RyX/GWsV2GugYZbtAivQRh57gRE7Ml6B3qvz0fF+mn86owKJ7dXfU83O1rocJYUid B82y/8DsBMwa0QQybZgRtq2tqgua8NsJhjV6vzmjJPUjzpI+j15N+ddIldgf3qJl1gXI 9f0E/pIY7o7S6sYrnvGYIt+jfsgZfzCQgsRfq0n/gnwlY8Pv0teGnOOUwWykgJt8seLH pz1pufL45pl+75LJlf/h1HtIlSqKFUTSxW/+lpihRgZwnToB9wXW21tKODV5oObk4Th3 pPUQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FbENm5Oc; 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=HYXxxr6Wc0ouows4ZKz7Du1ta1ot2a6j4TK6BxZWnv4=; b=GVZ9gAfEWjmyLLYg0vEM/QG2TOTb/RsecCCHhqz0/XhiP2vn/FqQJjuWP5uxr4zFAP 3+khNmkamt1lPOXJdOyEfGpdzSZ0KE6bN6Ka8He7av2MAFBMSFHtJWdkNPNy2HhXy0NL Ad3kxwPMNpBMqowOO40NA24Tcshuq6fm8Cmd8= 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=HYXxxr6Wc0ouows4ZKz7Du1ta1ot2a6j4TK6BxZWnv4=; b=AdSp4C9ttt7BmANlwnAr08J1NkGvyuCGWYuavEJUMmrVJSa4E1ZOMuHtvTqOJzEOY7 4+8FMcZqUXEV7hOkBbzRVKepp/j+Ge71qKw4t/avy8TYljP5iyy/DatjtR2rU1ZKXgVn K9jPysURV4z+R1h+2uWtEH2FCboXhOLw72jS1+wQqpx8NeSWf+uIIcjm6KeUQuJeNrQ2 ePaHj71ij9haNM+z16iPBmZVkEPuxlDuOGAOsDWjsEwLxwwkOjF6UdC0zzitkAWhES1l 3O8r2fz4DgEpDfK3MSxMDFQSyIh8C+z5DVQ8E91gQLLof15dCUe3f9c2TRUVsxCjH4Mb kJDw== X-Gm-Message-State: APjAAAX1soYRyRg2q5awswPeMqVBQ8txcijt5618vrUSPVMYhvtKk9Es tuArGDHcaHVtkvuUbTdxcvv5gf21 X-Google-Smtp-Source: APXvYqzU82ykBeFckHNbduD/sPNVoCPA4cDxvJn1wkrbKNG3RQz0G4Kju++D/zSHYGFCjgXYoZqNDw== X-Received: by 2002:a17:902:5acb:: with SMTP id g11mr9428102plm.198.1557302973559; Wed, 08 May 2019 01:09:33 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:2010:: with SMTP id g16ls4167146pfg.0.gmail; Wed, 08 May 2019 01:09:33 -0700 (PDT) X-Received: by 2002:a63:6fcf:: with SMTP id k198mr44557697pgc.158.1557302973255; Wed, 08 May 2019 01:09:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557302973; cv=none; d=google.com; s=arc-20160816; b=YOvem+Hwfs8y7ALZMGGCVpyNN0FyRYHUUmRsOEgxlWHBrsV2Qbc7S7zGw4lHJ2MrZ7 yYaEPmwLP8ES2b1nxtVrULP3FThL+s4/ATogQdyfCYx7edtqYAJtMSco+H/LJJNyvSj8 5rj4JJmIUO1qitYM9Z5cuJK5Gf9ipbmfXpjTkGw/eQ6pOo7uOqpZGW15A4NwW8mk6jsc 0WNnfmMtkN9e58pcXaqwa1Q45i8Sc7sG2i2eB7XwlOxlrt3nXRt/reskUEkCjSKboXBc sj945PtYb83/nTbqop0RIQ0EytEzttrzWTEn1lJM/ubcoP4MPq7TpUGyYGx0vbH7enIG vMUQ== 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=ejKhZV0ZePK8koi6sjYi9JqAEP6CgbDzTjWopYnMhJU=; b=HGkBkm06KjgvFXj3yeDEgh/TwNdA02jWrYQnH1f/UMIN74GWImvv4ORkotrL8Uv1Xy N5YF4YvW4yk2d/3116byFeL4S6MPx8UuCe+5s1RFOC92h4mp8a+/AFRIHxmm6mi92izp K76ry8zIIg2Hce8b1tpnt8pZGkg2N4TwEEmwaynKfktyiGFzGAklQFl8jfUOHyRttI8L AGjWolSAiwPiZAdcfx6CYNHQ4ZaSwQwCHkQdtuDqpRHXuFKM9GAZhLLsB2hJA2r/5x/e vFg1wR6UDGUaRgHhHyOykd3OrHxeOyVPY0iScnh+MTIS1IvTTDX9WKd2meSqR1pGJeUT ntSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FbENm5Oc; 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 v24sor18187973pfa.57.2019.05.08.01.09.33 for (Google Transport Security); Wed, 08 May 2019 01:09:33 -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:a62:6f02:: with SMTP id k2mr48079306pfc.136.1557302972935; Wed, 08 May 2019 01:09:32 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id j9sm33537133pfc.43.2019.05.08.01.09.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 01:09:32 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH 4/8] rockchip: rk3399: Move u-boot, dm-pre-reloc of uart0, uart2 Date: Wed, 8 May 2019 13:39:00 +0530 Message-Id: <20190508080904.1567-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190508080904.1567-1-jagan@amarulasolutions.com> References: <20190508080904.1567-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=FbENm5Oc; 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: , u-boot,dm-pre-reloc for uart0, uart2 indeed u-boot specific properties. Move them into rk3399-u-boot.dtsi so the boards which enabled these node will available during SPL. Signed-off-by: Jagan Teki --- arch/arm/dts/rk3399-gru.dtsi | 1 - arch/arm/dts/rk3399-puma.dtsi | 1 - arch/arm/dts/rk3399-u-boot.dtsi | 8 ++++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/rk3399-gru.dtsi b/arch/arm/dts/rk3399-gru.dtsi index ca0fc391b2..0e2e047180 100644 --- a/arch/arm/dts/rk3399-gru.dtsi +++ b/arch/arm/dts/rk3399-gru.dtsi @@ -629,7 +629,6 @@ ap_i2c_audio: &i2c8 { &uart2 { status = "okay"; - u-boot,dm-pre-reloc; }; &usb_host0_ohci { diff --git a/arch/arm/dts/rk3399-puma.dtsi b/arch/arm/dts/rk3399-puma.dtsi index 897e0bda85..74368da550 100644 --- a/arch/arm/dts/rk3399-puma.dtsi +++ b/arch/arm/dts/rk3399-puma.dtsi @@ -639,7 +639,6 @@ }; &uart0 { - u-boot,dm-pre-reloc; pinctrl-names = "default"; pinctrl-0 = <&uart0_xfer &uart0_cts>; status = "okay"; diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch/arm/dts/rk3399-u-boot.dtsi index 0786c1193a..fcfce9ae02 100644 --- a/arch/arm/dts/rk3399-u-boot.dtsi +++ b/arch/arm/dts/rk3399-u-boot.dtsi @@ -10,3 +10,11 @@ &spi1 { u-boot,dm-pre-reloc; }; + +&uart0 { + u-boot,dm-pre-reloc; +}; + +&uart2 { + u-boot,dm-pre-reloc; +}; From patchwork Wed May 8 08:09:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 396 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 879853F066 for ; Wed, 8 May 2019 10:09:38 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id s26sf12093992pfm.18 for ; Wed, 08 May 2019 01:09:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557302977; cv=pass; d=google.com; s=arc-20160816; b=xdqBgPr9/BKobh9zSKsT8Fr/foyTn6jzS9xKWcUwd/1a6Y17/r/wxKe4fcx01ZG+L/ RbJ9CCgM05sztL9C2a6xlHVAdlf8fXSMYsdphbXXpNCA5KNbSEc8SaYaKNtyOaLucs2e MD2Z2DHEpOjrz4lfD4dR7I88FHJaqCqJ5iYvq3lMjRgLrrNJ0xcZGwRREywblhVAmpQS +7ELGTi/RYvuf6zhTiRiuchmzO5IqMTrf69FzOJmQMrng6805G6HtxADgdbLcpU+Y1OR X1v8Lr+8VvQdNo7noTRfn3j5Mfk9/8KvGwIQUZ/laTJqdTE6S1B6H61LG9xeVI66aB0g WybQ== 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=a3quuzf7PmzZDtwrxW/1mMloSMw+JCxdOZSF6EiXC3Q=; b=ZJSXzdO8mKzq9afOuE8CNBwAq5e2yw57IIN2/NvuW2fMN35Wy7cw3VNqd/FwK0ddLN GjEmVNToqXMWxV3nmYAJc9MWAYdhzV8CoX7HMoQI/BMC3P/Z6ghZZ8OdN2gTfyJXPC5g ZMxt2+Pgyxw/2GzCXBVDn19nRKaJnk0i75j2ufIK4cAPmkxN6gvIr++fEWgecasaqrs0 JlRTaIS5kZqAQRoLDcnw8ierQ/FxgrhHunUD6S/uhpUFnHfquNLaKAtLp7WW9S+wqfbP S06aOc4W+KhNn7JpWn+LCmG5ifKQOK7N1OQFO0xvuqRkkOoAIi8vntOVbI6Xi+EsnV2u 31+Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=foyf1HUc; 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=a3quuzf7PmzZDtwrxW/1mMloSMw+JCxdOZSF6EiXC3Q=; b=Pa9Wfwz0lNGdRvqucjGRyYSQhCY84VU0FaTl6fSrVQKNXaE8PC2BAAYMdxJx28KmWa glr9zJIRjSmYdyMtyGFwpz4VLbxyq2WynWaJ9ycUsl+ymV/wFhmic1lDVo1LK6BKTAgd +aJ4efe2VALbXjHEeI/Cd2rawpdR6VbnNpbGw= 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=a3quuzf7PmzZDtwrxW/1mMloSMw+JCxdOZSF6EiXC3Q=; b=muHw0NBQXz190z0b2Zg8EYcPz0gr4/CTykRzjEN/71XzDlCDTTfT8opYr1ZxnwqK4l dJI5lguZsxCOlvZrzUd3nVe5cZxyjKE3rDEnc/Kvmp9+8y5xui4xV8aZQ1fGygGeOGWH bB05zfsgbDNwez+wHxiD5JRCwkAOWMCromgJOapTTa/f9dU29Id8AntLXr05bMxFU3+V SvVC2NngH57PLLy4dACRD76hhcTfFkbAeiHv/CnU9C6FbcVhFSrKMLLUEdv+J13UcAmu zpGp0Tr2KSF2Gs32rvG4geiJQVvtNGkYvcdrBihb/fumwOCQYrJ64MYudVXmMJ95Oap5 mbog== X-Gm-Message-State: APjAAAUERfHp3cHC2QNQZVbWmA7t69TKJPGabohOrizoanWhlqeTnZri 1kwJ4+gs1bsq3/ZhCMAG7n08Z0ny X-Google-Smtp-Source: APXvYqyORC8nqiVFg6mRRCm7yLyDOD0q2EckTckLx4yfiNwmXc4hf22BBAAdCg/LmBh4iCBzlY2ZAg== X-Received: by 2002:a62:125c:: with SMTP id a89mr46891142pfj.93.1557302977361; Wed, 08 May 2019 01:09:37 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:a984:: with SMTP id bh4ls4841805plb.12.gmail; Wed, 08 May 2019 01:09:37 -0700 (PDT) X-Received: by 2002:a17:902:2847:: with SMTP id e65mr7900812plb.319.1557302977019; Wed, 08 May 2019 01:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557302977; cv=none; d=google.com; s=arc-20160816; b=whnUtQHC+A2baxtAPdtZbUAeueUKadKBk2yFI8pqT+0CzRxBuvl97fqEWNQXrv7ZSJ yQjPdbTKUuVX1FA3Hc3OxmXcLSk3Cmy4hPp8NJcaK4U3uTZNcuJoqtrRS1IEhJ9mOhLb sbhoKa8hty7oKiR/SvOOw2g5C1c4VjoO2OcAbHq5j4D89vC+eNE3oS+0WMZb+iPYyr70 3NJtk+9C5kZxfX8xnmUC4AuikZ3aKNOJcBJUzCaATUfM4jeodvUxa1VT5s1hRl9bMha5 pE1qqjptnJZVjfFR7Vl2own7l+fc3t+BqKf11ff9sqOxM9K7QKlQDkdDhNuuuTLVVpxY jB5A== 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=IXklBQ6ai0O2AEMFHBbAi493eYh613acLhwbCyGgVi0=; b=hTBy195oENF+8Hd/6HdO1CTS6OCCUYGEltlmdUXvGEHUoKV7xNVE8OEmIcHEyYHl3D efXzIxUVgbZBtsDPZ/eBt3zEoo3L0Vi1oOnabD0+9F1gjHBZJqfrVOjARJGtRNtj1xEH uemYIifFT6TgsKu71p1xd8WU1vQ8OFP68VSUnXoYC4EBYMvlkVsAIuK7NEn+nPs/O0Lu Lafphad09D8VCN0sgK+o5k0qgUPOcqRG/KIeDo23+tbTSPQg4IRxxDzDkq6J7yduzJ9t z4VnGX5CyuO7PIY+V6tl0leJ47h/tTOfQLq/YKC6UouR7fnYYCjn4I2ZTBRhWN7D6K17 m/jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=foyf1HUc; 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 i21sor8213753pgl.11.2019.05.08.01.09.36 for (Google Transport Security); Wed, 08 May 2019 01:09:37 -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:b1d:: with SMTP id 29mr45435010pgl.103.1557302976759; Wed, 08 May 2019 01:09:36 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id j9sm33537133pfc.43.2019.05.08.01.09.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 01:09:36 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH 5/8] rockchip: rk3399: Enable SPL_BOARD_INIT Date: Wed, 8 May 2019 13:39:01 +0530 Message-Id: <20190508080904.1567-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190508080904.1567-1-jagan@amarulasolutions.com> References: <20190508080904.1567-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=foyf1HUc; 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 SPL_BOARD_INIT globally to rk3399, this would help to print the SPL banner during bootup. Signed-off-by: Jagan Teki --- arch/arm/mach-rockchip/Kconfig | 1 + configs/puma-rk3399_defconfig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index c05e3c3f48..ce039022df 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -158,6 +158,7 @@ config ROCKCHIP_RK3399 select SPL select SPL_ATF select SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF + select SPL_BOARD_INIT if SPL select SPL_LOAD_FIT select SPL_CLK if SPL select SPL_PINCTRL if SPL diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig index ebc78fb216..5cb2273a15 100644 --- a/configs/puma-rk3399_defconfig +++ b/configs/puma-rk3399_defconfig @@ -21,7 +21,6 @@ CONFIG_MISC_INIT_R=y # CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_TEXT_BASE=0xff8c2000 -CONFIG_SPL_BOARD_INIT=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set # CONFIG_SPL_LEGACY_IMAGE_SUPPORT is not set CONFIG_SPL_STACK_R=y From patchwork Wed May 8 08:09:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 397 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 5787B3F066 for ; Wed, 8 May 2019 10:09:42 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id r4sf12115251pfh.16 for ; Wed, 08 May 2019 01:09:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557302981; cv=pass; d=google.com; s=arc-20160816; b=v2r0H3i45UPNjFTYHVIZAypukuhLyIhMzyUXtj2L7Q7mnKe7IwBJ8OXvCbwcwHBc18 32wJqbTi9qfS6ubQs/JopyLj6+0JndtYYati850ugB23TqA4HzcVBjutfqctaY4pObT9 N5mK8MKLbyPvFlSQqSgCZluwgTBEVx+be1uLATwp0eN4cZoFgTDChO81okoSTrpR92+D hbxflIjiFQb84PD+eerg0zJo1N8BaRb4LfDp0yUtTHvaGxE0QfdK+cZioK2rXa4Zl5bX fPS44CWOWZbMXp/qBwNxr98WmI4QAjhqaNNf6XS32wwYtYNthguR9nZ8iY1TzO+dzJ54 E5ug== 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=qVMzfytkxTzJAAEVqeEvu1jLKQjc16wpflWc7J/vP7I=; b=yJ77Z46GVdUbheVX8kL2QyxmqvigW+9WOdyCwFXUJ6fzsxCcBt/GxqXgWhKDVLDcNN eZ+y1wozTLhzST7oggi/2/pe2mJiPvKWTEaSmlfA2nES5tszGrTiHsi8RetsLXeRV4Z0 7FFqvVida71lUL0XEEAxtCLVu4j7m2AFA5rG1QRAC13RDLXkDzuRcq2F0qAHNTTmTxFY m1R1zrkLD1UhFIB6+X76W0nU6FkzVk+Bow8lapKqWd9TXqSUDt6bxwXWxKxbnjWcHSXN BFXxeEkUD2X2p46CMAulkRzmqLb0VjuU5xfe4TEGACL304fdb6WgvkawNfjuxulWqLQb POHA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EjyyN0t+; 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=qVMzfytkxTzJAAEVqeEvu1jLKQjc16wpflWc7J/vP7I=; b=oefTq+HzorBzapKPVLh6rd7OSGMBtdgod6+wmrXs+xyOOZK7Y5BEl6Ftlrsdx3rx28 ZIZw8Nbi2G81SeS3uIXC8G+rLW7DeufMppygeWCPo5G4Nicfe2XZbbeJj1+UWxap+9O9 cS+XRm0VkePeCo4j8PT7/oD4WxlFfigpOgmac= 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=qVMzfytkxTzJAAEVqeEvu1jLKQjc16wpflWc7J/vP7I=; b=DBi5jTXm827zfH7U0FxODj4xnCGoXObTG9ssapLxX1ReztdgZbl/HE8xq2fIyw4Nuf eVXpeVCtYxDzJ3rDyecJ71tPruIpXA3QKPGHe5DhK0Btse860nSM35VCWG1QkXcsTU2A CoBbo+9vLhpfa3EoduzG09w35sBSI+ADX/gP0e+lk2+Omory53+dAcY8wpxbXlLZRxZ1 pCvr1F1vzG9Zy35ZwPsQiJgHXVCXvhi8y+wl4oTRIvlf9PLWPbL080HqTarNfX1HGvCz PJ8PTo3a8oPQk5gcG6pdA73Fku8B27AzzsEGZf2eLh7yqP01z8u1uFVG/auFp7+S3qd4 EYIA== X-Gm-Message-State: APjAAAUNXsMnabejNc+DiIafQvQBirbUAG3MVbc7s2vxApLFzcC4BkrL R06fEHmvXOnXksw+nGgUAG+KUTbk X-Google-Smtp-Source: APXvYqzoTNkNn22qANXlu7apFUSoA7voZ+9+dbaF3DNFO6/JdatcMoaxMXFpEuBEd/erYT/G7x9wKg== X-Received: by 2002:a63:295:: with SMTP id 143mr45247795pgc.279.1557302981197; Wed, 08 May 2019 01:09:41 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:8085:: with SMTP id v5ls5290922pff.5.gmail; Wed, 08 May 2019 01:09:40 -0700 (PDT) X-Received: by 2002:a63:5c5f:: with SMTP id n31mr45819972pgm.325.1557302980819; Wed, 08 May 2019 01:09:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557302980; cv=none; d=google.com; s=arc-20160816; b=Nts4G+p7XG6b7ThVhNZ3SJV3ILzzGFYIl3rn+Qa3PwSiYzygUXSvrYtR2jk64ylAIT fruy0P2O1vDb4OvhVfuBa3IJn1KQvalYmk+W1HYUtHgxpIZcLIycOlhgLbdu3VIZocGa La5tnc9wofmME/pIc/2XANRZ1XaYqcHTd5t/u6NUBjfQc6TMBM0E8Vxv8bhARpIRTHZK CKVLdni28X3/2ChEaahDYIy1kxw0SY5i0nqyVHn6Xm36yI5HBi2CfhUUqBV50CFPxqUm bVu2ckfw5DA4cCp4QZ4ECv205kr5frMnkVGGPTP/0uuOcc584CcOwN7gv/2Kn1022LUz CssQ== 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=kD+oEPKanpwbUqT7qImxj7fv4DhkmQG/0AnVoyVwb8k=; b=aY60MZS0Zcdp6+/PUs+0lsGv/gJhGRvYddHPvV3C4ub8gG26Q/lWvnRFOrZ4ckY4Zj k8KzcWyMLDCZwdvEa+AJ0RrXWJYT3x3u0aMR96KVunDcjPfez8Esb10NwIqKn/2DpxzG 4fgK0ZlFMw8b+GJ5TMiRXVuRF0lacIvWADARH1wZtks73sTRDliISZjQPM1FuDDXv+H8 b3b42Ae6iMEZaPnGfx+D3ZnATNs2Z18lppk2BJX0ErOdLJM4X5ghQd38p+G18BnKkyu7 M7Rfec3Hf3Gy0aElG+xO2rMNszSTAW/fEt+/cKLp/xLiDUiwF55tfGlWvflIvpDJ17LA kByA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EjyyN0t+; 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 b13sor95963pgk.33.2019.05.08.01.09.40 for (Google Transport Security); Wed, 08 May 2019 01:09:40 -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:4c54:: with SMTP id m20mr37292632pgl.316.1557302980529; Wed, 08 May 2019 01:09:40 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id j9sm33537133pfc.43.2019.05.08.01.09.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 01:09:39 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH 6/8] rockchip: rk3399: tpl: Add spl_board_init Date: Wed, 8 May 2019 13:39:02 +0530 Message-Id: <20190508080904.1567-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190508080904.1567-1-jagan@amarulasolutions.com> References: <20190508080904.1567-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=EjyyN0t+; 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: , Add spl_board_init for TPL, that have TPL banner will help to print tpl boot prints. Signed-off-by: Jagan Teki --- arch/arm/mach-rockchip/rk3399-board-tpl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3399-board-tpl.c b/arch/arm/mach-rockchip/rk3399-board-tpl.c index 86d3ffe97c..72d0dd914e 100644 --- a/arch/arm/mach-rockchip/rk3399-board-tpl.c +++ b/arch/arm/mach-rockchip/rk3399-board-tpl.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -73,6 +74,12 @@ u32 spl_boot_device(void) return BOOT_DEVICE_BOOTROM; } +void spl_board_init(void) +{ + puts("\nU-Boot TPL " PLAIN_VERSION " (" U_BOOT_DATE " - " + U_BOOT_TIME " " U_BOOT_TZ ")\n"); +} + #ifdef CONFIG_SPL_LOAD_FIT int board_fit_config_name_match(const char *name) { From patchwork Wed May 8 08:09:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 398 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 22B633F066 for ; Wed, 8 May 2019 10:09:46 +0200 (CEST) Received: by mail-pf1-f197.google.com with SMTP id j1sf12140655pff.1 for ; Wed, 08 May 2019 01:09:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557302985; cv=pass; d=google.com; s=arc-20160816; b=EVm05EZa45I+QorSv27vdS/2WQL0Ftga1bLxZjWjDdJUiNHMNe19CtWuBN2xWFNXYd 6jZNposotoD+sGa76xj/O77DLmm/WbI9DUTS1pt9ypajxpEVcQA0IMFiKXnu1OwexT7j LnZku2a/mGtHKwHHvjuvA/9cZ+brD3eegcI3UocEVGl6IS9Z1Kv0CHS6vO76F5HPYIhh NLZJsJSw5sGsjT6sQa1s7Bxid1Olfiz/D7O4IMWav2w3mztgShWzf5iyzhWOqIsusDm7 jBSOdlSlW7LEUksVm2myt5eWFGLlW62+v7PIo2Xhb48AAgQ+DwkVR1T3lgyhDuFLqsHW la3w== 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=QUpWiIuQwT/FhqAGVT83FVhMCbOby6OriaBXPlZB9Tk=; b=vZLpzM7N9K3mt1MbQvZJ1Fo9ISXAeq1TKeY3sL4jL4AGrt5SmN/vNPm/e5msfIyjLu 1/XUhpN5ywZuvYHRuxLIjYfcNvnTKUTU5nzqtARrGxjFYLtCVoFH+onnT17C9gqfjpbl MUZuN246BOjaCVQrb/XzvUyzumlr7pZHolAjztjZ48xg7YhKhJXkAZmpiQHh95FjKsRV E5OQfiEn2jghctYzsBj0ZhSaWQJfqtHFDkGHXRL2pgV1UD0LOFxQcl+lIi9MNduUSxG/ 9NQO2fHFNBid+tzirWZM8AKXVTTwTiOeyxr3IPIfRIe2hVE0a/dR6a05ZGx2x55SdMne cTFg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LA9y5MaF; 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=QUpWiIuQwT/FhqAGVT83FVhMCbOby6OriaBXPlZB9Tk=; b=Wt8oeG8XKxKf0KYCvVo4EEZUyJUgkP45vHszbAyRw8SgHA+Q95OpKb/DLEfdAUv3mj CcAruKMgRdmU4f6CcOgpwaECYNExvbmfNEY4P1TxLJkH1yza0keUZh9WFJ+WpwUu3RrD pNQX1Kb3erEMbyfbxbZCELWWfx6BKrq2B03fo= 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=QUpWiIuQwT/FhqAGVT83FVhMCbOby6OriaBXPlZB9Tk=; b=kXcxhCYrbphhTT3e6b9z/54gPVKJU0rOFdVl/QOr+EbzgNjRh5sYiqXWCV2V5JjIEd TLbSgH2+tEQMLQcUvoT6HN61x/lro+UEl8UuyazSBK/rQD5H3tG+dwAAnHnKQrMKMket SWSW223CerdgJ4f92Vmceb8NNvOh1dG5nqKiAw8xWD3apS4as6jd7GE4ZCXg9LKtUVpO +UWMDIR/OmrJ1tWtIEM9Z3EcUB2Zto3IPwQMnJlwti5wzg+Dx6W5msrAALVBbLIMqrwG jGnDlqWF36w72CEN80PqsYmgRLSo34XG9+lci0a+W5SsU3W1x96Iufin7x7eLE2cT1ZO zgYg== X-Gm-Message-State: APjAAAWhVeiCxmgK+GLqDU3yUu0HgOi+Kb1MK+A02Ivb1uLxdOYX51Fv Z5ZozRsWQpmnCEOzM/nASgxrXYN+ X-Google-Smtp-Source: APXvYqzaKN/3bj+/M4EVUvwboPfjgtA6R8vaGtyNmSU3GYr4aH5t++AVsz1U1jhk8BOHYeSfj6Qbbw== X-Received: by 2002:a63:5511:: with SMTP id j17mr45417734pgb.449.1557302984981; Wed, 08 May 2019 01:09:44 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:3483:: with SMTP id b125ls3916888pfa.11.gmail; Wed, 08 May 2019 01:09:44 -0700 (PDT) X-Received: by 2002:a63:171c:: with SMTP id x28mr44779686pgl.12.1557302984684; Wed, 08 May 2019 01:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557302984; cv=none; d=google.com; s=arc-20160816; b=oHjNetGKCZAyceooGoTUF2vRl/FrEhvo/SWWz7Xm3FP8qiR3jFQaGQ6Ebz9e6o4Qf0 hhEBBIdIRpKZZR4+LD3vHhkoyOn+SrIUO2AqFWLqm0uv7WT1ib1o5Jkpu82Ceup1FEuL MdBfFS6G9BjVwAQIKLBV5HLe9rR1g5kyCQAqjTVsNGNbx9Q7yFpdAXg0v6lkyJVL8dy4 ucOVNzPxEuWbBALYLLsFHdNEZSzKPWtQn02xwr2jz0wSuDnxQOWHCz6VCvoaHCRK6JGl ziUFiRmSL+n4Be7/O5ylnptzKYDbhzTXYyh0XSjeFSRfB8zTrDBstrZagbGvbFoJxKl0 2v5g== 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=rmGkWdUXEAN+u9N24/e8pZdAG3S+WpbqZafK0k9TbvA=; b=RKWKI3spmuenI7npcnrEvRGow+r5KN9R96HuIoTmvbZ7D+juY9kCKp4t3lvhgl6za+ IMzzjxs4pEDFNikYpy0wAnnI20ExoCqF2niVD8DclA/CEVbSTGlhKvIaTNnKHEm0XFlZ /+j52C6W+2lU9s2bwYVkytLnUbhMru7Kc+8mYIxlK/GR7qH7+SHeYf8qg6KKbtZP+ZMv Q64/MmZAQXdw5WNygKpxEdy11jvMO2fxtaWeftH5otkRxVjqpBeiCEx6tnTK5RdIT8Cb o6HxAliFIcqBe6SDD9hTEuyPAIESsITM5VsKldMtBdFFUTjx5wqmo1oPnAzoWQrrJuAp ffOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LA9y5MaF; 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 e34sor12204487pge.36.2019.05.08.01.09.44 for (Google Transport Security); Wed, 08 May 2019 01:09:44 -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:9d8d:: with SMTP id i135mr28622896pgd.245.1557302984423; Wed, 08 May 2019 01:09:44 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id j9sm33537133pfc.43.2019.05.08.01.09.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 01:09:43 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH 7/8] rockchip: rk3399: tpl: Mark printascii into debug Date: Wed, 8 May 2019 13:39:03 +0530 Message-Id: <20190508080904.1567-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190508080904.1567-1-jagan@amarulasolutions.com> References: <20190508080904.1567-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=LA9y5MaF; 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: , Now, we have spl_board_init which has TPL banner prints. So mark the 'U-Boot TPL board init' print into debug. Signed-off-by: Jagan Teki --- arch/arm/mach-rockchip/rk3399-board-tpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/rk3399-board-tpl.c b/arch/arm/mach-rockchip/rk3399-board-tpl.c index 72d0dd914e..4a301249b4 100644 --- a/arch/arm/mach-rockchip/rk3399-board-tpl.c +++ b/arch/arm/mach-rockchip/rk3399-board-tpl.c @@ -47,7 +47,7 @@ void board_init_f(ulong dummy) * printhex8(0x1234); * printascii("string"); */ - printascii("U-Boot TPL board init\n"); + debug("U-Boot TPL board init\n"); #endif ret = spl_early_init(); if (ret) { From patchwork Wed May 8 08:09:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 399 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2BE743F066 for ; Wed, 8 May 2019 10:09:50 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id g6sf11037778plp.18 for ; Wed, 08 May 2019 01:09:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557302989; cv=pass; d=google.com; s=arc-20160816; b=H697rQp4dnIb6SZKXOG5/GYcEpTI5U4LI+7eVQgu7hZCukXJec5ee5Lh2cC7eIJTct OKuKqJCRrnDbfOG1EJp3G2s6aoaZQky7f4tk+wckSywVA0MEsP3otMV5O9IALFpbrmUx Xj7DkWpnVWPVuQc8vNyCmB4IDtcfd0gYnZo/OLs7fygHaQMF4LoMqvEWp/ruO4RR0jDS jkHcvkqyhSn3QeEAGPoc6P8XowBBmhSiEH7ijdVHkLHQD04msG5s779HR+zWfvNcAC5S 0qF48kFg6CdtZzjfqNYAWAQ9WAsrd4tTOcsqBwBjYJIgOupWZFk+Bl9GrXpyM763KGUj 4ZuA== 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=rYCA2lcc+F/TEX2XM4ON6UJDowcxDeiGxQIutFl1m58=; b=wpgdSRf84tZkczVZSzbIGY+WNmO+nhSF7aLgcDLQ/+REsIKdOAJQywfSKNc+we7Mpn TJflmZJFrKtqmOlpcD94XCo4pQOUGomLD2usPGf8Bw2Q6jTheAn2avEa4eBlSRNru/pi yxzc2w/aX/YNwnEDVG4eRceKhup0HDOn8K9UV/j8aGsrG2JmLWzeLyOoZd3TUPTQZjcD +AoZdglOvEitXSS1rls3esRUmA7KalsjwXC3f9s8NzgPr8q3Ua+YgWsqldZKjxwuE0vN 8GsuE0IombTJ3J2anckhnY9B2ix31fO5C8sGem2r4Hl4vMikbWkH/fuCEAomgpUc8lIS MaJg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=laPxROST; 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=rYCA2lcc+F/TEX2XM4ON6UJDowcxDeiGxQIutFl1m58=; b=GOo4JakYzOr9Luhr4iT8sR2xVYFo9kdud7vxmHi6apfP/xAG9Ke4QGHOBSMpO75p7+ DcXW1LuLF6mo/gdIiWiY88DoXdaOba0WdNaolfbnKE5HZDGcbUlUNWWcoY/kISIXQCzc SxlzrcQCh7IvV7QCjOhzv5qRKXTCCFng07BH0= 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=rYCA2lcc+F/TEX2XM4ON6UJDowcxDeiGxQIutFl1m58=; b=JOpdUgNlHYeNSdk0J8E8eQtxYFzza1T9tpUOJhKsfgRJqi6Kzh/pQyefc7iJWmYyZn XOUR/GwsInUi/2P49ly/dhQPIWoH7Mu5dFXajUp3WXonRGOBGNyufRYjvmpfWm/S7Kaz dPxZl0JdyEk8WADz8fs7WfHFuGFvFd4EWpkFz/auiYJ8rCMj9apOGCGIraylsaqoq73/ 2CHpF+yc31vVC1KL4MQhFgBaJqIGK0raIao//k/gmOKXlNqvKm+XyUiS9ucRU/Baq0oN YUfmmkPur6gOFR8IECNjahOwIWMQgfCr6avYx7fE3LClWX4cAy26GORgUr2wWd3l1n2R a2sg== X-Gm-Message-State: APjAAAUjoan8bVGDGZf5RxTV5cD3OI12TdcVvBq5vIm5ItLu0dDtEqw1 iJpHxAc6uTVuAI2LELCQRjD0KZrz X-Google-Smtp-Source: APXvYqwXbTIYQLJ3h8m5GMmK/GWAxxHxvgLbrgzz9nBOSr8ZoKwFFf7NlVuTbIzFTtdEb0KvC1D9Mg== X-Received: by 2002:a62:7d10:: with SMTP id y16mr8666204pfc.116.1557302989012; Wed, 08 May 2019 01:09:49 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:9148:: with SMTP id 8ls5288761pfi.2.gmail; Wed, 08 May 2019 01:09:48 -0700 (PDT) X-Received: by 2002:a63:f146:: with SMTP id o6mr10945925pgk.179.1557302988751; Wed, 08 May 2019 01:09:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557302988; cv=none; d=google.com; s=arc-20160816; b=NfhuqzrZJfvm+uR+r/HJbdV6/FgboAZYMc3wpbQ+PymyqTaMdME0tS0EvFLhR/KteO riGjnzgjk/9YF4225KkFJF3IJn5bX3xxo2vdOGtPYqdorJxuqFWiG9wjt9BVB/LAwHKv OKurs2h+/v/BbM1kJhdgLwM4aIlTZ8EMlWjOWMNsT/2txnpPeB0/dI4vXv8q8E4zZGAK srX/sz1TjFhC9domMAauo1HQX/jw3WMsOZ9HXm77v0nX4qp33Rq1/CxOOhztIPZmBpoj loJb2WrP2duazXIy/rdeJHMpdZ7Bw52sOzcnnbrxTRjalBYGnxtWBgmyhPlTDFfRPobV d9Mw== 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=YAVX44TjixlyUBQzD0G7+JGPLwAIIoO4XVm2kwePVsI=; b=YPNbLTtvImPQ5BEmchNRWGBQaf2K3oQ2ZcZxvKOK2NTFpo5zO9uDRXBFm6SittfcFv lcMNymukmBLHY+cTQdwyuJWcVlNLB080CVkpWm+9sSR9NLwbMW2/5JtjA2V2bgBpOa+q OgqGJCswBLW2DeQhf7WU3Lykx6ibEqsgsokkHNGFnsFq467uIo8XvfKi7z3YQUqI5GEN gio4ETEERqKnFV4cp+zd3Og85qvjWVI8SErjt6QBuq45zDA76AHwn+KEzGR/raKl1nj0 zDoUjYS+gHh7bjuehtgUGHK7CBqyWnzu/Wo+NwlTqbwxFUD0VFt8pUBVa3L4s/cUgq1p +oDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=laPxROST; 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 v9sor16694729pgs.55.2019.05.08.01.09.48 for (Google Transport Security); Wed, 08 May 2019 01:09:48 -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:a65:5886:: with SMTP id d6mr45196928pgu.295.1557302988487; Wed, 08 May 2019 01:09:48 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id j9sm33537133pfc.43.2019.05.08.01.09.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 01:09:47 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH 8/8] rockchip: rk3399: Enable TPL_BOARD_INIT Date: Wed, 8 May 2019 13:39:04 +0530 Message-Id: <20190508080904.1567-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190508080904.1567-1-jagan@amarulasolutions.com> References: <20190508080904.1567-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=laPxROST; 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 TPL_BOARD_INIT, this would help us to show TPL boot prints. Signed-off-by: Jagan Teki --- arch/arm/mach-rockchip/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index ce039022df..1d483be8b9 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -184,6 +184,7 @@ config ROCKCHIP_RK3399 imply TPL_LIBCOMMON_SUPPORT imply TPL_LIBGENERIC_SUPPORT imply TPL_SYS_MALLOC_SIMPLE + imply TPL_BOARD_INIT imply TPL_BOOTROM_SUPPORT imply TPL_DRIVERS_MISC_SUPPORT imply TPL_OF_CONTROL