From patchwork Fri Dec 20 09:34:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 22670 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AF22623FC0 for ; Fri, 20 Dec 2013 09:33:13 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id vb8sf8984420obc.8 for ; Fri, 20 Dec 2013 01:33:12 -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=9IM8z2B972hdo9mJxaj1cDMLg1C8XXbrKxjMkNO4O+A=; b=Sq3+l9g853E2oUG3+xkYB33glE4D2/zs/cl5X1/z2W6MX0fEeEwG7ZmrTWxYzjlHdS xaIvOxJf+H3SbFE7uZCciu4lpPQ5JysRI+reg9x1ZId7VWLavYJq7yMJcksvj/4W4lol NzDzSlvKiSAzexD8P98XsnZNmWAHJUNK25MVfz0NO36HBybrT2zQuzpaaDXm0qVCl6zD TaxQ/thcz9isDKtLBVgFeXPVrA30hcL3wpE3+4t+8cS4Sckio2mlVWQeuWL4sIAgrKts zBNp9Gq8yp0MI4GT0kvFWJPC3ighTDBxD3NJk3X3U2b7bUZ7ntrd6IpV3UJgBZ/CsrHo dphw== X-Gm-Message-State: ALoCoQmy2grZtRrMHtlCojP/lVSZp3SWX7Sa9Gg4/lkzrfLuRSOJXR0f6wh0DF+XMnYzyKdwCyvF X-Received: by 10.43.74.133 with SMTP id yw5mr2327453icb.15.1387531992810; Fri, 20 Dec 2013 01:33:12 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.120.164 with SMTP id ld4ls641810qeb.51.gmail; Fri, 20 Dec 2013 01:33:12 -0800 (PST) X-Received: by 10.58.6.239 with SMTP id e15mr665504vea.29.1387531992703; Fri, 20 Dec 2013 01:33:12 -0800 (PST) Received: from mail-vb0-f41.google.com (mail-vb0-f41.google.com [209.85.212.41]) by mx.google.com with ESMTPS id bw8si1374131vcb.11.2013.12.20.01.33.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Dec 2013 01:33:12 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.41 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.41; Received: by mail-vb0-f41.google.com with SMTP id p14so1311826vbm.14 for ; Fri, 20 Dec 2013 01:33:12 -0800 (PST) X-Received: by 10.52.98.194 with SMTP id ek2mr3697107vdb.11.1387531992588; Fri, 20 Dec 2013 01:33:12 -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.59.13.131 with SMTP id ey3csp47039ved; Fri, 20 Dec 2013 01:33:11 -0800 (PST) X-Received: by 10.68.52.202 with SMTP id v10mr7453462pbo.118.1387531990233; Fri, 20 Dec 2013 01:33:10 -0800 (PST) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTPS id 8si4794072pbe.10.2013.12.20.01.33.09 for (version=TLSv1 cipher=RC4-MD5 bits=128/128); Fri, 20 Dec 2013 01:33:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.25 as permitted sender) client-ip=203.254.224.25; Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MY300NETMJ733E0@mailout2.samsung.com>; Fri, 20 Dec 2013 18:33:07 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.124]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 5B.2B.10092.3DE04B25; Fri, 20 Dec 2013 18:33:07 +0900 (KST) X-AuditID: cbfee68f-b7f156d00000276c-2d-52b40ed35671 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 94.10.28157.3DE04B25; Fri, 20 Dec 2013 18:33:07 +0900 (KST) Received: from localhost.localdomain.com ([107.108.73.95]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MY300LCIMIYHJ70@mmp1.samsung.com>; Fri, 20 Dec 2013 18:33:07 +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 Subject: [PATCH 02/11 V12] Exynos5420: Add base addresses for 5420 Date: Fri, 20 Dec 2013 15:04:31 +0530 Message-id: <1387532080-9131-3-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.11.7 In-reply-to: <1387532080-9131-1-git-send-email-rajeshwari.s@samsung.com> References: <1387532080-9131-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOLMWRmVeSWpSXmKPExsWyRsSkRvcy35Ygg6M3DSwezNvGZvFw/U0W i44jLYwWUw5/YbH4tmUbo8Xy1xvZLd7u7WR3YPeY3XCRxWPBplKPO9f2sHmcvbOD0aNvyyrG ANYoLpuU1JzMstQifbsErowtU3+xF7ySrzixcw17A+M/qS5GTg4JAROJbZvms0DYYhIX7q1n 62Lk4hASWMooMe/vOTaYon0n37NDJBYxSrTdamOGcLqYJOZu2sPaxcjBwQZ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uYgIdbEsuLK3EOMEhzMSiK8HM+BQrwpiZVVqUX5 8UWlOanFhxiTga6ayCwlmpwPjPG8knhDYxNzU2NTSxMLEzNL0oSVxHkPtloHCgmkJ5akZqem FqQWwWxh4uCUamAsfvraTiTpw/U57GWLjWf1+cTqKp+WSD5rsZPHQOSt781306febROfviCq /8p0fRdRjuMXVdNec27dbePX+XWNlZaBZP5N8+87Ttp6pPyyWJBjkVH0Jbmue6JKgLnQ0bnv lRuc1O17dx51EDz6dFVIuVLCo3eP/CXillcWv5u9MVbpUe6b/FwlluKMREMt5qLiRADHll+9 5wIAAA== 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.41 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 Changes in V8: - None Changes in V9: - None Changes in V10: - None Changes in V11: - None Changes in V12: - None arch/arm/include/asm/arch-exynos/cpu.h | 49 +++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-exynos/cpu.h b/arch/arm/include/asm/arch-exynos/cpu.h index b4ef03e..2b44210 100644 --- a/arch/arm/include/asm/arch-exynos/cpu.h +++ b/arch/arm/include/asm/arch-exynos/cpu.h @@ -92,7 +92,7 @@ #define EXYNOS4X12_USB_HOST_XHCI_BASE DEVICE_NOT_AVAILABLE #define EXYNOS4X12_USB3PHY_BASE DEVICE_NOT_AVAILABLE -/* EXYNOS5 Common*/ +/* EXYNOS5 */ #define EXYNOS5_I2C_SPACING 0x10000 #define EXYNOS5_AUDIOSS_BASE 0x03810000 @@ -130,6 +130,46 @@ #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 +#define EXYNOS5420_USB3PHY_BASE DEVICE_NOT_AVAILABLE +#define EXYNOS5420_USB_HOST_XHCI_BASE DEVICE_NOT_AVAILABLE + #ifndef __ASSEMBLY__ #include /* CPU detection macros */ @@ -163,6 +203,10 @@ static inline void s5p_set_cpu_id(void) /* Exynos5250 */ s5p_cpu_id = 0x5250; break; + case 0x420: + /* Exynos5420 */ + s5p_cpu_id = 0x5420; + break; } } @@ -190,6 +234,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)) \ @@ -200,6 +245,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; \