From patchwork Mon Jul 13 20:06:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1484 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 945853F03E for ; Mon, 13 Jul 2020 22:07:24 +0200 (CEST) Received: by mail-pj1-f71.google.com with SMTP id k4sf628888pjs.1 for ; Mon, 13 Jul 2020 13:07:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594670843; cv=pass; d=google.com; s=arc-20160816; b=BxLtDD4xliMovXMIykVtg4yfoe4fTgvygpZeTM3uZaWvPuefJfF6lSr+tWXzjLzOx3 NWrni1rzbYtZKvc7DLdUPM4gzGib4ht1O/IOsEKKH0UTftC8bBe49pcbTiUmtr5OgeHT G2isrrcUrSUSSnhZ7ezPXgg+U9137lG2Qsbhj2Zba0xNH31bbTsde2v5cRvmuVU9Vmzp RRTR5jR5udzwDTmKLLxnx0qorS3UGopYL5/2DKI/Drt8c+L4JXfV3WPgiISmfZolAY+i BekM64kixAUs0vhHvPBrJ8cKn43WqDR/IdGWoU3fSQ+p7q2L2TA9L1CQc3B9gyEO3Lhf xQhg== 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:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3PEuV+1Bdp4UAxGA1XyX6Zdl1A2a96fM2pyUa9Weh40=; b=VazeEBFD2656rb2OjYKrVo68iMeTmpsFfsan/rYAPvYBSYaqrCNVQ7+4eZC+oFyDRv 55NbUQ/2tWczZxqivhT3ET2t13nIU8s0l7By5rMUQZWTu+Dif27BSX/jghka0DlUwy0z pyZledGzZjuMepOZVp0HBJuMX6MAJEGiedG4gx8gJJlcxxdM9ULg+RLz4ADNUYySmk/R e2uWC4cDz1pDd2yTY08nN4y8eN01QbI3jd4G0sE0fiP/uCsjvRXv4gCv2G0vpa1ZFkYY 0oNOTsqj+yj+VGqMtgacsmtwgCqLX3uk11LxHz8/WtwBoGwsrut+F8s/urn+ijdnOcdP rDaA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Lxs+H3O6; 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:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=3PEuV+1Bdp4UAxGA1XyX6Zdl1A2a96fM2pyUa9Weh40=; b=YC32MSsqMfbCTtQRyeQh0R9zHAZs3CeU1eQkTdWbYNYQlYjbaDIZYpAyQa90RqPNjR JUC7S+nFS8va+m+ZIC3mGQh70X1c+gNehF9MkVR7pYGDA1UnBjh36pgCYt7NUdzy4tzK MCXWhd1B4C2cfXJ8nQ9yaqkgjtSA5RYNw3/PM= 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:content-transfer-encoding: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=3PEuV+1Bdp4UAxGA1XyX6Zdl1A2a96fM2pyUa9Weh40=; b=oLdLMdEsHwx6ylpGJE2IjI4TkUiMAlH1kN9TTDzuSA7pLHZSyKrz7kveeFHFFr400L VsxTdJjxmFOL+WT+IRQY+53jYrakxZboUg7yD/tPzAnKkoKVTSpfHNhzeHjgKFUyMsoS AbamefMRDScjIKLkl/Q4uvAwQO+JZeEEaG+SVyoOIJgpis++YCYk4+M+H/WCBiDKJE22 sFywQziyRK2KKz3EzE7mj3jCFZTwbOIl/2q7G+ikazVrZvnguCz5U+jTf8VncR1wDqKE luWH+MEvnz5ehq6zM/2IHt3EBGk+zPfr2RgR0j9SWPFeHK2rw/9+dU4d8s7/QzxugX6j +IQw== X-Gm-Message-State: AOAM532Q67FI90/Yo8GdkvEcLWdmbiq/ypQ2SRPqTuUkZFzCRUATnMwX Ex5f7g6gh8aiprkbVgeUeQcsJ0Xh X-Google-Smtp-Source: ABdhPJwt7/lzlPUWb8fs0RZCLs/O09cCZZJ1Gao2RhBpQbE59xzWu0s7w54whxGBMmZpMf05Wb1TLQ== X-Received: by 2002:a17:90b:1997:: with SMTP id mv23mr1074163pjb.194.1594670843404; Mon, 13 Jul 2020 13:07:23 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:8421:: with SMTP id q1ls2826020pfn.8.gmail; Mon, 13 Jul 2020 13:07:23 -0700 (PDT) X-Received: by 2002:aa7:9f8f:: with SMTP id z15mr1287822pfr.73.1594670842848; Mon, 13 Jul 2020 13:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594670842; cv=none; d=google.com; s=arc-20160816; b=aY6Ht5HobHG9RS0T40o7tmz9UDP0Vh+bmctRcPwm5lCvXgVtvq/PdVc6jspubeDQXp X4jlv9nAlm5FHdTEYezzO4SIoRFhr9ln9XZETuhneDVoNOd9TBPl8kDhGZRYoVP4vcLp ozl5lPONF7Nq3i4ioOq6wOWlFqyUbB8UP308YIub0zpXM7nCtUT6pMHvGIAtdma3JI4U qGq49itBgUobvjDH29CTJ8jXRMIhaQFwgIyqYBOTFY540icLNN9NkHqbpB4/4DlcLQcf cL+lG+2wySqMz/vsl2swBbeP+gz3g0kNDe3mo5xrAPAXk3mpZFxWRRQnuzrlIpmM+i8A UvoA== 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=kmupqMbziJlPy1JRSkwR5KOsOApCHx7mcVYbKMourXI=; b=ROIwCWlXxR+nEl3aTWFxmLAQjCZF8QSpRZw3oz2aDqjFrxXXSYrJOCw70pkon+YT/H 8U/AuTRwymzeen29tWzdsktk8EGtPUSNSQTjsoz5Yi/0tIPOT4SWyHsH1XbiNfIrGHx4 4TZsroPjYT0u8bdst4gWfTMlCi2Y+3e2I1x9DmxNF0XdGmNpAgAMZbHsJVnvagXx+yDS Gcd7TaDKhykNlGeCD7pcUNg6obXHh4gLKcNnsYkHMerg3dV0fOZxWbuOMwAz2+goSSdI d3/J4aUYf/VvlYWsesBuRg7GsL3KqUE8el+nyDSP/TG1q1ue9zz96VPvSnk1QjeRNMXU mrrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Lxs+H3O6; 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 y1sor887351pjv.4.2020.07.13.13.07.22 for (Google Transport Security); Mon, 13 Jul 2020 13:07:22 -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:9606:: with SMTP id v6mr1058930pjo.110.1594670842609; Mon, 13 Jul 2020 13:07:22 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:1c27:6fcc:7acc:eebb]) by smtp.gmail.com with ESMTPSA id e10sm400126pjw.22.2020.07.13.13.07.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 13:07:21 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki Subject: [PATCH 2/3] ram: rk3399: Mark existing prints via RAM_ROCKCHIP_DEBUG Date: Tue, 14 Jul 2020 01:36:34 +0530 Message-Id: <20200713200635.651032-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200713200635.651032-1-jagan@amarulasolutions.com> References: <20200713200635.651032-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Lxs+H3O6; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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: , Right now all these debug statements are printing on the console to make sure proper dram initialization happens.   Mark them into RAM_ROCKCHIP_DEBUG would be more meaningful and work like before since the RAM_ROCKCHIP_DEBUG is by default yet. No functionality changes. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- drivers/ram/rockchip/sdram_rk3399.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index d2f3fde236..670925420d 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -2551,8 +2551,10 @@ static int lpddr4_set_rate(struct dram_info *dram, lpddr4_set_ctl(dram, params, ctl_fn, dfs_cfgs_lpddr4[ctl_fn].base.ddr_freq); - printf("%s: change freq to %d mhz %d, %d\n", __func__, - dfs_cfgs_lpddr4[ctl_fn].base.ddr_freq, ctl_fn, phy_fn); + if (IS_ENABLED(CONFIG_RAM_ROCKCHIP_DEBUG)) + printf("%s: change freq to %d mhz %d, %d\n", __func__, + dfs_cfgs_lpddr4[ctl_fn].base.ddr_freq, + ctl_fn, phy_fn); } return 0; @@ -2966,8 +2968,10 @@ static int sdram_init(struct dram_info *dram, params->base.num_channels++; } - printf("Channel "); - printf(channel ? "1: " : "0: "); + if (IS_ENABLED(CONFIG_RAM_ROCKCHIP_DEBUG)) { + printf("Channel "); + printf(channel ? "1: " : "0: "); + } if (channel == 0) set_ddr_stride(dram->pmusgrf, 0x17);