From patchwork Tue Apr 18 11:17:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eddie Cai X-Patchwork-Id: 751798 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3w6jKY4zTtz9s2s for ; Tue, 18 Apr 2017 21:17:53 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="NxQ7HGk4"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id 7245DC21CDA; Tue, 18 Apr 2017 11:17:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 44AFFC21C36; Tue, 18 Apr 2017 11:17:44 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 06EFDC21C36; Tue, 18 Apr 2017 11:17:42 +0000 (UTC) Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by lists.denx.de (Postfix) with ESMTPS id 5D39BC21C31 for ; Tue, 18 Apr 2017 11:17:42 +0000 (UTC) Received: by mail-pf0-f196.google.com with SMTP id a188so29972578pfa.2 for ; Tue, 18 Apr 2017 04:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ktb6+9tDaEs1OZJvVXulxpfpekLTcr7YW6gUVthja4Y=; b=NxQ7HGk4e5G6+oFGwHL1j6BCeNdUaSUXIKNdYK6QBErm4Fz8mJ/1ZRisCKL5JQth9W SgBMGl7N0nhg3xoVTS6ChJhDq1/hAbR+oBix8A7wfMDa83PClPD1ABXHlc0HyK4Lxfn7 U/ZHTDiJTj8+Y4eSUuLFBwMeQcdvAa2jkr8+wfBp/uiPPhhG3sS0lBnV5c3/IpVK7cG7 /GGwRqqTjX+Iz6WhHkcPWtdC5e7HzwqLchghzXScqv/QYZ4ldvNMjT+kJ184ZCevRXHO MaErnnXFp+kQV41DfM0vMQFSQlwBebobYDGn1L1wwlmjHVAYFpP53ZnCZ9iq9X5zZkoi WU7A== 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; bh=ktb6+9tDaEs1OZJvVXulxpfpekLTcr7YW6gUVthja4Y=; b=i8OPmVVRKJ2Q3H+S7IyDiHPmb82uIl7AbBSTVoB+NNT0p90Sofa+UkpKH3lFIxcu6I cgLNjrv0mT8w3EtJW9ow6D2GN1UwpijP/GQAVoQg1s7oHD4CFCNcl1E6mwFhPVuF2TLK Oh/oAqpgAutQHMLLUaVQb94eIg7rbruqsyLZ4oi1+vS/bybpzBK36ocUQevo0tk3MJPz if8VtV/EDKO1eD3hb1ngvSqYkw85p46NYZredqOmE8qbVM+ouANbMx2fvB6vCtgVgieu NYRtImX/f+F0p80jWiRk1eEvSDcUF0gUuy+D66fx2yvwgjXpI951zdEKBvb6jNojgeQA 2JhQ== X-Gm-Message-State: AN3rC/7cfPHjrbhRNPupaKcxI+VvRSEbvkVSrYOFSvSClXh86oO+vVKf 5T8JWUxhEcnH0A== X-Received: by 10.98.215.94 with SMTP id v30mr3206228pfl.121.1492514260763; Tue, 18 Apr 2017 04:17:40 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id y190sm1755707pgy.39.2017.04.18.04.17.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Apr 2017 04:17:39 -0700 (PDT) From: Eddie Cai To: sjg@chromium.org, albert.u.boot@aribaud.net Date: Tue, 18 Apr 2017 19:17:27 +0800 Message-Id: <20170418111727.1814-1-eddie.cai.linux@gmail.com> X-Mailer: git-send-email 2.10.2 Cc: u-boot@lists.denx.de Subject: [U-Boot] rockchip: enable debug uart X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" enable debug uart for rk3288 and print something to let people know where we are Signed-off-by: Eddie Cai Reviewed-by: Simon Glass --- arch/arm/mach-rockchip/rk3288-board-spl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c b/arch/arm/mach-rockchip/rk3288-board-spl.c index 74f3379..8ca6b1e 100644 --- a/arch/arm/mach-rockchip/rk3288-board-spl.c +++ b/arch/arm/mach-rockchip/rk3288-board-spl.c @@ -164,7 +164,6 @@ void board_init_f(ulong dummy) int ret; /* Example code showing how to enable the debug UART on RK3288 */ -#ifdef EARLY_UART #include /* Enable early UART on the RK3288 */ #define GRF_BASE 0xff770000 @@ -183,8 +182,7 @@ void board_init_f(ulong dummy) * printascii("string"); */ debug_uart_init(); -#endif - + debug("\nspl:debug uart enabled in %s\n", __func__); ret = spl_early_init(); if (ret) { debug("spl_early_init() failed: %d\n", ret); @@ -205,7 +203,7 @@ void board_init_f(ulong dummy) debug("Pinctrl init failed: %d\n", ret); return; } - + debug("\nspl:init dram\n"); ret = uclass_get_device(UCLASS_RAM, 0, &dev); if (ret) { debug("DRAM init failed: %d\n", ret);