Message ID | 20190617073252.27810-12-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBGUGTXUAKGQEIKJ23NI@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4D4023F072 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 17 Jun 2019 09:36:59 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id i27sf1935929pfk.12 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 17 Jun 2019 00:36:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560757018; cv=pass; d=google.com; s=arc-20160816; b=Iek98wrFuJB9lqtieGSB1rudJ/Ch6KJWn4QsWvFAhj572kpRGTO7HT6vWGSssb98TG skhgEjb5+VjM20aRazFw34gNn9QY0r0xQJdLyO0AdtV5EU//enel5coJCzgi+cfxDp6k 1K4DRE4WJ31iK9xASh5xN99BG0nM6kt5TfyznLIeLG07lhJI5MDPHJNFqqaqX0YG8Up5 OX7HiRRi6ikcEqjubCxRvYj31n/wxApLt+1GcGjPhCymNzMbCkQ3cSmNrrm2DjHbckry W5JweFH4tZKwTnUM9KTks4QgpxTYCH9ypBvXoT9JFJ9zzOK9WdV7FyNGMAExb88GlK8s 7Y7w== 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=zBIgs7XM5xA8355B07R37Q4UjFIUBl0esn5XnbYemOE=; b=O/Pw7iF8LBg6zHd2OGw6E3I9eRNAzEI8phyuDgiqohAxcc6v/X5RE3YLOpwrPCW6sB aMtgTmv6R8ygReyKMf9l7fu+ilGvgWdyJIYxRwstCh0uY6CYkCwQ9yN27spxWhHZH0A5 4yD27czDHdQ6Uno1k2vu3yoAuaQeJJSoJI0aiTgsYR6uD/102zA785BeV3undAbRY4+a Jk1eChYUEiPy+5Pt6qDyKiv+j489AUfFRQOPMwlH80ZiUtNY2NrzYJDqUtcQHzf47/6k OYS74sHl1eu3nMO50wWMHCKBz5DW8npZBr/cEbG541gJLhC4TE8/P7ZyTMOA6zTySgbV Z8Pw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GLS3R3lz; 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=zBIgs7XM5xA8355B07R37Q4UjFIUBl0esn5XnbYemOE=; b=FQyU2QsVJb4K8E7llxUoimGulOGuxZ/RAC5FdTKXsiwhRs3bt63YPXyTjRAPRZlM2j FuVBJoT6Xqk6/h++BQP+T4fnh+deOm1aosUaz2zkv2ZFNhCaDXpMzGzb8QHFpHOBA8N6 6WLX8fO9jrGchn9ncIRqvCvSQssHXXYQIN7Tk= 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=zBIgs7XM5xA8355B07R37Q4UjFIUBl0esn5XnbYemOE=; b=EBu7+imsjOyV5zy64uIERJNxHnD+OeZZoYKBmWA4CX+cTA6dtQPtcptStKiL6GHkCA b5ISLUpiBeGVqn0V/scLzoQN7W8DeHgeT53otrgD9kl2L8iwFxKZ3neOJtPHK+3jLUGV QNQTnC+2LRQskVrV7uMs1nYLorZJavclF8lESkoKNopO8GetuGUd5kAjmeD9h3A9bLYw lSd884mBIsT1RIDJglqKIHbsfM7zdZwfTo05ZeUNKptLEnFlaZTtFT8h2aUHr74ZzgQX dw6AxNPs+wq2ofJrU+xlMg1Sva4vs388WEO0aYo87/qgkjVkJrf48N75W4mudSvpl61I kd9g== X-Gm-Message-State: APjAAAXd23g1tNZQZDU21DdxCy770KbB3KuoMyXhgoMhr11ssMHOK8aG amiTqH5BU6pUzmhnfKJiTJGHZKT8 X-Google-Smtp-Source: APXvYqxMWmHWzhlJSAUgsAcnyBEtpMqSWRI7G7Hx4Z7DRzkf+qIWwcmOQfGdTUjTbBn59YSINzYyWA== X-Received: by 2002:a63:610d:: with SMTP id v13mr47235368pgb.341.1560757018078; Mon, 17 Jun 2019 00:36:58 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:d412:: with SMTP id a18ls3586202pgh.9.gmail; Mon, 17 Jun 2019 00:36:57 -0700 (PDT) X-Received: by 2002:a62:3543:: with SMTP id c64mr29609720pfa.242.1560757017727; Mon, 17 Jun 2019 00:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560757017; cv=none; d=google.com; s=arc-20160816; b=hjxbW5Kgi4Oo8VKmj2JnXTVD3S4c8LxjWw0oxVljRMk3+W70cGtLIj98NDFOY/QBnk LAm4f8I1pmbsAH21UXG++hm1WSZT2HyYzjPqcEsqMfhH1SevJEFssv+SWxcaKUZ/rKcM n+bT3AVdGaop8L6Fg0Q/V7jy52rUBPfy4E4B2b2g7XH6vovzSXHDdBvme6TiHCiYtsg4 21B4LywO13dg1ZJpuHThGooxF1Ic6s41xeU++5YMXNtRoQ+SlN6Rdoph8NJSy/flpwMf fhlMGi1UK8S+OhF9Zd1jgQ/fnQVPKDSdh8Uu92XKbLeZPR7cX5ViIHZbf0a6NyQmghct G5Kw== 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=jFjZk68JD5eV1E2NZretcWQElvukX2N3SxgJAGBUBhA=; b=SEbE+4F34DaDoJitFCUM/rahfEmxiUtt3gYuXMVUQ5V8kjxF9CZVk/LsyiGwPcmQXM 1NbQK4Yjq5IUCISfJyR+cKTKT11T/3QHMs7ge31YSq6g4GKEJ8+4VgcgAt/h6LRyN4h7 s68Z0yJ3hTSr+jsqZckc7kWVlTvjNiUQ9dTdUHvXpXf8MEvshdJPo7OVtPZzgxGQgDSH 4+GJEKQU5DxqUfM2eXvJfZiqWDBbXPb2DhO7yw5/LekFhuBQUETMx1W5nnHPdGe3JaK/ 84yEDsw1Daafji8mCBu1dpXdM7gqRRmosKBk93wkvc+umgUOd/oYPQEcdlvToi/W/m9c 52yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GLS3R3lz; 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 f4sor10341816pgk.59.2019.06.17.00.36.57 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Mon, 17 Jun 2019 00:36:57 -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:26c7:: with SMTP id m190mr48780379pgm.141.1560757017365; Mon, 17 Jun 2019 00:36:57 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.245]) by smtp.gmail.com with ESMTPSA id m41sm15205998pje.18.2019.06.17.00.36.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 00:36:56 -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 v2 11/99] ram: rk3399: Add ddrtype enc macro Date: Mon, 17 Jun 2019 13:01:24 +0530 Message-Id: <20190617073252.27810-12-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190617073252.27810-1-jagan@amarulasolutions.com> References: <20190617073252.27810-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=GLS3R3lz; 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/arch/arm/include/asm/arch-rockchip/sdram_common.h b/arch/arm/include/asm/arch-rockchip/sdram_common.h index 671c318d50..ce1b62982c 100644 --- a/arch/arm/include/asm/arch-rockchip/sdram_common.h +++ b/arch/arm/include/asm/arch-rockchip/sdram_common.h @@ -34,6 +34,7 @@ #define SYS_REG_ROW_3_4_SHIFT(ch) (30 + (ch)) #define SYS_REG_ROW_3_4_MASK 1 #define SYS_REG_CHINFO_SHIFT(ch) (28 + (ch)) +#define SYS_REG_ENC_DDRTYPE(n) ((n) << SYS_REG_DDRTYPE_SHIFT) #define SYS_REG_RANK_SHIFT(ch) (11 + (ch) * 16) #define SYS_REG_RANK_MASK 1 #define SYS_REG_COL_SHIFT(ch) (9 + (ch) * 16) diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index 32fc7771b3..28178f4ee9 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -1007,7 +1007,7 @@ static void dram_all_config(struct dram_info *dram, u32 sys_reg = 0; unsigned int channel, idx; - sys_reg |= params->base.dramtype << SYS_REG_DDRTYPE_SHIFT; + sys_reg |= SYS_REG_ENC_DDRTYPE(params->base.dramtype); sys_reg |= (params->base.num_channels - 1) << SYS_REG_NUM_CH_SHIFT; for (channel = 0, idx = 0;