From patchwork Mon Jul 13 20:06:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1483 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D65193F03E for ; Mon, 13 Jul 2020 22:07:14 +0200 (CEST) Received: by mail-pj1-f72.google.com with SMTP id k7sf649303pjw.2 for ; Mon, 13 Jul 2020 13:07:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594670833; cv=pass; d=google.com; s=arc-20160816; b=EWhz6pVeWUxN6e2kcGwiBOgmMuImCYB+16qYneyHeqAodCyMwC+btS9qJzTAH2E21Z J2YelQMQQ28HTrvWKjdInImeVfQAH+O1Z6EnH8sZ8DPNJTc+5WmvEvU4T5xSbgkcRVYI DkCcJi8HL8intWwPUUtyTtC7QArq/4tjs+CrY74wTFv7fiSA7Ty1Mie8KcAYoNEgLUlf S0pFJAjNzRQKLV8m8lTISUo60CUI6mLsQX9WgszDexkkLVkJdzy/FOHQalVRc+c3cWc2 pQNiUjuAKoF0yx1U8CxVBv5U7o7JygCoc0NCAsmzgEUpNOduXhBBdOhs24Trvxzyx+Dl I5VQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=CzzN8U1u1yjAliDpNbc/FDwuGX3AfYLBZtxutAECOHc=; b=xHA8EOKBPhH7lj+wC9PNY8L1ra8MGlTkxdadAomBZ1iUwTaFVa8CB9mIehnHq56OAr vXdu7Xo39PVnf2CncHIpShECjz9I187J03qw/rkc3wXtdSTymhoPhLFrehBrKvWxP8R+ HHdrhuWYVvfQFUXvulqDqahjxN+sQVjtrDLooBpZ5qjM89kWhb1Bvc6lW9+mgFcR78xT wyXPAG35TXrOoSZRDol6o067UJbhJiPhfmIZv6cOuqJN+Xk+r5rA8bIpIZQAIdmEQQ/Y aGWeHjMBAHnCHowK8y4a0i9mZZxhVh27M5xVTpVxfBbevV8Mnp/QA3r2oKahr74dZjDG ke5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SYLbgEMZ; 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=CzzN8U1u1yjAliDpNbc/FDwuGX3AfYLBZtxutAECOHc=; b=Z4du57bJJBl7AxgNRCXapHlfjM8bd9raHtcW5a/F0ZEGXwcENoCecb9j0h0m3tnrjt 3UT7MeXMaE6mSd/YCcKdy1NPC1WnRsIEZIdHqdz7zpUeBqN+uWVUW0PTvlHehOSI/7qj vbDf00aoX9Sd+i8G0wYJYoxAoDbmZTCJt/I0M= 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: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=CzzN8U1u1yjAliDpNbc/FDwuGX3AfYLBZtxutAECOHc=; b=D0SXQpuGxzLdm2iG2HuT2ZLbaSHNm46DT6cO1TFzU67yDiLpEDAOzM2DwksAT87lMT t9fVprKskXotEMpBZuoICc8odfaYIZKX4o1j1O2mQCf1nTJ0goOrSQffyVsX7gG+0hlF 325SYfbeSyZRZJHi+vW+AF5prDlxFnr6zK9q1UZCEFZUHhcizDt4LHj4FuNWf0wahVmP ga42qEtveJEP5laagsbVV1aL3im1rKv4iik+ESR+dAgf4TJEMFynD8OQ3S3OHIX1Jg+H QcuhjZjHchABppIsk3eJeoi736jdFnrwgWeV/z908Xbd//aq/SpGql2zjTshTjnmSBpS JfpA== X-Gm-Message-State: AOAM532Gs/T9OiWtoQO/a2N3Zj5f0QEYxAiuLOWqkyIgJaVYgBLvuHts U1yjaCcwgsosx87jAI9Q0+I7Y0eW X-Google-Smtp-Source: ABdhPJxfnEn3ua/HdPzipyH8OV0xzU3G6REPYIdzSfbzfE3wDGDKcYHFWcSMvRqpyPALdr+xxplllw== X-Received: by 2002:a17:90a:6983:: with SMTP id s3mr1041515pjj.55.1594670832650; Mon, 13 Jul 2020 13:07:12 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:be03:: with SMTP id r3ls7028299pls.11.gmail; Mon, 13 Jul 2020 13:07:12 -0700 (PDT) X-Received: by 2002:a17:90a:aa8f:: with SMTP id l15mr1053483pjq.123.1594670832152; Mon, 13 Jul 2020 13:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594670832; cv=none; d=google.com; s=arc-20160816; b=yZvOfDLwe9B9sYdmIDWdg+7C3Vb5ZU5WU+50hoNaCmiKmOVS6b5eYGfRo5DdROtCbx SOadjEfqMEn6M3m5XDC70DceVKSXTvTk3or0CyAuM0AqsogrGBQkYOOl51l7z1j+C6AP /nMWBMWXi95XDjmOSVxCN1qgKQQfknpS1uMIuYWgFqFfxXp+I+vh5X4UebvLogiMZ8YR SzJDGNbXOreEt6V4hC33sc+u+KBXV0BtPE9pE88YRn7LPo5xouX7nANLTKehSJJc3Glb MUtUUMMyPA5OGiiREDJg+DmSLiIz4oJGPcO/Hdxrr793Piy5Dxu9qqfpRknELWmgG6u2 aYIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=QGTSFSdpTBf0Fj8/mHCXDFFUbdRy7kfdpCQddOFvWZg=; b=yCfjK22Ae9xUkTcdikC6qioJB+Kv6bXmMbFHO6+H2qRNJouejtND4v4ypaH9zCzo/K 5216GE+5wpWA92A6GBRaG8rNOHIfgGBgeXJm6uTyBjZLEj93oPnDUyH8m+l8w4Z+ftff 9UGkiPdHEagH17h9Z7R48qLYGlixrR+cuSuTp0jMQu6+wdwcJ1ZqfuStkZCG95Mle/5D AZUS9B1IcAC6HxeJQiIR8roat3HYKvOTBs+nB9zpn+zepn5sXqel2Gi/0MrjpAzu4g4v uqSkoDjdtkTMeJZ7uSUMXHEecXrUsQ8z+hFdDoOYhwwzcvAqfOjAhE0KASNRTG4vM/Eg 60Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SYLbgEMZ; 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 j3sor18230184pgh.72.2020.07.13.13.07.11 for (Google Transport Security); Mon, 13 Jul 2020 13:07:11 -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:7d08:: with SMTP id y8mr666632pgc.224.1594670831507; Mon, 13 Jul 2020 13:07:11 -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.06.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 13:07:10 -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 1/3] ram: rk3399: Drop debug stride in driver Date: Tue, 14 Jul 2020 01:36:33 +0530 Message-Id: <20200713200635.651032-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 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=SYLbgEMZ; 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: , stride debug is already present in sdram_common.c via RAM_ROCKCHIP_DEBUG. So, drop the redundant debug stride code in rk3399 driver. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- drivers/ram/rockchip/sdram_rk3399.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index 60a1ab8b51..d2f3fde236 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -2875,31 +2875,6 @@ static unsigned char calculate_stride(struct rk3399_sdram_params *params) if (stride == (-1)) goto error; } - switch (stride) { - case 0xc: - printf("128B stride\n"); - break; - case 5: - case 9: - case 0xd: - case 0x11: - case 0x19: - printf("256B stride\n"); - break; - case 0xa: - case 0xe: - case 0x12: - printf("512B stride\n"); - break; - case 0xf: - printf("4K stride\n"); - break; - case 0x1f: - printf("32MB + 256B stride\n"); - break; - default: - printf("no stride\n"); - } sdram_print_stride(stride); 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); From patchwork Mon Jul 13 20:06:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1485 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 C115A3F03E for ; Mon, 13 Jul 2020 22:07:39 +0200 (CEST) Received: by mail-pj1-f71.google.com with SMTP id a19sf620163pjq.9 for ; Mon, 13 Jul 2020 13:07:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594670858; cv=pass; d=google.com; s=arc-20160816; b=HrV819t20LGxL8ZDzccZf1onGIjcSpOQ3koZvX00rtJaU7PdS70UBC5KpTals7h5Ny 2uwRWeCL0EDzOrZVTj0LJ+3xqpC9A5o3fbUG2D8qtkglfTL3HgqPpRntA+0/W9231z9P GMCYLbcJw+eovClig0M0pWVXwiBBu2gSGLsc4RB0Sh8HYh2jDLe15H3o5Oamh05B4TeB jx1Egh5AF9W8HU+XVjGgJVxBJt0/Z1AMPuhJckTs7WIx3nqN/JGRKPbq9BDhn86qHVuM OGh52ag76iNXwK2FQrUjAVEv/L4L3IhpRuYF1F15KkQCRReGMUCIp4pUYNP9bdGj3SrD PnpA== 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=3HbhpWI5Tck0mnAJY+LchHvBSWV9LGJL79FYH/6Xv+c=; b=wvLB4S/dmbbrOkdGIQk63jf1lzXDSRojYVH0pq7lyByIhnkRiAxnZmeZzNjDc1L2lj RxQ25S4AHhe0gZ9JxYdj9wYIzaZjR++riVs6sF0wYrSykoq8fbgkIvd1wajStQlIwieo BpsglGIUuKUF8qn+nt/js/0M0E6TuB6LlKKiqtCmY97Do0PlopfHUfTIp53AcNuQhxz5 7EhpvSlwLdVpcNb3lchIzScZMkOaUz44ONtiN54UmcMaQHI1eVPHF/Us4ZWCfS9FLfVr Jd+s0LiIVTCBVzJDsWqnjjQX8otvEuoMFIt8IHvS7RDkGBuFro6tDWbz+FXKZtwMpzI9 PKTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fDHYve4b; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 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=3HbhpWI5Tck0mnAJY+LchHvBSWV9LGJL79FYH/6Xv+c=; b=pkH3ap0qWjC9OaGxtemeaSgJ0TaLW57/UF7B68JBtRru1K+PKnFawmxYsERcLT5W7i EkoSTk5FNc+yhfyuk8XdeLIMe2mlkF6GdRb1RAOLNVFQoVSEx89Q1k1InIdUcLPSfTll Sckup62vD9/86AACU4TIv5Ay0ccms2OrWz6Eg= 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=3HbhpWI5Tck0mnAJY+LchHvBSWV9LGJL79FYH/6Xv+c=; b=l9Gpj97nEMK8MWChGN085d4Ge12xdOMKhrLuUktZedQ4/hPUaN6bZVGsNOeqYFKtUT Hy7luK+D7XNQZelWV3LAXSaccFC3R/2g9qP0E+iPzeM4th23sd1qdR4JN/v7ey4iGvUt 9Kzcq+euh6ajsdknydyqPTUbumBTiUCPbipxP0TO8hN5KIgk9eOcD5Wv7IZtPZbVgX7a mAO1yegWjGcn3f5vP7kJzW4aREgqX2gqPZd443wPARxZLkxEprNJatK0NY/Xhxepdap/ pKOb4SEWpBLhFR/EvztqSyS4/l1eANW+Pg0JTyRjrguZoXWRfr7lm5MqnQv5cC0EvWt0 ui6g== X-Gm-Message-State: AOAM533BLguS7VedzM+Sbq2ENPA+XyIy8bguyF/gTPqxuZbzOX5gdGZX /pU9E1NaqOUbIL6fTZLMo+dk3MW4 X-Google-Smtp-Source: ABdhPJwwUry10HBp4OJSqeux8jEBY1iG4uwBn68r553MiID/HUIcdrpeTp5tzU54Hcc6bSaO/XEong== X-Received: by 2002:a17:902:8a96:: with SMTP id p22mr1094761plo.281.1594670858233; Mon, 13 Jul 2020 13:07:38 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:b288:: with SMTP id u8ls7041593plr.4.gmail; Mon, 13 Jul 2020 13:07:37 -0700 (PDT) X-Received: by 2002:a17:90a:db8c:: with SMTP id h12mr1082894pjv.147.1594670857706; Mon, 13 Jul 2020 13:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594670857; cv=none; d=google.com; s=arc-20160816; b=UGbf8FLkgY2KFyplVQqzA8y5H4xnPpzHCqUfPk6UKxw051nYjF4ndBr455AkiYKYiH iikgCibmnZ8uajWNOTWLDGNopY/eHQWSEfNYvhIPaPzkWePmqM5pEdmTuVscP8/KFIEq LMYwLDkRT1E05jQ4o1UG5MSWY2OpivVrrd8SfcNOGoz4nwIWipzG/qR5O4BEgkQg57iI yIjCgkprNMZkyqX3qx+KGVDeG/lOJ/qPYZpQmb1OpoN2Ab/BC2JOZSCtbxfrKXakUoJC fPRqLYspGDVNPuJQTmY+j0ghx0hiQuhw4ny4La+ZYrAji1umA0F3g66Zgizb1eaNQMd6 novA== 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=RM7KjR0iBeeDjb2yjXYX75anQhfT2dHBpyPvJcVeR5A=; b=EbY6AxNXJxxtSD4bBVp7k250Eeh0ugZ2C3wgU+a4wTj0qOzLvO70dS8jQO139ocMBt fwRAEg6Job4ja/44gXUIv9yIJcFzHZ3DUSqQv2iRUxIAUMW6ryIib0wQg6d2mLfjsWTq +kzFliiGv9VqE8NmQsC+Flm+UAZTt6w+YqvJI81Jpt1jA9xTRJt3APrQ+DfP0L+GHgXv cXZ5Rsudgjpn9eX7RzJZi1tNo6SycFsGzshLl/c0ybNC3c3IbUCHuqqOgyKpKx3Gl0uA V7NVrEDN+hAW9XN5Vnn7vsx9WIePni6C+xP1or4my0jxdlE1Ng/2fwXgZsvRnbqIqJR2 7Ybw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fDHYve4b; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id bo11sor848534pjb.30.2020.07.13.13.07.37 for (Google Transport Security); Mon, 13 Jul 2020 13:07:37 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:90a:de0d:: with SMTP id m13mr1091888pjv.23.1594670857397; Mon, 13 Jul 2020 13:07:37 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 13:07:36 -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 3/3] roc-rk3399-pc: Disable RAM_ROCKCHIP_DEBUG Date: Tue, 14 Jul 2020 01:36:35 +0530 Message-Id: <20200713200635.651032-3-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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fDHYve4b; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 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: , Disable ram rockchip debug driver for roc-rk3399-pc boards since we have verified ram in many instances with respective U-Boot versions. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- configs/roc-pc-mezzanine-rk3399_defconfig | 1 + configs/roc-pc-rk3399_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/roc-pc-mezzanine-rk3399_defconfig b/configs/roc-pc-mezzanine-rk3399_defconfig index f15dddc684..c87a8568fc 100644 --- a/configs/roc-pc-mezzanine-rk3399_defconfig +++ b/configs/roc-pc-mezzanine-rk3399_defconfig @@ -53,6 +53,7 @@ CONFIG_PMIC_RK8XX=y CONFIG_REGULATOR_PWM=y CONFIG_REGULATOR_RK8XX=y CONFIG_PWM_ROCKCHIP=y +# CONFIG_RAM_ROCKCHIP_DEBUG is not set CONFIG_RAM_RK3399_LPDDR4=y CONFIG_DM_RESET=y CONFIG_BAUDRATE=1500000 diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index 9ffde7f960..601f5c6ae1 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -50,6 +50,7 @@ CONFIG_PMIC_RK8XX=y CONFIG_REGULATOR_PWM=y CONFIG_REGULATOR_RK8XX=y CONFIG_PWM_ROCKCHIP=y +# CONFIG_RAM_ROCKCHIP_DEBUG is not set CONFIG_RAM_RK3399_LPDDR4=y CONFIG_DM_RESET=y CONFIG_BAUDRATE=1500000