From patchwork Mon Jul 15 18:20:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 714 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D35E03F0E1 for ; Mon, 15 Jul 2019 20:21:24 +0200 (CEST) Received: by mail-pg1-f198.google.com with SMTP id d187sf10948165pga.7 for ; Mon, 15 Jul 2019 11:21:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563214882; cv=pass; d=google.com; s=arc-20160816; b=DaiKoRf6Rj6BYy43SrUdmsZMLwNXIrnrskaHJbElC5z442qxkVfIe8RyaFpmsI/nev KEjo1kSCT0TsWKcGT7dy8ePiQocvWALNaArzYySpK9Tb9wbI+T8MhWZbfwKo6+T31RzW vJ8FneJhSuQIQh4aiiOsuEJMPoz3lZd0kQst38voU4zBKHRt0BiB6i/g5XS1KIgR96gV XLM/jOlvGUYiV4/JNxZz890se4Gr41t0rNoRrECfvAs4Hn0sKNA/lw7Ym+IE3Vuw/d+z 4WZqJEGdLw/gqY7B0UAuntgkLxagMDaG36G0gituiQAquOc2YoovC/8JNo49S2iG+j7F S1Yw== 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=zukFtpyVpG7PkzBTerLunMTBnRhFYWbSA97m/cL7o7c=; b=i4jVB4MluyyhNcsPkLnHMFS1SXcIGi4WNG8Wmsvzb673DExWxlNuuodeylER1muuNP tyJN3WUvafIkZSHwg5pCFWdgBUOqZlExLmrvAWBDVWEEhOdNEHLUhnOCvX+2/lLuqjs8 TCZkAhv7AY6UHYBv6ZXm37oFWNVlQiBfHKpb/71ZqH4b/cCJOSMzcnJM2Lu2JfhE32qT baGtnuG9tBU8CywEvgdIi6aeLaBVYityaQ07qBoQNBO1JEHI5sUY0onhTmq8YgIiarfi gbDhdL9I0ZudizkCqEowYo4piJ2pjOCQ0iN838lvCli0bEM86tWN417ClvCuw4FLuK1p kB4A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K3+pfdkh; 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=zukFtpyVpG7PkzBTerLunMTBnRhFYWbSA97m/cL7o7c=; b=BWhSj2s+AMPURoFPTvMyFuQTC+IZrN8YO3hAWTqIIUPteHrN8rgyrDEqfpWzeqcvqO YKvxG+gaOYKQHyhGZN/G+FYXncoXgghe09sAvfEe1At+OoP7WUEVhjnCF0AhRnwDMwTY Fm89kdLNn0JMm+PBdH9biX2hZ2nXTvkvY3M80= 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=zukFtpyVpG7PkzBTerLunMTBnRhFYWbSA97m/cL7o7c=; b=Oo3/oeiga17nN/6G6Sp1Ml4HEaQmGJscjcc3l8Ie6BuAUzJ8vNQXnXR9ffmPhWJ9zv gzWkdEiHF1U9ba++WV/iNs4W9U+BT4qDv4kXhxuFGD/UsLqmIx7haZbai+HeLPb5FsY9 eb5xVUVf72jQ4vqurouC+4hKoFwsO3qDiFZ7ljSc2iXrotwqiAafl6rKp0pRGdewV8fq Pyj/x+BI7LD0AqOzgo+MiYIfUMkAYdo2wqJsa2VhjrhIeV3bBM7Xnabrh+M7E106CvLw 8OHMuAufu54Br8fen4S3MCinCkINnkZlTmTJQATKms1uI8AcsWpkzzRkzD/qRDWC5QUI +yJA== X-Gm-Message-State: APjAAAUn/ganTpYaMkBRP2wtAjrnDl3zYFA6lt3E2HBHfXZSu7e0mBxB a0uf5I0uvWo1kK9Z5YeBigki8GDj X-Google-Smtp-Source: APXvYqwPeDyigfg7whDYo4cslffT9m0zV5MIMNDY+9R9TpUm5Z19GlHNYWD1zT0FKSLlydjdLLLf+A== X-Received: by 2002:a17:902:a514:: with SMTP id s20mr28351702plq.162.1563214882567; Mon, 15 Jul 2019 11:21:22 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:454c:: with SMTP id x12ls2209611pgr.10.gmail; Mon, 15 Jul 2019 11:21:22 -0700 (PDT) X-Received: by 2002:a63:6f41:: with SMTP id k62mr28541158pgc.32.1563214882100; Mon, 15 Jul 2019 11:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563214882; cv=none; d=google.com; s=arc-20160816; b=ql9PFBCYg389ItW1bppnBDSj1v4e9BNldsVBzJ6UDxC420WKr+T3Qbgd2hGNSOcM4I vyjEyZYs8V/rM7GjKCDs7FatDNJEdZgek2R/Iz04u1pzOjdyzlXorvKiDZ+5ClT2qdgl En1ewNtyYrPViEr15lX2IC+t3MOHHZTn+eUZFdavsohAevM72vpgj/8yWdmCpvBm2elA edKibFp2vUJxdcsgUOqAL/BHkE3W50AKorQFfVlaS7K7H6YrCbMsRxWvtHs8h6MWRCg2 dqmfLkYf84smrJDyNDnqGHlmP/Bao8LMQ8tx/rjuCHtWBCUX6t9yj/ATOZhsYC8a7FdB KZPg== 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=XbA/Cew+V0e6pXMaLr93cLvoc2s/7gG4Qk7jhXsKtgI=; b=tfxfGv+tmYa7cdjPu7jKSytdrfXD9+3bawpJB+CZ1jh/Hb6iI94XNWFcQyY1ENdP+d smRLByTX0ldX1E8gZJ4Auy6Y07mgwm3a0G5br/8k3scj/MProYLu2Pm9fAuOFetsPFN8 ymGyQUdQcMKb59TxvzIGO5xg2YH460GeDY8SQHNmYzXd0XCiZUqQ6i8H130dor7WCgff mzRuVZHcpXek+VMLJdqvt1vN8784ejufgReE1nuFibWd8TfWGFN+mDmyEEX62XOsczr0 LFrjgYnVq35/VJ2/kD1YM8wkcPYT6soXFVEDdgKXCw2NHKYcfRxT9KS7dSXSgr8DdH42 sVGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K3+pfdkh; 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 m93sor22103664pje.1.2019.07.15.11.21.21 for (Google Transport Security); Mon, 15 Jul 2019 11:21:21 -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:601:: with SMTP id j1mr30186370pjj.96.1563214881094; Mon, 15 Jul 2019 11:21:21 -0700 (PDT) Received: from localhost.localdomain ([49.206.201.107]) by smtp.gmail.com with ESMTPSA id l15sm18152405pgf.5.2019.07.15.11.21.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jul 2019 11:21:20 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , YouMin Chen , u-boot@lists.denx.de Cc: Manivannan Sadhasivam , gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 00/15] ram: rk3399: Code cleanup Date: Mon, 15 Jul 2019 23:50:55 +0530 Message-Id: <20190715182110.21336-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 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=K3+pfdkh; 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: , This is v3, version of code cleanup changes from previous lpddr4 changes[1]. Changes for v3: - squash all code fixes in one patch - order them in proper way [1] https://patchwork.ozlabs.org/cover/1116734/ Any inputs? Jagan. Jagan Teki (15): ram: rk3399: Fix code warnings ram: rk3399: Some trivial code fixes ram: rk3399: s/sdram_params/params ram: rk3399: Handle pctl_cfg return type ram: rk3399: s/tsel_wr_select_n/tsel_wr_select_dq_n ram: rk3399: s/tsel_wr_select_p/tsel_wr_select_dq_p ram: rk3399: s/ca_tsel_wr_select_n/tsel_wr_select_ca_n ram: rk3399: s/ca_tsel_wr_select_p/tsel_wr_select_ca_p ram: rk3399: Order tsel variables ram: rockchip: rk3399: Add cap_info structure ram: rk3399: s/rk3399_base_params/sdram_base_params ram: rk3399: Move common sdram structures in common header arm: include: rockchip: Move dramtypes to common header arm: include: rockchip: Add DDR4 enum clk: rockchip: rk3399: Fix check patch warnings and checks arch/arm/include/asm/arch-rockchip/sdram.h | 6 - .../include/asm/arch-rockchip/sdram_common.h | 38 ++ .../include/asm/arch-rockchip/sdram_rk322x.h | 7 - .../include/asm/arch-rockchip/sdram_rk3399.h | 36 +- drivers/clk/rockchip/clk_rk3399.c | 68 ++-- drivers/ram/rockchip/sdram_rk3399.c | 348 ++++++++++-------- 6 files changed, 264 insertions(+), 239 deletions(-)