From patchwork Mon Jul 15 18:21:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 727 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 86CAD3F0E1 for ; Mon, 15 Jul 2019 20:22:07 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id z14sf3974642pgr.22 for ; Mon, 15 Jul 2019 11:22:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563214926; cv=pass; d=google.com; s=arc-20160816; b=d1EQl8/PPJBtGPyduONujGanM0gcF3ppHShCY3XZ2h22DOcxYZFc0slRNG8sG0BDuJ EYDc+At1s+GeH8bQ86vF5okBPyhO5s1rjQ9V5mLhJic8Q785b35rkRC20JekhapTo3KU 1b18Gzc5YxdqXYIxxriLKAHjdCJ+zbyduvjd7IO6p5UXzzebdmwkmgWhq6BTlZ2hYw3C 9sAwRBhhXrjj4Pl5BIIZ6oiH3A9lTFEt04XkDbksoG7smqHuAtGEDUgs5Lt19gff5NTw crE920n8a5DPb+RZDmuJSd7p1JnMSiAuojFGdh0c2Kmae+0SldfIIJ3s9rWOyRWqIW3D x7UQ== 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=pj2q5584G05ll9XqGOXiM3aR35AoLC5owdeWnP+eRfE=; b=a9oiRR7YP2gi6rffFsRl8/COHlg7CmoNGLLDq+TLPeggk1kwsBFpsJtMOKtETLgEtW K7hUYmNd45F7DpH1BDE2wI91oMv9596vRA0ksrUPJ0UVPtP2PgRZou3Vfiz3qG/eahoN H9gmOlqCzK3Wj8XRprSsJV1TgTeBKzmqNSFRWfyZyGEVSt6fkrFakWR0o0TU958lX+lN /Ty8oT3w13q2BNG88WhVAIvYb/mfQEcM6rFgaXBxOet5GUJt22fxPOTVeYQFWq39j++z kscRuniARnYrFmX/NADNq59m2IwQ3QsdGQ5wIyRnxXC5gw62OfL2JsAJ7cUU9d5mBFwj mc2w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VMMh2Wun; 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=pj2q5584G05ll9XqGOXiM3aR35AoLC5owdeWnP+eRfE=; b=IXMoZTDUbSs01SE368t3fKFzZ8LgR51RXSpWBBW2z68z9nqFBD/5BZbpHGpNxPfV6r eSS9ZDAHGAOmsAbIRjHJRJEYIX8QkXdtPE616CCGx7fHeOa7NDfZ6MgWfiJ+hPYPNTAN d21lzFvCq/rAeW22C9NZtKXI4IP2m2Z7YnIJI= 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=pj2q5584G05ll9XqGOXiM3aR35AoLC5owdeWnP+eRfE=; b=qUCnubXgrcw/YbEnxdrf74olrxTskjXe/xCMj67GoIoXcvzVmvtf1mZLL/BcRKY5zr pGeuT7m2KhCb0O5bLLVsU6K2/+IlM7yNOlIRQzZIuNEm3Q1Onoc9ANS+GuTe9lgekEFq dffE5d+W9uzZKh6Co8XNVi+w0SfFd+d0mfsP488V01htiFAdezy2R3GNcJy3+wdS9H7S jyyIPehztCGbg++DmrbyMNC8+GKuAgFm3H2T5rsg1fW5yHw97kcOeUalLoBsZ6h7JuPb RFHCvNP0Siq/tj7a4a8tLzZRfFmnMfMtL4L7tmvhHgY7wCvPD9/QjlxBX221NqGOEewm +U/Q== X-Gm-Message-State: APjAAAVJ8JrXblrhYYrTtcy4yqD4dqjTybM/GiBCND1m2vdY1tW/6K4z wAFDnul3cXZc63S7UX/sA/DBM/yj X-Google-Smtp-Source: APXvYqzlKJVgS0U1/fc+l8sPZAV0+P8H8MHM2Jmw8dbwheg5/KNnuSEeYT1cWHTMPJTNm0ezj0jUgw== X-Received: by 2002:a17:90a:7d04:: with SMTP id g4mr31012836pjl.41.1563214926395; Mon, 15 Jul 2019 11:22:06 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:3787:: with SMTP id v7ls6193325pjb.4.canary-gmail; Mon, 15 Jul 2019 11:22:06 -0700 (PDT) X-Received: by 2002:a17:90a:2430:: with SMTP id h45mr31577145pje.14.1563214925982; Mon, 15 Jul 2019 11:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563214925; cv=none; d=google.com; s=arc-20160816; b=zAWrZg2XYcsYiMZgN/QwcRBzDJDA9roq/sPxHJOvenZk8rR3Kuq5TyrQm7gL2g0hS2 N2dSNXFdZFxqi5B3ofg4VTOVaFb5C8C0mP6ib5wifYkl6jxhoFpP/e9Z6kWTtklO/b0I z42X1EQNbly3ooGJvsG1/7yp/KsO3unjkXqO/OMroBWnv66LzhgR7VV2/vQAl1sVqZ02 XZnxwf2gVdLPpI3uqA0gfWl/nzyV6Q8e5ajg5/tIyxI7L6UCnB6blebfGtwbtWQFZlpx yxBug970ufhdAxMpjeDnDt7jHodtYSSUgw5gBQmikekJErEitgQSOOBPG459L/tSX9At 0+aQ== 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=+faoSNUq7ISOuktRNgl+n22wUdzlRqNIPSMIAahM4n4=; b=g6ZxyPvcrLLfjOv1E1k1drUZ1cbgeiLfJtjuHqnaqjEFxbBsqDYur9ppm3e8zcQNZ+ /DRImWCq5iPj+2C+kX/YzUrazfhlk77dvreFx8vlRf0S4vU1us7Ix4hEeUjvOecoybQO B6dcbxlHFXR1pcfU0vuMODxq14QLyWKHHr6tf2wOXDrLoJ75ZjoetnadxcWmU3D5RsYo 4k88E5P2dUCozwzribT2anG1YlaxTjgCQXJJ6PT3/lYa3aXlBO1iF//XC0jGooE1nGDe 89o+YL+zA+eaj4PFafWP3hVeIuQDH+qYv9S8NhoRUFkokq/SSh75QzcxU/YYGzqDnLpH 14ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VMMh2Wun; 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 h63sor22707076pjb.6.2019.07.15.11.22.05 for (Google Transport Security); Mon, 15 Jul 2019 11:22:05 -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:b394:: with SMTP id e20mr30483168pjr.76.1563214925619; Mon, 15 Jul 2019 11:22:05 -0700 (PDT) Received: from localhost.localdomain ([49.206.201.107]) by smtp.gmail.com with ESMTPSA id l15sm18152405pgf.5.2019.07.15.11.22.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jul 2019 11:22:05 -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 13/15] arm: include: rockchip: Move dramtypes to common header Date: Mon, 15 Jul 2019 23:51:08 +0530 Message-Id: <20190715182110.21336-14-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190715182110.21336-1-jagan@amarulasolutions.com> References: <20190715182110.21336-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=VMMh2Wun; 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: , dramtype enum numbers as common across all dram controllers in rockchip, so move the eneum values in common header. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- arch/arm/include/asm/arch-rockchip/sdram.h | 6 ------ arch/arm/include/asm/arch-rockchip/sdram_common.h | 8 ++++++++ arch/arm/include/asm/arch-rockchip/sdram_rk322x.h | 7 ------- arch/arm/include/asm/arch-rockchip/sdram_rk3399.h | 8 -------- 4 files changed, 8 insertions(+), 21 deletions(-) diff --git a/arch/arm/include/asm/arch-rockchip/sdram.h b/arch/arm/include/asm/arch-rockchip/sdram.h index bbe425deb9..9220763fa7 100644 --- a/arch/arm/include/asm/arch-rockchip/sdram.h +++ b/arch/arm/include/asm/arch-rockchip/sdram.h @@ -8,12 +8,6 @@ #ifndef _ASM_ARCH_RK3288_SDRAM_H__ #define _ASM_ARCH_RK3288_SDRAM_H__ -enum { - DDR3 = 3, - LPDDR3 = 6, - UNUSED = 0xFF, -}; - struct rk3288_sdram_channel { /* * bit width in address, eg: diff --git a/arch/arm/include/asm/arch-rockchip/sdram_common.h b/arch/arm/include/asm/arch-rockchip/sdram_common.h index 82ce3d3fc9..55abcdae77 100644 --- a/arch/arm/include/asm/arch-rockchip/sdram_common.h +++ b/arch/arm/include/asm/arch-rockchip/sdram_common.h @@ -6,6 +6,14 @@ #ifndef _ASM_ARCH_SDRAM_COMMON_H #define _ASM_ARCH_SDRAM_COMMON_H +enum { + DDR3 = 0x3, + LPDDR2 = 0x5, + LPDDR3 = 0x6, + LPDDR4 = 0x7, + UNUSED = 0xFF +}; + struct sdram_cap_info { unsigned int rank; /* dram column number, 0 means this channel is invalid */ diff --git a/arch/arm/include/asm/arch-rockchip/sdram_rk322x.h b/arch/arm/include/asm/arch-rockchip/sdram_rk322x.h index d0091a7aaf..336c5d7e8c 100644 --- a/arch/arm/include/asm/arch-rockchip/sdram_rk322x.h +++ b/arch/arm/include/asm/arch-rockchip/sdram_rk322x.h @@ -7,13 +7,6 @@ #include -enum { - DDR3 = 3, - LPDDR2 = 5, - LPDDR3 = 6, - UNUSED = 0xFF, -}; - struct rk322x_sdram_channel { /* * bit width in address, eg: diff --git a/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h b/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h index 65c92cf744..471702f935 100644 --- a/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h +++ b/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h @@ -6,14 +6,6 @@ #ifndef _ASM_ARCH_SDRAM_RK3399_H #define _ASM_ARCH_SDRAM_RK3399_H -enum { - DDR3 = 0x3, - LPDDR2 = 0x5, - LPDDR3 = 0x6, - LPDDR4 = 0x7, - UNUSED = 0xFF -}; - struct rk3399_ddr_pctl_regs { u32 denali_ctl[332]; };