From patchwork Wed Nov 13 12:41:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 21478 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 38ABD23FBD for ; Wed, 13 Nov 2013 12:40:18 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id c41sf600049yho.1 for ; Wed, 13 Nov 2013 04:40:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version: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=SUS8Z+l8Z151hCWb2eIGG8T4QZhJVLmAiWHNxAaqN9M=; b=jX/4v94qUtynceXydkKdW1UzZLEc5NrGdXgNFjX/31TR/8tBWKuf3ky1FfGBivXYjq zrixrTHCfWj10C1gbuQSQxcSGUcFJAtdNaLF2BK40PvDOl695tvQbVonuicPgo6bVpDN FGiEs817EtvICqqtHDw5ErXRcMhj0V32Sv+CCL5OSjbTMxG0Kp4qDNbLY4j4evZf5jK0 OpXEO0v0AnYfhoUZPd/nKvNS9HDuMn4Rkt21ER6zLNuC7HgsftRKQqw7tGTa46mTEm16 WposbiB/AoUMc00P7oOwCIIdL8/ycPy5y1elqd8fqry27TGkeyneganlYfYnAP6Auu12 5muQ== X-Gm-Message-State: ALoCoQm3tAJ8uCAu2GShUcIMSBsz2QrD0KDb1blaS6OK3ShZM/HzdSkaS7B+bB33RJh3FTypwfqY X-Received: by 10.58.238.199 with SMTP id vm7mr12829904vec.17.1384346417822; Wed, 13 Nov 2013 04:40:17 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.60.68 with SMTP id f4ls487335qer.72.gmail; Wed, 13 Nov 2013 04:40:17 -0800 (PST) X-Received: by 10.220.11.7 with SMTP id r7mr34204999vcr.12.1384346417721; Wed, 13 Nov 2013 04:40:17 -0800 (PST) Received: from mail-vb0-f47.google.com (mail-vb0-f47.google.com [209.85.212.47]) by mx.google.com with ESMTPS id tq4si14399912vdc.155.2013.11.13.04.40.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Nov 2013 04:40:17 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.47 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.47; Received: by mail-vb0-f47.google.com with SMTP id g10so232586vbg.20 for ; Wed, 13 Nov 2013 04:40:17 -0800 (PST) X-Received: by 10.58.67.168 with SMTP id o8mr14367470vet.22.1384346417617; Wed, 13 Nov 2013 04:40:17 -0800 (PST) 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 u4csp235504vcz; Wed, 13 Nov 2013 04:40:17 -0800 (PST) X-Received: by 10.66.11.202 with SMTP id s10mr42285191pab.86.1384346416388; Wed, 13 Nov 2013 04:40:16 -0800 (PST) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id pl10si23393543pbc.238.2013.11.13.04.40.15 for ; Wed, 13 Nov 2013 04:40:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.33 as permitted sender) client-ip=203.254.224.33; Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MW700758CJ1YF20@mailout3.samsung.com>; Wed, 13 Nov 2013 21:40:14 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 84.7C.10672.E2373825; Wed, 13 Nov 2013 21:40:14 +0900 (KST) X-AuditID: cbfee68d-b7fa16d0000029b0-20-5283732e7ef8 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E9.0F.09687.E2373825; Wed, 13 Nov 2013 21:40:14 +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 <0MW700G6QCIS7U50@mmp2.samsung.com>; Wed, 13 Nov 2013 21:40:14 +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, alim.akhtar@samsung.com, trini@ti.com Subject: [PATCH 2/9 V7] Exynos5420: Add base addresses for 5420 Date: Wed, 13 Nov 2013 18:11:41 +0530 Message-id: <1384346508-11470-3-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.11.7 In-reply-to: <1384346508-11470-1-git-send-email-rajeshwari.s@samsung.com> References: <1384346508-11470-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLLMWRmVeSWpSXmKPExsWyRsSkTlevuDnI4OdNU4sH87axWTxcf5PF ouNIC6PFlMNfWCy+bdnGaDF58Xxmi+WvN7JbvN3bye7A4TG74SKLx4JNpR53ru1h8zh7Zwej R9+WVYwex29sZwpgi+KySUnNySxLLdK3S+DK2HHpPnPBB9mK389cGhi3SHYxcnBICJhInN8r 3cXICWSKSVy4t56ti5GLQ0hgKaPE8S97mCASJhJbruxggUhMZ5Q48+wKlNPFJHHv+WI2kEls QFUbTySANIgISEj86r/KCFLDLDCfUWL5793MIA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VVqUX58UWlOavEhxmSgmyYyS4km5wMjPq8k3tDYxNzU2NTSxMLEzJI0YSVx3gOt1oFC AumJJanZqakFqUUwW5g4OKUaGJs4L06urdpfvX5pNvMbo17B+Xo3412fbNHfK+kZcCBbfrGj T+m0nsOnGW8wrylYfePcUYuStty/961v7S7da66nw6f7Ue3dgVye2WmGqcus32dlrHipcNdE 5vHBlOibKV/2cPvmJktYFLYIvT7us/3CmZQTvTd3c4ZsmsCzLm/tfNH6GcnqR5RYijMSDbWY i4oTAf+PUKruAgAA 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.212.47 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: , 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 Changes in V4: - Added base address for TZPC. Changes in V5: - None Chnages in V6: - Rebased on latest samsung mainline branch. Changes in V7: - Corrected the comments arch/arm/include/asm/arch-exynos/cpu.h | 47 +++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-exynos/cpu.h b/arch/arm/include/asm/arch-exynos/cpu.h index 4b67191..a465e6d 100644 --- a/arch/arm/include/asm/arch-exynos/cpu.h +++ b/arch/arm/include/asm/arch-exynos/cpu.h @@ -88,7 +88,7 @@ #define EXYNOS4X12_DMC_PHY_BASE DEVICE_NOT_AVAILABLE #define EXYNOS4X12_AUDIOSS_BASE DEVICE_NOT_AVAILABLE -/* EXYNOS5 Common*/ +/* EXYNOS5 */ #define EXYNOS5_I2C_SPACING 0x10000 #define EXYNOS5_AUDIOSS_BASE 0x03810000 @@ -124,6 +124,44 @@ #define EXYNOS5_ADC_BASE DEVICE_NOT_AVAILABLE #define EXYNOS5_MODEM_BASE DEVICE_NOT_AVAILABLE +/* EXYNOS5420 */ +#define EXYNOS5420_AUDIOSS_BASE 0x03810000 +#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_TZPC_BASE 0x100E0000 +#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 + #ifndef __ASSEMBLY__ #include /* CPU detection macros */ @@ -157,6 +195,10 @@ static inline void s5p_set_cpu_id(void) /* Exynos5250 */ s5p_cpu_id = 0x5250; break; + case 0x420: + /* Exynos5420 */ + s5p_cpu_id = 0x5420; + break; } } @@ -184,6 +226,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)) \ @@ -194,6 +237,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; \