From patchwork Mon Jun 17 07:31:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 612 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D5A763F353 for ; Mon, 17 Jun 2019 09:38:39 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id k2sf7195695pga.12 for ; Mon, 17 Jun 2019 00:38:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560757118; cv=pass; d=google.com; s=arc-20160816; b=EPcrETK0A1TdvKpu9KZjOWg6G2/OuAmwjLfDL1xMtbvw9SBEPVJPnbCdaO27KRjoAr Ewhs2Aeuspa55TzcFPyZRCbn9PjISwDDwRdVCR1ynaJPt6NwMfi3vYA6XpvISBxO3wKm 0zozUCuKzOYD0DRA+kh1hqMOm8fbdQnRkW6KVqDTf8ClLmlw+zll1m/2jjEnwJz5UxTR lD/IZdev2t7USVb5ywMZnxcnnicnOb3hSLx/nUa5cEUT3mROYou5psoe0rjV2eyWp0s/ NhnYdBTwIMxvTh428EuWMPve8x9bpeFOCZHSevx2LpUknIAunTyNRIHWPf79oqFg1hML axpQ== 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=RX7RjdqnpBM+7p8s5ZOj+wD6rRVs4R5tq0gxumup8vc=; b=IdHqunbK2G7mAaLqKgK3JbRkps1v1dC+Qiqm2Mayxl7YLDtuAk1r7iMIy8duhH7yzX 4S5uL8yHBXdFVLS8RvnL9n+EFMbvx9GL55LD5hUNbOqXHsS4aVPvBTM/hi2Fv3dkqj8N F54qiaZVEeA32/xcH0EDPf9WaiCeDLwQ419xyutyp3AfmfuUYVTQcBr10sbuQHB6LP6z dDrpf7zjVXHMO/DuOcYPjiJxGFxoNY+bFHlwCzVHay/C7kyBeJb1eUtDINJaI0nRs2ku c2MtJcXhFoKMM3wFdcNTnBfigB3nAXCS/28qjMvBmRuKtmrwjiFDiAdPmbLYobfTN9g2 xEuQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ZGQaU/Hh"; 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=RX7RjdqnpBM+7p8s5ZOj+wD6rRVs4R5tq0gxumup8vc=; b=prjFS189OMszWOTjJll0rDNpAtcN1aE9CTtivF3aNVx7O5mMf4CeH1ehHcx52O4PYA tV2vCx7pHpU8TsE3GDDq5mmdoC+XLRSSyvxL1g4wuwgC2Q+h3cpfaxHlTE9K2iwyTF8F 06yvs1kpe8Vn6xG6eHecvxhRlFbviEoRHL58E= 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=RX7RjdqnpBM+7p8s5ZOj+wD6rRVs4R5tq0gxumup8vc=; b=c+f0I1Sf1l6FqImhbAZYFxQRD+YpsNqAzLH6ctMLaBKLK8j2lzUnCxvV7VkRqyiC6Y 5ZCSEK86OOrNQS6lHIN7L25Hw9p8KQF+RW2Wd3fBp2Qm1RI9+P1jphPzeFU6xQ7v33rb zEhYPtydM5a483NS8CfT8x+TL6z6SpXvBEfwR/sd/ZBMmKNeLaMlafQKjmnqK8qL/5IW 0b5NfkbnUeinok/XMiLhiAf4JtD1pfi/dS4SoVENAIecfUXz/KcnWlmBtYI1xXPmeJML tL50vIVDNMFpgG2xLwuuw9Tj+eSo8nQxIL/s2pILtJlnAtnwqiQmNXB78v2gtx9XLlDH oT3g== X-Gm-Message-State: APjAAAWF9V1mLQKGTB0SVNJysBSaHdiWsS/GZdwSirBnMwEyUX4PO8Zr v8Bz4ovDI0VylHm6MeQcoGpdqke8 X-Google-Smtp-Source: APXvYqzEkbRJ32an+2OHkGHT0W85hMscHky8Sruhbwi2kmL+tJKbnOjIG2fV5QFNzph3LgRMjc/yYQ== X-Received: by 2002:a63:dc02:: with SMTP id s2mr6668481pgg.286.1560757118615; Mon, 17 Jun 2019 00:38:38 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:aa88:: with SMTP id l8ls3985399pjq.1.canary-gmail; Mon, 17 Jun 2019 00:38:38 -0700 (PDT) X-Received: by 2002:a17:902:848c:: with SMTP id c12mr104938973plo.17.1560757118347; Mon, 17 Jun 2019 00:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560757118; cv=none; d=google.com; s=arc-20160816; b=nlJg+5qsuhGp9W3yfdAwssq1oQeQw7LCHZVebXbuc1m/W17cYQXYaLF4BZt2LV6sE8 ANqAtkSUuiwRiIU3kLTSTgEuJwDLFChu2WZfkkecfY9xuhsuAi+xhMFBUlW5d31Q46LQ 9GanNDPxljDYu15K111bvHAbN2LUKYSK5EiEraegrY0WiwJ6VnmblP+Q/3ZVvwJFA+YO IAYKdRqFMjUh4M3AJKRH/ENp79WI650RI66WjKZj/UovtswUjZZaSOo1tEXbXxipzyMa wY8N2Udr4M2HG6MbP3QVkqziVNGdxH39RGZUAckaasEuAa6ZQ1t0snNtMUivUJ+TmAtn zang== 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=v5P/4YHXw0gIfvLdLMX6xTZe98YwM/ts5NJMilX95UU=; b=WLcGmrFK1WFTMv5sIPa3ayu0pJGQ8juX5sOIk0oz6U1cyN4D3EJ88czRfXKba0rydc 6Ee5wLWSdE8m+yxLVXQYEBsYdK9EiqsMMnM4ae5wR1J3f1nctPaIyVPIc7R3loE41CIW XW6+Ozdj+l2bNGeSAQcdOWXATYzvX8Y3IhDeyOA5zjW0+C40sYT8nBrJqWzVpBOBabqP IBr7YAjV/kL3qrEcIHfKcPo8iInNuMrXivdfisMQ3Em0mVPw/iTRou9GaGltYjnXxaMJ EgRFCNY9QzqKNDkuvK9kKc89iiCqgOLnB4cJo5oKYq1pRBsJ2id0ay4egDMCKfYlEyzp a2dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ZGQaU/Hh"; 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 ce5sor12598620plb.17.2019.06.17.00.38.38 for (Google Transport Security); Mon, 17 Jun 2019 00:38:38 -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:25af:: with SMTP id k44mr24167917pje.122.1560757118012; Mon, 17 Jun 2019 00:38:38 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.245]) by smtp.gmail.com with ESMTPSA id m41sm15205998pje.18.2019.06.17.00.38.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 00:38:37 -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 v2 41/99] arm: include: rockchip: Move dramtypes to common header Date: Mon, 17 Jun 2019 13:01:54 +0530 Message-Id: <20190617073252.27810-42-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="ZGQaU/Hh"; 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 --- 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 6b75de5b6f..09f98bbf46 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 6258c811f5..dc65ae7924 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]; };