From patchwork Wed Sep 11 10:01:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 19943 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f200.google.com (mail-ye0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 12A3325E63 for ; Wed, 11 Sep 2013 09:59:54 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r3sf9607303yen.11 for ; Wed, 11 Sep 2013 02:59:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:dlp-filter:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=JapPUVHKZ75ibl+e+sFrimKPSYzzSwjHQFu+CX5tkEk=; b=D6xJyzVlUBstF2XK7ifOG1T84qzYw+OZbddb/ZDkEVY7OC/Dn7c1BMb7DtyzNDCzfm 2ujDU8zedojXclcANOUc4IGy3NydCt5ypySovmKWZnY74db9B5pyiVgH9LKqw0OKWrC6 X0brvM2NyAUeFN26WLKBVbIJ5XOUmYTtECYlA5QoB2cTk3MbgAfYT5V9grkKi7cTaBBm b6IpZOBJOxz9rrwRJWf7vBgZvb0P/23VXc8uuxJYxUnHXhm0TejLzRxnnuOWGa4tf+D/ 0c4zaZx4ZO3JVHe7IPj24xTAAYKJMTG3vOtJdEns2UN9QVAJLM93/9d0F4CuOc2oOQCU yCzA== X-Received: by 10.236.14.100 with SMTP id c64mr333089yhc.38.1378893593848; Wed, 11 Sep 2013 02:59:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.231 with SMTP id y7ls171132qeu.39.gmail; Wed, 11 Sep 2013 02:59:53 -0700 (PDT) X-Received: by 10.220.13.20 with SMTP id z20mr472600vcz.0.1378893593617; Wed, 11 Sep 2013 02:59:53 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id v8si5773849vcz.23.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Sep 2013 02:59:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id hf12so5824262vcb.41 for ; Wed, 11 Sep 2013 02:59:53 -0700 (PDT) X-Gm-Message-State: ALoCoQm91+OHoS2YRH+kOPcuw2QOOEPFthXfEbTj7emyj/zwIipr2y06jbRQCdFlLHCrJkNN25SI X-Received: by 10.220.13.20 with SMTP id z20mr472577vcz.0.1378893593344; Wed, 11 Sep 2013 02:59:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp47058vcz; Wed, 11 Sep 2013 02:59:52 -0700 (PDT) X-Received: by 10.68.130.71 with SMTP id oc7mr872993pbb.10.1378893591762; Wed, 11 Sep 2013 02:59:51 -0700 (PDT) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id ct5si20965640pbb.131.1969.12.31.16.00.00; Wed, 11 Sep 2013 02:59:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSY00791H3H56L0@mailout4.samsung.com>; Wed, 11 Sep 2013 18:59:44 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.125]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id FF.9B.20109.01F30325; Wed, 11 Sep 2013 18:59:44 +0900 (KST) X-AuditID: cbfee68f-b7f1e6d000004e8d-2d-52303f10b4ab Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 34.DD.05832.01F30325; Wed, 11 Sep 2013 18:59:44 +0900 (KST) Received: from localhost.localdomain.com ([107.108.73.95]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MSY0040PH3CE280@mmp2.samsung.com>; Wed, 11 Sep 2013 18:59:44 +0900 (KST) From: Rajeshwari S Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org, u-boot-review@google.com, panto@antoniou-consulting.com, alim.akhtar@samsung.com, Akshay Saraswat Subject: [PATCH 02/12 V3] Exynos5420: Add base addresses for 5420 Date: Wed, 11 Sep 2013 15:31:14 +0530 Message-id: <1378893684-27733-3-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.11.7 In-reply-to: <1378893684-27733-1-git-send-email-rajeshwari.s@samsung.com> References: <1378893684-27733-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphkeLIzCtJLcpLzFFi42JZI2JSqytgbxBkcHOHlMWpP48ZLR7M28Zm 8XD9TRaLjiMtjBa7bk9msZhy+AuLxbct2xgtlr/eyG7xdm8nuwOnx7yfE5k8ZjdcZPFYsKnU 4861PWweZ+/sYPTo27KKMYAtissmJTUnsyy1SN8ugSvj7Jo1LAVXZCrWLr/P2sC4X6KLkZND QsBEYv7OEywQtpjEhXvr2UBsIYGljBJ3jkXD1LRdnMPYxcgFFJ/OKLHu+g0Wi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vYFzVYHGIUYCDUYmH94acfpAQa2JZcWXuIUYJDmYl Ed4HpgZBQrwpiZVVqUX58UWlOanFhxiTga6ayCwlmpwPjP+8knhDYxNzU2NTSxMLEzNL0oSV xHkPtloHCgmkJ5akZqemFqQWwWxh4uCUamA01+BOL+v8f6Qtecu/wOtf1NlcAkusDR927N8t k5MrarznzHLLF/qCa2o6ajLY6tsqVhznLcq/eyf1kQtDT8mKZgXTR1ulP73UMmcqir7MaPG2 +9Vd4xqWkgm/hfeXRJUn3ZRt+BS073Sj+bEfdl59Kn7HExUMss/zMq/40VfV+H6mrqzsfCWW 4oxEQy3mouJEAKQu18n1AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rajeshwari.s@samsung.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Akshay Saraswat Adds base addresses of various IPs and controllers required for Exynos5420. Signed-off-by: Rajeshwari S Shinde Signed-off-by: Akshay Saraswat Acked-by: Simon Glass --- Changes in V2: - None Changes in V3: - None arch/arm/include/asm/arch-exynos/cpu.h | 48 +++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-exynos/cpu.h b/arch/arm/include/asm/arch-exynos/cpu.h index cb924fb..e988251 100644 --- a/arch/arm/include/asm/arch-exynos/cpu.h +++ b/arch/arm/include/asm/arch-exynos/cpu.h @@ -86,7 +86,7 @@ #define EXYNOS4X12_ACE_SFR_BASE DEVICE_NOT_AVAILABLE #define EXYNOS4X12_DMC_PHY_BASE DEVICE_NOT_AVAILABLE -/* EXYNOS5 Common*/ +/* EXYNOS5 */ #define EXYNOS5_I2C_SPACING 0x10000 #define EXYNOS5_GPIO_PART4_BASE 0x03860000 @@ -121,6 +121,45 @@ #define EXYNOS5_ADC_BASE DEVICE_NOT_AVAILABLE #define EXYNOS5_MODEM_BASE DEVICE_NOT_AVAILABLE +/* EXYNOS5420 Common*/ +#define EXYNOS5420_I2C_SPACING 0x10000 + +#define EXYNOS5420_GPIO_PART5_BASE 0x03860000 +#define EXYNOS5420_PRO_ID 0x10000000 +#define EXYNOS5420_CLOCK_BASE 0x10010000 +#define EXYNOS5420_POWER_BASE 0x10040000 +#define EXYNOS5420_SWRESET 0x10040400 +#define EXYNOS5420_SYSREG_BASE 0x10050000 +#define EXYNOS5420_WATCHDOG_BASE 0x101D0000 +#define EXYNOS5420_ACE_SFR_BASE 0x10830000 +#define EXYNOS5420_DMC_PHY_BASE 0x10C00000 +#define EXYNOS5420_DMC_CTRL_BASE 0x10C20000 +#define EXYNOS5420_DMC_TZASC0_BASE 0x10D40000 +#define EXYNOS5420_DMC_TZASC1_BASE 0x10D50000 +#define EXYNOS5420_USB_HOST_EHCI_BASE 0x12110000 +#define EXYNOS5420_MMC_BASE 0x12200000 +#define EXYNOS5420_SROMC_BASE 0x12250000 +#define EXYNOS5420_UART_BASE 0x12C00000 +#define EXYNOS5420_I2C_BASE 0x12C60000 +#define EXYNOS5420_I2C_8910_BASE 0x12E00000 +#define EXYNOS5420_SPI_BASE 0x12D20000 +#define EXYNOS5420_I2S_BASE 0x12D60000 +#define EXYNOS5420_PWMTIMER_BASE 0x12DD0000 +#define EXYNOS5420_SPI_ISP_BASE 0x131A0000 +#define EXYNOS5420_GPIO_PART2_BASE 0x13400000 +#define EXYNOS5420_GPIO_PART3_BASE 0x13410000 +#define EXYNOS5420_GPIO_PART4_BASE 0x14000000 +#define EXYNOS5420_GPIO_PART1_BASE 0x14010000 +#define EXYNOS5420_MIPI_DSIM_BASE 0x14500000 +#define EXYNOS5420_DP_BASE 0x145B0000 + +#define EXYNOS5420_USBPHY_BASE DEVICE_NOT_AVAILABLE +#define EXYNOS5420_USBOTG_BASE DEVICE_NOT_AVAILABLE +#define EXYNOS5420_FIMD_BASE DEVICE_NOT_AVAILABLE +#define EXYNOS5420_ADC_BASE DEVICE_NOT_AVAILABLE +#define EXYNOS5420_MODEM_BASE DEVICE_NOT_AVAILABLE +#define EXYNOS5420_TZPC_BASE DEVICE_NOT_AVAILABLE + #ifndef __ASSEMBLY__ #include /* CPU detection macros */ @@ -154,6 +193,10 @@ static inline void s5p_set_cpu_id(void) /* Exynos5250 */ s5p_cpu_id = 0x5250; break; + case 0x420: + /* Exynos5420 */ + s5p_cpu_id = 0x5420; + break; } } @@ -181,6 +224,7 @@ static inline int __attribute__((no_instrument_function)) \ IS_EXYNOS_TYPE(exynos4210, 0x4210) IS_EXYNOS_TYPE(exynos4412, 0x4412) IS_EXYNOS_TYPE(exynos5250, 0x5250) +IS_EXYNOS_TYPE(exynos5420, 0x5420) #define SAMSUNG_BASE(device, base) \ static inline unsigned int __attribute__((no_instrument_function)) \ @@ -191,6 +235,8 @@ static inline unsigned int __attribute__((no_instrument_function)) \ return EXYNOS4X12_##base; \ return EXYNOS4_##base; \ } else if (cpu_is_exynos5()) { \ + if (proid_is_exynos5420()) \ + return EXYNOS5420_##base; \ return EXYNOS5_##base; \ } \ return 0; \