From patchwork Thu Jun 20 18:54: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: 680 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 945FF3F086 for ; Thu, 20 Jun 2019 20:55:24 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id j36sf2344329pgb.20 for ; Thu, 20 Jun 2019 11:55:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561056923; cv=pass; d=google.com; s=arc-20160816; b=BwviiS0OjwTJ7uQ2FUbUSe0Y3mcnT4JIdqjzyyBG1kU0beX0JcBNy6zk9H6glDU9WK m1sryO72KzZGETCwPY4SbdnyWYx3I2FTSCz/rNsqY43PVqmQ7mARyWhsVZKWNTV4O7iD N9tOCsm7PGu9HrbhmatuLFxsRtwf3I52esp2odYz/8DzFdMHk49qHIk3kEOCpH7PvAwZ 1/Opa/Wa5O3MYYaBNGgcONPKmbUaoDorSFXA+hxmyQ+ETri/MQIy1k8PLj8AGVFJNU+8 An/OO0EkH150aGg3gjPyxw8pIwR7wokfCpii4fT1z5AxpjYUWOJxB8i9XbTz/t/Py31S nYEw== 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=r8GDsD4Zm6nWK21HRk1bQniTZoDsT2gDTW7YD2XIj6qtmPTKUiNPQpIl2vWem2rgnl CBEg4ZZo7LlJvOQhrqeAbwV0QIf6BWVKt7ql1fjxdSB3zuxegJ3osyEpfWG++JIYvgl2 YbFKIDKjPVgfkQhWBRxyFUn3fsA7BrA9Fp8Pf2Gx4tMI1iB8WS+PAw/B8JUzzdBZehpn 8iSd3EkcJbmFAIsAPArNKXmYFJ2/3Sfo2wxDn/VI3uOs5spBL30LsoitCdedQfZgotbc oT9jCm2cKBwdrTRHI+udqzEmAKwbEd5PzmOw49A3KHGZBsS3/sjP5176IlbAzhrxZ+39 mr+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lh5IPRX3; 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=Nrims0adXiALU5fnzSQmKGxE7W47qp9XGI4u9ioMq7JBFplkT4rCPVUoNIYdPe8vVk k4yD+Z6ml/zi9LR2DNkwA9lY3UFLSPPtWvY6R1jl1obXf12dm40ZrCxHWFplu3cubYNF 1krFW4iscAg0N7FrWrfE/AwKLO5wF2DnnYsiI= 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=lHW0F06/anorF5eQRD4heekoDpHF0B0EWSewpsiZGJxmq4H9EUZAD5ztcEKPnS8wZF pclvUltAY6T/RDSHxa4mxq3aAwy/yNO6vlxRqJ2qutlKqnGWsP+qe4mEcELzO0Xfr6QW spi87lKqt+jG2pJGYTEYqdO5TiN7DDdCK1OS7PTe5KN7MnB/wtNaoPIN/tOImCTHnjPL 413sCd6GL1SAamgK1+Zig3GowdKC8M7xJFgiG4oC6X6x/DDrvTWwxtM84AUHCVHPg1l0 Ajq2aSM5ss5BrWwL8zajwjgLsNlAlM4oCDe72thSoJnSRxf79P0VzrjABYFAGofGz0C+ L/nQ== X-Gm-Message-State: APjAAAVftjIIiYZqYT4QlyMEdBXY1aXwPubz7/ldtPCSWGvDrrPpoDTI SJnlHFxYc+wyucE1l+7gPOr97bEU X-Google-Smtp-Source: APXvYqw6rPBYplS9tFc+lOE4Igfw593REtruQT9Td1R3eiVwG36ASUMkLpVWfXqOEBoKXMQBcWMvnw== X-Received: by 2002:a17:902:704a:: with SMTP id h10mr18674878plt.337.1561056923457; Thu, 20 Jun 2019 11:55:23 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:8056:: with SMTP id y22ls1511115pfm.6.gmail; Thu, 20 Jun 2019 11:55:23 -0700 (PDT) X-Received: by 2002:a63:9502:: with SMTP id p2mr3935744pgd.12.1561056923069; Thu, 20 Jun 2019 11:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561056923; cv=none; d=google.com; s=arc-20160816; b=tYBNUPMNgWLXO2ZutkEzCO3pdS+nR51lKKHucGkKYp3Vti9635zVO5rTsXtKvvgOLN wHAVAZ18L/hFs8UUigfytmkw1oNhD2/B1scsY3N4nURSquneZsxEdlLERYkZZghzMAP7 Cs/zXPHk2JOTk1/ExRPiUsR7jbEKdmyQUeqxSVflp8Mu2URC79piXRJZPACJnAz4bimz 5GPql66rVhjg6pl37jXiqRH2R46wiQOT8gWIaaf+S3R9iz/Gz40CkWiU71yLKKwDhwEm kjlSaxNhRdubS5XgBEfAD8q7TQ9r7jcDuRZKUumlYdUz630DzQTlkqZDcTtzyWpUc6+t 6FxA== 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=HN6ZN2K0xyhXLH7XZfGPu+oBjkshaJS1Tr5Z362rUrGyh4BdXE3O33IzsNGVGpxHN8 Hp6Q/QYMlO2FerJKtV1yv+f8cr70n914MhuTwpTGe1geKmGFiFNIWXUt2VNFawGYoV6D jtvXOSQ0oL2ngtLR4oH4RvyHVbA1iXuNRG4Ohp1n+EKiHcAMU4ue0lowlv3r7openKUT kvW5KtWpWUCIC514wjsDz62XKmVaESjZjwiHykE08/Dx6CNQG/m7nXFYtHaT4AP4amOM r44NKY9pyA5+T081bNa9U7X2hwvNlvRRjVECI2HuoyRZoQHjQtyIO6PBTtpwD3pc1oFw H+7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lh5IPRX3; 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 g9sor892586pjs.21.2019.06.20.11.55.23 for (Google Transport Security); Thu, 20 Jun 2019 11:55:23 -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:90a:ad93:: with SMTP id s19mr1184079pjq.36.1561056922773; Thu, 20 Jun 2019 11:55:22 -0700 (PDT) Received: from localhost.localdomain ([183.82.225.128]) by smtp.gmail.com with ESMTPSA id k3sm372183pju.27.2019.06.20.11.55.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 11:55:22 -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 1/8] board: rk3399: Drop explicit uart enablement in spl_board_init Date: Fri, 21 Jun 2019 00:24:59 +0530 Message-Id: <20190620185506.11449-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190620185506.11449-1-jagan@amarulasolutions.com> References: <20190620185506.11449-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=lh5IPRX3; 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 Reviewed-by: Kever Yang --- 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 Thu Jun 20 18:55: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: 681 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 C52443F086 for ; Thu, 20 Jun 2019 20:55:28 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id h27sf2596228pfq.17 for ; Thu, 20 Jun 2019 11:55:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561056926; cv=pass; d=google.com; s=arc-20160816; b=hWvnfN8fANHdOChhmJcJ2hqb3HoUuUiD22Q54rbiIwqLVGmY8Yd5zNJbBtYya9Dz3b uXTqqnYVKqY2wOmUNdEX9q4x9QIp1dx1AWdSAqOr+unXvnTc/JxmjAP6PeoEziFWbwBr NGDc4zRqgWfWwYEqvfyzPcd2sKMZPGcK/FLK6kUE4XMESR+FYpQlWa1of3gxrkaxEUcC HIy9MJ6T7S5M2LdUWauour+dscDVxwo+0qsOt2iu/+l7Id41EPoscG4BrX9W54A/2OZt 4i9HqDQVbw79Y0HKFLSDEqY6OLrHD0x4tY30cdxMUmmzCf3rdNH7i6cC7Y0T2C3XAJfZ jO7A== 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=igJZszPbKtHa61Qp/b12I1VBL+bVHLl/JJKIE4RZ4ME=; b=LQntWeEoug5+n60V6YXsJxc16ZUEV07Su3GNg9+4Bh891fc/qf08O4VdQKiNBCfxQx Brj+R1k91QTZlfIJT3BR3Ef6FaPPB4Lz2jC50RZgasbZokqki0M1It4GCS5u56UwAHrO PybB03EX3aOnBCB8r9trini8IJ+IG1JaOXIKvL7fzjY1oe3rr/3EF91Mr6NPvHksD/KZ ndXgqh2E4uQCv7GaM0SsxoA24Z4EmkIo1J5c4763dVuNPxhuGxjJE0+2sxR8Gkm30XEr igHv19U0Kl3KuEyTwarYYnreCz3dtSPkqmyZeDJ/NCDKOXEQ84DNzaQ4P5KYWlDQd8+j +XWw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EZnVm6BN; 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=igJZszPbKtHa61Qp/b12I1VBL+bVHLl/JJKIE4RZ4ME=; b=i66uUQZ5E+Nv6W21tY5V8BO+H+Ka7dJ0tFs1+6w1fzhGy3wickc7403I5WdkjMNbZ1 Hax38dPIfGWTNP5o2PQNb1r0yE/RTGfZDXICnszrCVdqjrkY5r3Goe3jh/BFrdQrcBqY sU0sfEZmVIrjQRNa6RwOrVo7bvkvoQsP3R8Cs= 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=igJZszPbKtHa61Qp/b12I1VBL+bVHLl/JJKIE4RZ4ME=; b=X/dImSzyuW3BX4UoIDK0Vd4kC7aOWemx621diDrxBfRotj3cO9pEkN3W6HroMJ5zYY PGEdokUsDsJnu6S2/z0RcRpWIJYVFqho6NZR1wBxDbS0POQU5dqsz+/UfzzoKYFJy2Fg qdwIWLVebsySm4rL0E6ETJftWKVIc2JAB8T/IoMJHwd019QWOH8IkjeZ6RWjxBN5gLJi IdSU2AN95ZnLyBAmuDavTGG2gl4iVgPhZBSFvSdFEWUenVt/TyE9E1/go6MF88wKACV7 u8J4KYfIM98/IB60OZvSYSAd4o2KS20SBfMkDqwJEvsA/HX6J1A7rN9yPZH02RsNHS5e Pcug== X-Gm-Message-State: APjAAAUvguDVYkuPgivSVANw+NoX1C6ynihuycjEodpBbj1cT6sk4WxF Ov6XoUE22+gXwnZVMjgwb/b6MnOW X-Google-Smtp-Source: APXvYqwkObCd2JfRpsIYa6n6tnCFyi0PIxeM4sxiYHSucNm5T9kd1u/apzFMsKbDGDC35i6YYNskew== X-Received: by 2002:a17:902:324:: with SMTP id 33mr126451261pld.284.1561056926766; Thu, 20 Jun 2019 11:55:26 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:a986:: with SMTP id bh6ls1551576plb.8.gmail; Thu, 20 Jun 2019 11:55:26 -0700 (PDT) X-Received: by 2002:a17:902:29a7:: with SMTP id h36mr75707103plb.158.1561056926417; Thu, 20 Jun 2019 11:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561056926; cv=none; d=google.com; s=arc-20160816; b=dRzYoS2EIGlUH8z+jFnU8xb0tqKWcJWBG3DQJJEPQXgTKx9Ye0+p0CiEvcyONsrZpf DWVryOwWAMTs72CmaYVKjtidT195ZlsYGiJR5AqO8O+ewgFHHqLJXaXyqKEzDpX9iP5q PnH8A8Tqppib57kimZ7CEUez7qJe2HYssuebPWk2uKdLyDlyamQYk8E9EGrBFfQ5Le+U yorP2Yk7GeT2NgFFLj4R0CaePULivXE4QHeg41wNZSaR6XetK9MMyiYXKVA66bfNJ/MA imC4PR9SDGNQRFoefpSiHYKoTYMip3jX4NUxsKy+izXOL6vEZmdtDHDX1ZcqlUsQR5zS k0zg== 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=9wih55CXddiDKm5F7deTRcQNx2Iu0ElwljLUHTPsi0A=; b=ORPpY47z4c8xVQpWogEb6Cd77zz7+HYXHK6tYhwNQWDVyNTsb7X3YHCyo24X2I99Y8 NAgBnyFUQXm0LD/SR9Y3b7LHUboKsMDIa9tnLaE3RN3n1q8QeugsBRE/eRON1bbVC5Lt bDNygynkh3+l8PAq5sp7cQ/1DUKSYS/u0z5bPGdizzK4bujq0B7fJ2EGOl6KcB17Y4il chm2OarSinIUHMPLm07aGT3qY+tUNn/fhQvsLodm3yR2sZ0Xo00Zz+EASTz9JCJ7i1ca x14J2l4Z+WAIKv3rpwo23Qsbsoh8lrPGvnUVpEPHVYXSTAn64aS7lP1R9DckpbgGYl6G sHBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EZnVm6BN; 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 m12sor571230pgd.27.2019.06.20.11.55.26 for (Google Transport Security); Thu, 20 Jun 2019 11:55:26 -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:231a:: with SMTP id j26mr13869497pgj.389.1561056925968; Thu, 20 Jun 2019 11:55:25 -0700 (PDT) Received: from localhost.localdomain ([183.82.225.128]) by smtp.gmail.com with ESMTPSA id k3sm372183pju.27.2019.06.20.11.55.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 11:55:25 -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 2/8] rockchip: rk3399: Support common spl_board_init Date: Fri, 21 Jun 2019 00:25:00 +0530 Message-Id: <20190620185506.11449-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190620185506.11449-1-jagan@amarulasolutions.com> References: <20190620185506.11449-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=EZnVm6BN; 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 Reviewed-by: Kever Yang --- 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 800ca80022..65c98b697d 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) @@ -202,6 +205,66 @@ void board_init_f(ulong dummy) } } +#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 Thu Jun 20 18:55: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: 682 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 773E73F086 for ; Thu, 20 Jun 2019 20:55:31 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id k19sf2014853pgl.0 for ; Thu, 20 Jun 2019 11:55:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561056930; cv=pass; d=google.com; s=arc-20160816; b=PdRF+LyFzOggpfNSYbuCphXNRLCnIWz4WwU19OM4xPscVrWDEmUOM/rld9hYwsHCSN XGZmSK7BXfnwgGz8cQl13mo43TYcf8YK+uf/+p6/fzriq5OwMiAu7xSRzT39vj7hlOtc wc3GOOBuUz2KVI8mERM0QQNjqgIOxDigdXXxjyygNEaznKoso09+TES6sJnAtcix0nRU vjFXLZuhrgTd022EVTWTq4nfofTCGB2Fi8tppLPUwmTNP/NwaAtmF1idTRkMqkrHT+BL JIOcXuPcGxOCoVybZvrwKSM8XToB8SWEGIg2J8tktuAA6A1ByOKAy/Bk465zaFovOh/P /O1g== 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=J9uEjX+Vu/RNsFg2hCjMaXPJGdZ8cU2kEZCNA0OUNZY=; b=OMTBwb6XiwReZef+22WjWjjsd5ZIjDcGB8e7UD1w9WzxC8YpDb0ollq/NydvFgpx0X ehHcnEfGffQcV3dADPv3XdR8+nWUELTyzfakqbucZWcYtsKMC/DyUpOOgqUWmTHUxMCA WjLFcJ03eU3WieUyht5utydGN1KA6V9QScBwkYOLxs0Z+s4FbWVkMnVHbrzQB3L0wylq RN8vsVI06Ueg1nH8CQkPX3zDi6KvAmKykqiNmRrSnuCJsGv54rTFltKyfA3Tmlke7nbe pBCXXKVKUnxi/aMTczOXRJKRSAGzHhQewhLvkUFZxTRq4B7KNCDkKm99/GYWowXcqm5C WEIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VdsZqfuI; 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=J9uEjX+Vu/RNsFg2hCjMaXPJGdZ8cU2kEZCNA0OUNZY=; b=NPB4dA3DmarmnkFLvbfh49JVVPACvO74QSD1Rd/v09n3D0L/+3XPpjluAIras4d0/+ jMvtvooy6kS9Jdy09IntGcxpmbMjUp3hwynX/qWljjYD/Q0dLWJqj07F63s5D570b6QJ PrZxcaeRhN/i5qovpcNXVfm7r4Adge3SR1CGc= 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=J9uEjX+Vu/RNsFg2hCjMaXPJGdZ8cU2kEZCNA0OUNZY=; b=gIoeCES/kITzukGH4dJ+Eg0555Gl3wQd6HcKNasWjScYTBnnqdhHoNJqv+yhHDap51 MHGthkdm/zXgp7DMTTxj8UARv980eIUSVmtOqcj2Lr65ScJYV0xQUFPp2LgfTakyIpdk ag5jCYzhK9CjD1hg+U0zGLfkyseBs+uCSqOF103Tq5ZMQXZLaVXEuIQp1XdAg9C9Pdnn ztrMKnGPClaPsS/DHhWd/AMH7XFTSivRSC6uCBjavct5gVNrkjeUf0amRTjXZsptoOrY Eo34axP83P4tg4ZBXL2KE21BHkFGxbB/ir25XPDLwuHC6SLb7lrTjj1WR3mihqZnF/gq o/0w== X-Gm-Message-State: APjAAAWH3HyNtp9GS8Yy598BOk+C/pRno360b+7k973vzTJwdAm4IUV6 d8rGx+lodoaPZ6qOUPpNBjQ1+pPL X-Google-Smtp-Source: APXvYqy/jlZnKp4iIk7Ym62/fpRqFgMxdItSjCU+2ndQW5r+0AWWYpvEkoyLJUZuzVaXvtmE9ssBhA== X-Received: by 2002:a63:ed06:: with SMTP id d6mr14168298pgi.267.1561056930259; Thu, 20 Jun 2019 11:55:30 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:868b:: with SMTP id g11ls1551310plo.15.gmail; Thu, 20 Jun 2019 11:55:30 -0700 (PDT) X-Received: by 2002:a17:90a:480d:: with SMTP id a13mr1138901pjh.40.1561056929928; Thu, 20 Jun 2019 11:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561056929; cv=none; d=google.com; s=arc-20160816; b=DDYS+71YkjecVNtPxjrvky0Txt8ibgsonuuC1JP85fNthmpdu0oVYh2cZPapTS9slg uPFfgG3SZI+5nF3R8lPF8zVQo6DOl4ZE6hJOvd+wLyB/tuB+uIpc9mCh1RTbSIt+PTCP sOOnqWzj3KwbEgRynBW/uOyt3UYRwYFR9DJjwT0p2Ob0ntNIoxro3DbFc2332XS9/fey ynJXMwNyULzJ6idwBlLYv1pJLbLC4+siLP02QhyHq1JtMrCvGWM9u9FTVBr6PvK4zOkf TnZqR2rZNti3K0e2EHsGxRVDEQy/eqHLkY/QQ6Y5O0YLZUWywZXSLHWD41l/f8Kk4JZe JJ+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=VLoJ5MKcmskZ9kyymQs6hc6FXGkkC+C7DZBiQC4cJ1Q=; b=DtCSatApZHIqvfJzftC0sbm0ELhtHhcJnykH3Y41VCI/ICPyYPeAnJvEy8Wgtpmjdu gW6BWuFjWy31abpxPqVLyTfsMOkDhOvtseEIfTGJ813S6yITEsTrOGNaQLDsej/HZefY FB0Foid33MVKKl4mclo4sEba2oQUdEu25UbuBl2AWHTBTyIASC7juz597m17MQXahTUu dlMdg89HKxqppUUg+/CmSA3UO7tnbFG5aoMC3+0KN+nPcKREWOFPjPiHki3FPOrs6uQz 24ZK82w1rUQGMtE5s/dLtfBSll7YCvgcvWyBqLvNtOb43GXzyFaR3YF0MKa7qr26w5/Z jSzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VdsZqfuI; 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 w4sor543419pfb.13.2019.06.20.11.55.29 for (Google Transport Security); Thu, 20 Jun 2019 11:55: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:a62:2ccc:: with SMTP id s195mr4767061pfs.256.1561056929497; Thu, 20 Jun 2019 11:55:29 -0700 (PDT) Received: from localhost.localdomain ([183.82.225.128]) by smtp.gmail.com with ESMTPSA id k3sm372183pju.27.2019.06.20.11.55.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 11:55:29 -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 3/8] rockchip: rk3399: spl: Mark printascii into debug Date: Fri, 21 Jun 2019 00:25:01 +0530 Message-Id: <20190620185506.11449-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190620185506.11449-1-jagan@amarulasolutions.com> References: <20190620185506.11449-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=VdsZqfuI; 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 Reviewed-by: Kever Yang --- 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 65c98b697d..890d80025f 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 Thu Jun 20 18:55: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: 683 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 535183F086 for ; Thu, 20 Jun 2019 20:55:34 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id u21sf2603331pfn.15 for ; Thu, 20 Jun 2019 11:55:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561056933; cv=pass; d=google.com; s=arc-20160816; b=c6yuDhOcwDwKgq2GFpzwNKY4B78scWVaDN2K8Ocp4vI3b3Fb1JJc3OuqZ778GTjPcz awCCE/3X/XtjN/BIxNzqSZVzjp8R7+AZ8+zji4X+veDGqCvG+izOxP8eQ5aOq4792TmV PsRtqVBd6Xg3xX2+eNyZGQInyq6K6CyiUfzTApQNJ0eYL+flJ9eL/3+6mXy9yQpoPNrY fzwnFbrBep3TVxd9KNqiNpqb7zZ7/CNzwvgzkjyPmOBkuvoebwACrgyg4Q2utSANb0xu 4hZWZU1RXBCmbEKTzVqNlUtiUJncTRotaMJQf4vmcY65x9TK9iZYlVA9jUDx40FAksrr IXhg== 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=PpARZAPBqBC02qzTUJ2NxeWgGzH7/pYtbfGCLBXXtymNvLZem8vEZR3qcILEplcokQ wfxuQN+fiSx64MGQYT3pxupFgIX8aufHluYSWo4LW4RjlmiSTefPawq7kL77iy5Gc84F 9O9+JxEWY8AQPb7QVd2o2ceRAk6+1Q307yXZW/KDkrsu3KV63x9qvCTaGIORhnyD0e3a ZqiyMgAvAVGC1+yvp5grKklXyJ+p0Yg4sgGIsWwfkLk2askoHva80ENipM1nPx4E7iuH o9g+8m4P93Z5Nx702f1BCyyPDz8waTBtQG5Ccc0IRYuit35AkbmZ9scba8A9CFFIZy1F QotQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=o5EyLc1x; 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=fArnkrSmMT0lz3wbUUX2kUaz5VcqgHZ9Dq+ta2p/uAKztx3QWp/L2aceo3bnI8lWTw D0QrUy7QhmjM4WlWfNv88HnjWwKoFgorQswZ9ZGEuAHAK6CzOQ952BcJCYqPJr+dS2kY 4NNr73Rhzrp9rlnaqz/sWmQYvXpg/Cp3MQj9M= 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=ni1KGfWt+O7aIT2jmfZmrpjqVgb+glbqLMqsjy6an8L+5Dqf7Uf1Emwy3hQXibL8bY axmm0EGuWShDIu3hQs+pXXolSW03ftS1WF5SW9AGY84PiIcshjJZCXh08/HqSyeuPTQF G/tzLyZlD0ooZgczojIsq8oFT9GiNPxGVIIDcRFtV6hQis4ZDt5JeetIhy6FMxvzWYPT HSPrcSZSFlM+4dUMFT27gl8SrqWX3Frp3dabRFDvTJTLd1UrpNbYUmfufUz/KfRU6DNH 08wMxETrPojngikLcwAhVyta/bclDdoAJ7dM4PLN9SiCVltktDC6nMBc89gea+fORJbE yHiw== X-Gm-Message-State: APjAAAUJuvQwDDerTc87SvV5x0MW0gfqvVfHIZRs6k3fIZowvi8LEkSt as+Hl8DR1+oIiqzbnM1VMlYSNQFk X-Google-Smtp-Source: APXvYqz6WUcFXoSXiKmYmSRLSRcJZrmaBA7JkIHpaN+QdU1K49K8EBjl9kmkQOe+wR2vkh7XatwocQ== X-Received: by 2002:a17:90a:710c:: with SMTP id h12mr1158199pjk.36.1561056933175; Thu, 20 Jun 2019 11:55:33 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:2b0b:: with SMTP id r11ls1363832pgr.4.gmail; Thu, 20 Jun 2019 11:55:32 -0700 (PDT) X-Received: by 2002:aa7:80d9:: with SMTP id a25mr33663706pfn.50.1561056932842; Thu, 20 Jun 2019 11:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561056932; cv=none; d=google.com; s=arc-20160816; b=hgOeEMt7EN0i7/K02+nHbHTLg4BSTlFaWFk5aU743WfWLnI1AlOfrJ92IKsVVqldTV XA9SbHvJ8R7W503p/eVnR2o5EbH+RsJPUGmu5VthQn37W1HgiNEGJGktSM8+6NnqaNfz xnlP2IR8Wmt7AJipC1K2DagpOe/8gcdfdq/e7WLejJyfHpR4CTGBaHyIFzQ6CRsGgZqC 2wG2HijDw7M6zySEFKZaS4unpzhF7U08GagEV7UiI7KlJBkhMs8oktQCjefQV7+lUXBY XxnPJiPzLfU1NMjG0OVJO0lfmGMoTq5+oeX6fO3hdlgqgXMfsK1MdXQQKx+YsoB95wD0 ncUA== 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=yTrnIq58qCgyHc3wZf0GQSV/AKWx2rxXlGz58GM5Mmyy+enBgzWXgabuVHVnpgKjxY IjEVfYHXmkkCxHDO8IrtitqN69q/wh+1gBapTl5pXznI8D3UjtgRO7Mj4UZ+LxLqfIKK tLpPRKOIv5zNCsge0DXiFG0n8cp0OspZl/YVjJ1cKBJxgJ2e4biyW76lPqs1d42WyZdZ qVRmh1nmuighNe1H1nm1CJovOfuh4qCRM8Wubl5F+yuMNZqJ5zYZ1mE4x6yYMSxj8K2s ptu/gpknwYgBfQ6+613FQlkjmUy328IkK2E1TQ3nJoaQB8/r72jFex4+57iGbDhRIrFT KDrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=o5EyLc1x; 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 p1sor689129plo.9.2019.06.20.11.55.32 for (Google Transport Security); Thu, 20 Jun 2019 11:55:32 -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:2aab:: with SMTP id j40mr83356445plb.76.1561056932569; Thu, 20 Jun 2019 11:55:32 -0700 (PDT) Received: from localhost.localdomain ([183.82.225.128]) by smtp.gmail.com with ESMTPSA id k3sm372183pju.27.2019.06.20.11.55.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 11:55:32 -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 4/8] rockchip: rk3399: Move u-boot, dm-pre-reloc of uart0, uart2 Date: Fri, 21 Jun 2019 00:25:02 +0530 Message-Id: <20190620185506.11449-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190620185506.11449-1-jagan@amarulasolutions.com> References: <20190620185506.11449-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=o5EyLc1x; 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 Reviewed-by: Kever Yang --- 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 Thu Jun 20 18:55: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: 684 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 760023F086 for ; Thu, 20 Jun 2019 20:55:37 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id d190sf2630973pfa.0 for ; Thu, 20 Jun 2019 11:55:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561056936; cv=pass; d=google.com; s=arc-20160816; b=WJQ/s7vpPYJG/auSsMfDkL1BuYzK35umGNQ8od8/Co/D22LVmMSfOEZ2JBCaa5wowP xdaMHxgShyb2RGukklFkcySK73fSlfJuu9GrqdvQBHPBUl0NAwuYCfoXkYK/wvt83mww So/kbHOtRVKV25WFiPKpP4KSNAg+5PRV4yBkfcNEbKxnAihSc/Lll8oNpGIR2N4REdGU sT9JjOX9Nr+8WiHkny4TEyDc2t/wa7ckStqiau+0Z/0UoI8sliUujg6YnGpmESgZV0Gq MFenglOqP9tASH3v9hB7K5pCT17DjUIpBqmQ5Am2w1zOzM1nMPbma0ZGvn/6jC8/9Jg2 PM2Q== 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=it2Xcd7Ygx5TZ1KPISMzUxCjd+AjVx28h28XYMU3XAQd986PKrEfLvv3zPdMijiMJX WpOaVZkIZ2gbVnSZti/vN1DetDfEas7V5Z2xX8umEZV/KqpPVDoxV179KXWk9kHHEWPC fGvysJQww5nPZuSgpZCLbh5MV0U04sBNpa0CwjZ1qjDPXR9krap3dw2AWxI6aU6V4FmO VXZPb4Wm/kazsCL+rS0Z9+t/gfI4z2kdjVJOC4Pr/33A30L5fcvQc2ffTnW1iIKwh+uW zr3TgmRFkijfNLqLkfIsD6ixsd1fjwLqa4+WnhK6Pt0s5SHEDOWTYcJikjxOSGgjmgga +THQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GQc1ZbZL; 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=DeYotvwSO2BKBU1kgk+63d1bi3RIY3ollPp7EdzoWQEwkm6FAvZ2XZ83T8kD3cvSHw L8k8j3IOvdA2JUlq3z5es8+7GkcnJJg27BV45BEoQyC4uOrTgNd4jduDUnSZMN+DCoap Yq6ZlSqBKDuyYR35gnJaq4/JQcXJJtr2d1qZg= 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=RNMdk70PilIMIxovd+X/9UDtpbJJWwiKVW9aitpEVBEPo5rQc73I9N9hoP0pNyfjiR IMNzYqXbSR8I/UiElIGeae5MnP2ifTuxzgCcwNQVyFIcBoYigcf7uZvCcRGj8s7UiGVt qsANIvZH2LJbNgp7WiCVOtkxgcubo2IHZ70bcNyg3Dc7zvze6xUaHs9AqR6LVSDVYIhH w+Rbyhld8WvtjY/AF/mLd3916FTfKiz8QnlOMfTW3BOemZhLzGxB/oBKiWukcBXaoFoz f2KZ7JSiS9GsJdrpC3D44hlJQ0dOAf/Ob/AJDYMSYJK6oADbDAwMam2WNZIAbm0PcUMz UOCw== X-Gm-Message-State: APjAAAXdrGSIBzJVU8YcSIPIP1A7YHNGYClaFIgd9zARYJMihh/IyBpR ytigAd2jEV9XyJnac+diDOasKFz/ X-Google-Smtp-Source: APXvYqxFA9dLvO+FK4jnoHWqfV0yBGpeff4WDxdt3+l5Edp654mq6CoLzh+T7UdOtjLaGhlgPvk93Q== X-Received: by 2002:a17:90a:ac13:: with SMTP id o19mr1114404pjq.143.1561056936318; Thu, 20 Jun 2019 11:55:36 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:eb11:: with SMTP id t17ls381428pgh.7.gmail; Thu, 20 Jun 2019 11:55:36 -0700 (PDT) X-Received: by 2002:a65:4342:: with SMTP id k2mr14254736pgq.218.1561056935948; Thu, 20 Jun 2019 11:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561056935; cv=none; d=google.com; s=arc-20160816; b=WFtH3s6XHENjs5s0YnEe57Tzt9fLX6h27H6zjkW1lkwXqFdAfsGN61YP2ldXqaWGCa Kp2W21tW11J+0kwqkrMQwg1kQA8LYsv/6vBos4EfPpSUtCJV8dWM3hKlyKvoJARgoh06 1mYXGV/mxwj60w5K4Eun2sLqGwt7cNC3lFUnV1AR5ZLV2yPsGP0x3whh9E5eTvJMv3UW ouUOR3B4NsvRZuGX57Vc8SmzY7/jBwQ5UDRwdjerHlG0M5MIPt/F2s9iX2Fmeehkse9B +5wrHNv9MYcp3ObaRSiPvuV5OJXVlrOWsh59bG8Y4sMrNedSs5enfASzvmogq7MdoKrA xPfw== 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=f1/Kbn/4UxIPkajU7+GpHC3TZxsIMBhb9BDHv6TL7i6NhRC8v+eRe1Qh214XFhnUzz EP6iDyDAVCRSoy4YCR+3iGU0L7oGM24RDfkOimNnBDHP+jnHkr/w5y9JZcZH/vbBLZXe 66ZsQW5qXcuDVrBTjSZzNEDLyCY/v5BKLd0KUvdpiJ68AHJ4kEBWBf3Rl1g82C5c/fch MRkgKN0bTzEt9/koK+EdwbUqArFCPAx8dV2FzD0JwVHynAvaivitP3DTRBwcrSdX2Toa 8U7KEVZ2CabN4OL5sYtxsxDYyEdt+WbR8RgaG9QJgsmDKI4avgRgvd4abHtWupfo7uuP mLNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GQc1ZbZL; 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 h6sor633139pll.64.2019.06.20.11.55.35 for (Google Transport Security); Thu, 20 Jun 2019 11:55:35 -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:1e9:: with SMTP id b96mr80242148plb.277.1561056935646; Thu, 20 Jun 2019 11:55:35 -0700 (PDT) Received: from localhost.localdomain ([183.82.225.128]) by smtp.gmail.com with ESMTPSA id k3sm372183pju.27.2019.06.20.11.55.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 11:55:35 -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 5/8] rockchip: rk3399: Enable SPL_BOARD_INIT Date: Fri, 21 Jun 2019 00:25:03 +0530 Message-Id: <20190620185506.11449-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190620185506.11449-1-jagan@amarulasolutions.com> References: <20190620185506.11449-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=GQc1ZbZL; 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 Reviewed-by: Kever Yang --- 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 Thu Jun 20 18:55: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: 685 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 9447D3F086 for ; Thu, 20 Jun 2019 20:55:40 +0200 (CEST) Received: by mail-pf1-f197.google.com with SMTP id d190sf2631045pfa.0 for ; Thu, 20 Jun 2019 11:55:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561056939; cv=pass; d=google.com; s=arc-20160816; b=g4TE3ZNOYoIjoA4QOkIxwfNrbuSx0GPtZP0vUWgUt5kdHB7AsloHszTBCmBB8J2/Gk stuinsfvZIlM0BYva5KeacUhkHtN9h2YIXBaGYnZ1zoOkAVTWn4owz/5tdGx6SmObQIS Pt5xXEW73glRAnJxuxyUZBZ0/pNwtKrpK3Q0P4bHllNRjfAkL5DNQHxK49dNpz3PQ6A/ /Fd5ue1mATIf+d4dhAC6lZ47BPsFNF7J1PKVDl1uugKZGFPtGyR+fI0zqufbrusICG19 3ljHokTi7y+BEXIBadNuQDwYhCB9vVaxMK4yiZ0oggmGdqkSky8KSr2xSv01anzsZU/S 0qMw== 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=WpbYcmo0rE1nYGCz9ipn8POr4J4P3mfaVezB0GtFRgfn2p79d4VMRtC+a1oVoIK0+b A23S96enUo2sVFxL4xHgCX/eHGyc1WCS7nr+9f9sC39TkveRBDF82bX/flndnDB5h1tk OJANLpAtch8y/9plj298cRh57nX7ztGBEVq3NmF03lls/geYtRvFbvk9kClI2mMBXbqF UF07a9M1NnT1gYaC/AMI9fDFTOjDGxrLEdJvenCBj0rpiSRKXorTcDSDH078+yhIIZoc 4t/6ET0z58PLdWueedGZ8qfQ18EyGUd09z6TAeQDyNMJ1yNlCqq4FoaAeMgARgY81yFU cJLA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=UYXRB88I; 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=iYarnSmJH/CQSS24t8LD9iUl7HSaZvzVJ66SdOsbgV7KEh8mLosS0sr7f0LFBpubgv VvwK/GRB4t0bO/8aNhQGdlZBzIph7rx3iM5VWa36DHR5pES/c/rQEhYpyar/VrsfpwyM 1N4qcsLVLIZUb/umJIQUxMH9mtyBhDSg0MgTg= 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=B8r1mouaD70E6oFSiUiWUzswFYBj3YQo/lby6etZFMf0E2PfOQ6JPD8JKww1FelrK4 Y5RcxV3y9erzv0o0pLAfEx9sk6rxm5BQyK0Z9VO1B6ljztkwdf/BaFlwA5W8WHYvcuCv Nau0FpCPzLZF4TOqO79cvLBd6r/Xze3iKCgqJ0aGLaL68a4pubMWeMg3IzOzBOBmcSAm wWZ8ldt8Dkd1PZS5y+hZ/H9PvU5ZnzMIB0ghkcuBB0HR0DsNXCcxIFux0C7Cz+Ch2/ES +/ARZ1yQDq6+jmeQZNTy/d/4yuC6aXzKiHRgl+gs2EfxCX7fAA8ATIrGLwu9FBPNqdOP BY9w== X-Gm-Message-State: APjAAAVJ/pXOmDBehBpPBOvI+aRhrWY2EfsQo3awIJA2ONCCtw/XSHve qtAbfkMlrQ6NbdpNgOPAo7QL2e93 X-Google-Smtp-Source: APXvYqx8cQI73w4a4mJeQqIgRLvsCEs9FD20qNoojzi8jIq35G00uVhOXaxjSzvzwiLF1Px7pLybcQ== X-Received: by 2002:a17:902:e287:: with SMTP id cf7mr35611929plb.32.1561056939448; Thu, 20 Jun 2019 11:55:39 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:e444:: with SMTP id i4ls1363025pgk.13.gmail; Thu, 20 Jun 2019 11:55:39 -0700 (PDT) X-Received: by 2002:a63:3042:: with SMTP id w63mr6957548pgw.21.1561056939076; Thu, 20 Jun 2019 11:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561056939; cv=none; d=google.com; s=arc-20160816; b=in7Qr5ylq51MpKcR2u7o0ITGnM/z8hEFqKVLsxrv2KTgK1evuwDzcgwqCKVElGz1yt bODuXR6hidMHYQKWgS/UtnCYoB/Qf6dqXuSwelHZjGi1UkzouwZPE4Q5Hg4Sli2h+BcC lfveKVQz2wmoArNOGf6bFtt+/uodZEKxtlLnCAE2im5Zz12nxVamxnLweAYRiBO3noGp esH2bXPijSnhLbQe0RUMnxfqs+awFWhMmTcFlhSX17mMJEtZnPrNthPJjWRiQhud5zMU v3fpIPg6I5wqS+849tA8zcPnZ/AMZ9ph0Oyh82OKhyZVpae05A5ExPwRruaxdRihASCl 6etQ== 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=FpX8Qa8cNYaGF4tCy5gLSPBwh4DRNwE8rUThV5la97IVufx5Isc/WJDDOqZZbWhIXQ SFbj6W5CBf7K0mb2uaylaxjKxB37UB//cH9LO9tMd8mPy/4Psfl9RMA/W+9zM2ksgJOc C7uH7hRA9xl0sZWWvUuSrbMFYHvT+KUXDBVPL0q+gBIpCmoLJqMkEW9H23LbzGe+1ZQn xu93LysiLUI4ZRb/kq7WYQB/s1GNlTYVIDb7tlyvMeXjgbDoBr8ozPIserDKMCh6rPlJ zB8iapz6Xw/jSt6Fd2P8xIn8kwP6HxDDfD9XrqTwVQutoxy1oRNZi7hZXYtW1GRbpQyp x8Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=UYXRB88I; 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 p61sor652347plb.47.2019.06.20.11.55.39 for (Google Transport Security); Thu, 20 Jun 2019 11:55:39 -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:6947:: with SMTP id k7mr52379067plt.253.1561056938788; Thu, 20 Jun 2019 11:55:38 -0700 (PDT) Received: from localhost.localdomain ([183.82.225.128]) by smtp.gmail.com with ESMTPSA id k3sm372183pju.27.2019.06.20.11.55.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 11:55:38 -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 6/8] rockchip: rk3399: tpl: Add spl_board_init Date: Fri, 21 Jun 2019 00:25:04 +0530 Message-Id: <20190620185506.11449-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190620185506.11449-1-jagan@amarulasolutions.com> References: <20190620185506.11449-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=UYXRB88I; 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 Reviewed-by: Kever Yang --- 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 Thu Jun 20 18:55:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 686 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 025583F086 for ; Thu, 20 Jun 2019 20:55:44 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id k19sf2015148pgl.0 for ; Thu, 20 Jun 2019 11:55:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561056942; cv=pass; d=google.com; s=arc-20160816; b=cmV2LR5bJ1EKzEVpzhGrgPjBjwCtpB9rSIDn7GuRfpWscp/blVMqFRN16gCCqBTm4s dsvocwmmQMF3zTA2BfwTHwPsMg/G2sitHPvoTSYPpsiMvpaEX6ltZvEiSzhj0Fw3XZx/ eC7sVVc1j3VmG7XUd34fKgburPnjcvQb46pjPmoWWkQnIRQP2UQpneWBEJZ9CxlTbsgu ZwY3Vel07fUQO0IOGB7GBxxKEDFEldsnqtXy7izAHZGaZirW97fsQ9lza/2tnyiFDWvj rkfZM0EYu5heU79tAVapTfGwNkjaCF6Oj4Pf7K1u1vkpsYsKwuVbf0tp3mNqUX4Y2u3b V7wA== 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=JIscrQ0qb7AbSnSHLpUyUQ7tXExGb2OqrVavua+odfykoku0Bj11iLgKNb5fkApd47 jeCeRiPSCA73w7ZSe4xFPzsNrItKM9j6hdDfAynN3KMfdVqUjReDdQGG4d1VcdAEFXaC 937BGbgRaxWKUdUz22P5FvIPe7UXj97cNows2FObEGTIDlY1Mtru6BPV4yhAvmSXoiRX +//eFNGQna3HMbol74cpcPyHgmbBIQudYIe7/ZG+OATxXcUTQERwLElCRU5ycC4gOyKj qg5V+e2lITbc6X1NPpecBigs/nvNAnLVk2hlaNjmv4Xhbcgejq21aBQsSYbFMMIVk+U/ KJbw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YODei6VU; 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=PK9w/QS2nAbhtYuBs4gaiWkPdYg+29+2ZXwSVPSEd0fPztsjqogrokBtcwTI/QZ1xA 4FeIg0kJD37hqjLi+NvpDX/j5QOLktQgEgELT00WF8S1YpVF7wUivERyCOzy/9s1mvpe 7NfcdSgcKN1ln98vn83O4543r5LiMvNEpbF2U= 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=amYhN6iHZOTwaZDlA5gIU7nSs1ezIIvI9HAlCbcxDmXSCX8V3hUErYPKq/HPb8R8FI ppPmV5TIWFwXGhkRR3naWtl8KrlGUw1kEcMMi2LO4VaKTfgvHbCB8hIYg7IUURhWwz3M t3btRNJgYqqvoU2azz4wDCNVj+Ys88BHMDRW2z/w9x5IzUTfDI2JYD37K7d/wDD+nBjY 05ab3eo02XkWE7jqQS9jPqTFRXBGIxwpPjZt4W9yeYTqUd6Ryh+kDLyJhcBpKdiVlzVo etsZM0r9X+QZsFPjEnmyhhgpE9v2bycBBQk+vWroLdyEjjS+UNVFb8r6oIwAQ+c8n2RF Yp9w== X-Gm-Message-State: APjAAAVN0Lua7mUea2N0SkYumrCmsn6Z9phWsMblQcMFaniMXatWJgV/ 3fB8DblSFC4odAJDX3Pikl+9enP5 X-Google-Smtp-Source: APXvYqxAJujWXXNR1bk2tG4PIQV759j3xBxTDbhrCq5JKjydxmixRLML93u2heymVYYxFOmaOQEs6g== X-Received: by 2002:a17:90a:3247:: with SMTP id k65mr1135540pjb.49.1561056942825; Thu, 20 Jun 2019 11:55:42 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:ae15:: with SMTP id t21ls129577pjq.2.experimental-gmail; Thu, 20 Jun 2019 11:55:42 -0700 (PDT) X-Received: by 2002:a17:90a:2430:: with SMTP id h45mr1235438pje.14.1561056942451; Thu, 20 Jun 2019 11:55:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561056942; cv=none; d=google.com; s=arc-20160816; b=Vxo9MiPphq7SS+JMaad/cN8IeqfULWh24cKL3l90dpgbNYwEH7JF2LIEaZPH1TEH07 5rok0Rmy82QRMsr2Q1ZNIe3FAO5l7AE1Fdd/+9K3En4Em7A7TAe9QXUPiR0lDikDZJgc SEXVIFfg2SmUP2iHMQzIN7P87maRavqR7NxIO1RtP16fVx7vSRV95uLanBApJVWkm/5M zwVfaUVE4/mbWeZSuqQIirYgYPo1UEfohMDemxyW0VImA//IRwWkyE0dctZIdUgNyWQt 9h3jgcX4wb8XN9HNEyOUPO9ZDf4ZTkcDcbyioX3kOPKEtrlbbldWwF5l74l4p5BlxM8v Vlkg== 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=iYGjME/6MPolT9PLPmIOQ8dJvtyzOaRV/QVkNU+yqE3ZpzViBJYc6xyBrFOrMbqAyx EEqVnBAo2cr3FoMehm3ThFMdTJ+mJjbfJJRlVFvri93TdeD+ednnv/xkKMAcEclFfKWU nuGBlGyCfpGcQo+fqs/QwbrhnJ2J/fT6b5k6QG3NXvHZ/hUNt1ieRzWAs2FT8m+3DCnW 1ypDugmhkk7M1J/Mu/3xfSsnFju8EJwgJuzP6xKsKMMreQOuZaNYQVety4YvPHXrUsC9 YwuA8wH/pWfh+BPC4Us/vjYWBdyUBon1/H6CQjjrk6qePXaFnN58hJqPdJMWOVe0HCdt jLHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YODei6VU; 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 h63sor932051pjb.6.2019.06.20.11.55.42 for (Google Transport Security); Thu, 20 Jun 2019 11:55:42 -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:90a:3086:: with SMTP id h6mr1213422pjb.14.1561056942166; Thu, 20 Jun 2019 11:55:42 -0700 (PDT) Received: from localhost.localdomain ([183.82.225.128]) by smtp.gmail.com with ESMTPSA id k3sm372183pju.27.2019.06.20.11.55.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 11:55:41 -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 7/8] rockchip: rk3399: tpl: Mark printascii into debug Date: Fri, 21 Jun 2019 00:25:05 +0530 Message-Id: <20190620185506.11449-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190620185506.11449-1-jagan@amarulasolutions.com> References: <20190620185506.11449-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=YODei6VU; 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 Reviewed-by: Kever Yang --- 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 Thu Jun 20 18:55:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 687 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 362323F086 for ; Thu, 20 Jun 2019 20:55:47 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id u21sf2603616pfn.15 for ; Thu, 20 Jun 2019 11:55:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561056946; cv=pass; d=google.com; s=arc-20160816; b=vrNEqkPEpS3SvVaW8Ou2ex+hkM5Z+fbKEM3ZuLXWNKbBi0Y8wLlUVozCC1FGkhD79E vLYcuk7nTNRguYUTik7r8JK6o5NzbrpCTAgrKBwlqZUaXghWNA7FNuFDHNt9NnNZZA3c qyqxAs1BdOCy4GH0JU36Ffqb6t1V1I45U8XBjpPaJWQEqJaHBLDhi/MGbXWbR5E7wbTI Qab+BehWL6Wcm0owTP0koxZoaxGlrOPP4dHxQo+lPXjs7+fqnhpolFnmsXRM+qCTwgOg IJplRNvOndMiTLMdXhYgh+zwbMkLJIr8wmfPd6J/FGoIrwPp4mvitnf9qiqrtdggeFgk PLzA== 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=b02y0S7+nLPUDOH73AqTvtIKDNe80edjezt5DJmafvQ6QKwjcty680ZvE+2hTivmuq DowhiyTCpcjWlIybaeUVlwJnDW6zfqkDOq9x25FBvauhumnD5wOpbKDPiO1awEGoDq7h +p3SsR28nPwfTXoYDUJPJJ0Oq9MSg2l0qfPKMyS/Pbf2iHMuTQsGbAYw2QO5hJ/hjWrR kWo3zRRY4w2o4Y9fVMc6wlU81xtGjhInpU6d+ilCSqUsTozMYJpZBkyZwbuKAddss9qm PVMfcQn1JWQ4vN9vYEZc6gSl8GOchtsykCeECfGv3XQp6cgqjsa3+Z2yPsinTNx67nuK sZug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J3Co9Iqj; 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=ObksYyaDAnwUc2vJ1H6F9twdwCdGBjbkf+g9Ecy3YkAdbfxjpP4fuCGIEJs6UzS6rf Hspi3KJVmgyzBedREH95+M3ifanHZU6QqPxDbV/2iVe5qBsGAx/poCR6Wm/sm+8+iIXZ qGchVASiJaKFpKM3BHXdzFYyibP4HxiLF7Syg= 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=pE8fgI9D1+TDUxlQYnswhP65TjQMItvsWxy98M8n31ZC5JIUsOelKpbDo4nK8Hn9aZ mOnGJzIwK2t3YglfWmO6a7VmJ10IAixBTJvHjpxWJYUtqMA1BZnF2Vk6c7ieSVa9SmBF GuiOcXHMcOjNNH5ZL24feNBk3mbI3Ek8R3VAryGHqDF7sY6HDvaR11QCEKKgaY55L9Ru d70hpQ2p51CbencolK/cftAIX0XtEN9kyKGcsQPV6i6zeLaeqObeXPpWhjRJZcNu+/Ql 8lEayHkRlmxqr8IChSVMDxAROrkzUnp0ELStpZXhen6RS9tvbSOK0h85tiN8wKC8NsVD bElg== X-Gm-Message-State: APjAAAX8QAtj+vpVF53p+xIczApFUTVv3Zy8DWyyDjVwQ0LSFVzxPvu8 KzZZIE3X3G0oLVMlQaBKpZ4TxkcC X-Google-Smtp-Source: APXvYqyIcQDe87RL7f20xnEdlJUx30Hst02IDjvw6IMlnP3+AKU4w+d34o8AFJLONVEDAkgqRakSjg== X-Received: by 2002:a63:a46:: with SMTP id z6mr14193401pgk.76.1561056945993; Thu, 20 Jun 2019 11:55:45 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:2b0b:: with SMTP id r11ls1363893pgr.4.gmail; Thu, 20 Jun 2019 11:55:45 -0700 (PDT) X-Received: by 2002:a63:1723:: with SMTP id x35mr9705879pgl.233.1561056945676; Thu, 20 Jun 2019 11:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561056945; cv=none; d=google.com; s=arc-20160816; b=YCxv9zUXEUUlBOQRFWidy8BuCVDgecupcUP8JdzlgRGF6+bwl+8y5Ep61+2sNZ8Bui Mb/3I/jIKShxwFEXd8/O/fQwyxn8L3RXmh5pafQwi1DloBY7Xv1T6FrypJjRFg+RCf9v t+EgF++jdFfqk0J41JJcvlePb6ESQHq6UjCGL6ca/5scKwAFAG+aU8vyR+nK6zYTbUWX 0Nh7gWwmESGIbqSxFu7qGpwo+cZszfs2cXi+pAfUgD/vPuTGNLM2wAcPS6SSfZyOnqZa N9q5r+WBWNN084rRBF6hjsvq9B0G1g/buEyCsrIE1KbFYed0T5w8EEXZXfVrw0uyJD5a rExw== 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=pXNTPFYKT6WG4Jss4QLlHw1VrLt2DbdRIZ+KLC4d4t3dyOSQ7p5uW85ddonNE2YwIU pEivJBF3oopK7CYTM87CrJJwfgRE2NuXjVVbWoFWxL/XSi5c7+5DyqjXYgUCLWxJUi7a +JFBAFndbPSVLxqiATcVZNRJCSYiNPxQI5tNbKKa7qaj7k18R2rSvZLwDGbBdZtVsE6C 26Hm63qY5Lc3sv5o2ubAIOysDrMEyqniO8xMoqfGWiVPbNq974XGDgC9VhfYbsH/tJT8 r9Oy4zFqT8QEyqdpgzbSlAUAnY5Pr8S58rJgrC8rnBOF6l23Rt5D165ocfycFAFgCu4f 6wxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J3Co9Iqj; 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 b18sor599963pgi.7.2019.06.20.11.55.45 for (Google Transport Security); Thu, 20 Jun 2019 11:55:45 -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:4c14:: with SMTP id z20mr14096286pga.360.1561056945317; Thu, 20 Jun 2019 11:55:45 -0700 (PDT) Received: from localhost.localdomain ([183.82.225.128]) by smtp.gmail.com with ESMTPSA id k3sm372183pju.27.2019.06.20.11.55.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 11:55:44 -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 8/8] rockchip: rk3399: Enable TPL_BOARD_INIT Date: Fri, 21 Jun 2019 00:25:06 +0530 Message-Id: <20190620185506.11449-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190620185506.11449-1-jagan@amarulasolutions.com> References: <20190620185506.11449-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=J3Co9Iqj; 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 Reviewed-by: Kever Yang --- 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