Message ID | 20190719151031.14684-2-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBB6F2Y7UQKGQE6TAOZVA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2A7DD3F053 for <linux-amarula@patchwork.amarulasolutions.com>; Fri, 19 Jul 2019 17:10:50 +0200 (CEST) Received: by mail-pl1-f198.google.com with SMTP id d6sf15968206pls.17 for <linux-amarula@patchwork.amarulasolutions.com>; Fri, 19 Jul 2019 08:10:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563549048; cv=pass; d=google.com; s=arc-20160816; b=B67c2J2agaCPXC/J290Foyko97DK5I7+/ORgP2pknwYgUKHFzzKMH1oGfpKL/DM72W BrdFQZjJrxhF6Ki8sJ4h+6e18Z+mwMrsRt0nxo7VmnyEvKzQdsMbUK3tpbsYZWjbUNFw q84tnhqDNJTFS/TY9TkNExnz9UiFODPU9dN42PGN+AG/p8DMU/pzMixToVHJWXd/52Tl VIsZN39hT5h/1hM/mGHNGiH1V0fVpEiI+kKK2GaW+P1OIgo4Jr2JiCrWqJQZ5NuoY0om A2Kbs662hV7OI0oXOFjloZ3LlFBVAUVY3DmqMLXyo7kOu43K0x9uEcv9AfAv3IBB5Tni nwow== 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=lnhA/qVgK2ydP/kvJn2q8KtIJT5LeP8FsZE6uvduMYg=; b=vfp9k5eOGQvoRwK7cVho6cHOzA0grrXroUVwQOULBBPagZ+aogDbzkdTd7qwa5nQQE nV3IH5HQTeiWzlvW6pYZSyVvtYAaIYjh+kzPClRKHkGHPprjdJ5JGJdiZ0giPI7M/nly zXI1fHPuDsZBeN3PsS+i7qFaHf6gJFLS56R1v8mWZA6m3+b6jn1yjw/GMbrjTujsgtKo hhbNd42EakBethsYuoM+zNqC2nyhTGQqFJR5cYuWIFAr+v4ibqq7roe/SPSMY05WmRz6 bkT/tTjEu6WmYDDU8hh698Ybj2xLeC+PRiwX/rRoKioWBe8NA0t2AbfrAb5SCEsjlmew j4tQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="kS/xAv73"; 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=lnhA/qVgK2ydP/kvJn2q8KtIJT5LeP8FsZE6uvduMYg=; b=Z6RZzNqWkP1h/5G5pt92/qn7huRKxLLHm14pfD+DLvjYSSR2BeQaTgB2qd38cMhTjG nk+EtyNFvuxfF7NFGnVorFLhacYyI75zDFF23EmyMcekqxRbbH8IYAKjgSx2E4/eX9QH Y3vt4agQctk0fnXtlNVRTQRxTp7eGC91LBFTg= 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=lnhA/qVgK2ydP/kvJn2q8KtIJT5LeP8FsZE6uvduMYg=; b=e3WfZNq1v78ZQUuMwNEcWr3845WRizCJ7ZpaF8xqK/EPQZ78E+ABFN8i/DfMO41tH7 05Np9S5FPqU8OGgulsC6AeW3sWY4Ynr3CyoPjTc2+UCXtC2PP7NXAa8MCmsaykrdtNVi waeztaTHqkykUdFJAoysyzgWtt8XWtRQ53iLounmg+Ru807G1r8I2p39qqMETArg02YH 9BE399XQ9FRKeLPIhZpW7H62u2IHTRnqZq+og82/ESoujyV7r1otjBbDYqNYioUCHZZx unbkFQLAYpAKc2kIoLiEGUpHBX1gtTxN6Elv60mVUr66TzSsyZKnapWiX2dr/q+1qrtG cdNw== X-Gm-Message-State: APjAAAVqq0BuMoRmx34U356ccYW7zukfgPshm8oSronfTgQs2GRgxrPz 27McqvGC1WxJskR7PaZvOqsLpuP1 X-Google-Smtp-Source: APXvYqyc3AZtwchig3tb2FVTn+YA+w3QQ3/MdfcyNNIhbTVwbgpu4nGi8/y/K7lQcNQ3NYDi2elw9g== X-Received: by 2002:a63:1045:: with SMTP id 5mr54419416pgq.165.1563549048059; Fri, 19 Jul 2019 08:10:48 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:18c1:: with SMTP id 184ls5457295pfy.10.gmail; Fri, 19 Jul 2019 08:10:47 -0700 (PDT) X-Received: by 2002:a63:ec48:: with SMTP id r8mr27188025pgj.387.1563549047701; Fri, 19 Jul 2019 08:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563549047; cv=none; d=google.com; s=arc-20160816; b=EoM66z9rW6d/mbI3PCw3gxWbD4pgX6cV0KmnQYTuNLwvHnCHedMCVPj99VwDWcr3a7 3lXqKmMcmEM1bGHPE8qQeQAi0pKxryGscFk6dfvkpABUS47EvN+5ScoI97rd1Cfutdo9 rRW/zmAWw4AQQbLUZaP63xwis/8L1cGihMWYhtoBAeTBhvS1SroRIfct9cg6+Fovg3Jy 3p93l8SbYgvB5gh6U5CDOsoHJ8S3ElhJeMlYkQZefvdSziDA0J1/erZI172fe+wqG6Ah lKDZrdrCb+b4u+HulgmgHs4mY0rfmJHNGwfydStcW8yVU0Jy83hmegK8Frn9wTs3Y9JQ tMog== 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=oY9kl1w2DP/q5AU0xWJ63UM0i2Vhho6KqnqpfROEftE=; b=zYAP3THY7eJ+D/aDyRljAqomw1JnROmLV2yoXxZTccIUEsZB23cBrXRa7p42SOmuS9 7RyZQXhyigpZPCwEK4B2LxuH6qNSZYoFhyqmqsdpDJvwdCIhakticlwzXmmDD7A86SEH SzPqkIY9BBOJrWKjMEOEhbofk3jL7xhFKMgz8LPFjn1cC1hEDVZkcHTffzH3HZ5J7kLz /emjmahskbT3wUoDPJ1DZUeVjmzhsZ074pEgQ6DlWQ2i36il/XnITY/wsdxg79wN6YIm ZXkTStpHj1AsHUNUIxlQnOEY0MeQuGHGpBtK5ylFHCPJFvM4IQUJC9XDxZCtKOrmM3sq iI2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="kS/xAv73"; 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 d2sor37887255pln.13.2019.07.19.08.10.47 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Fri, 19 Jul 2019 08:10:47 -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:aa5:: with SMTP id 34mr59500853plp.166.1563549047410; Fri, 19 Jul 2019 08:10:47 -0700 (PDT) Received: from localhost.localdomain ([49.206.201.222]) by smtp.gmail.com with ESMTPSA id b136sm30711299pfb.73.2019.07.19.08.10.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jul 2019 08:10:47 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Simon Glass <sjg@chromium.org>, Philipp Tomsich <philipp.tomsich@theobroma-systems.com>, Kever Yang <kever.yang@rock-chips.com>, YouMin Chen <cym@rock-chips.com>, u-boot@lists.denx.de Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v4 17/18] ram: rk3399: Enable sdram debug functions Date: Fri, 19 Jul 2019 20:40:31 +0530 Message-Id: <20190719151031.14684-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190719151031.14684-1-jagan@amarulasolutions.com> References: <20190719151031.14684-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="kS/xAv73"; 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: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index 9df2f840ab..c59c985c19 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -1251,6 +1251,8 @@ static unsigned char calculate_stride(struct rk3399_sdram_params *params) } } + sdram_print_stride(stride); + return stride; } @@ -1373,11 +1375,14 @@ static int sdram_init(struct dram_info *dram, } } + sdram_print_ddr_info(cap_info, ¶ms->base); + set_ddrconfig(chan, params, channel, cap_info->ddrconfig); } if (params->base.num_channels == 0) { printf("%s: ", __func__); + sdram_print_dram_type(params->base.dramtype); printf(" - %dMHz failed!\n", params->base.ddr_freq); return -EINVAL; }
This would help to debug the sdram base parameters while debugging existing chip or while supporting new sdram type. It require explicit enablement of CONFIG_RAM_ROCKCHIP_DEBUG for showing the debug prints. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- Changes for v4: - rebase on v4 16/18 patch drivers/ram/rockchip/sdram_rk3399.c | 5 +++++ 1 file changed, 5 insertions(+)