From: Chanwoo Choi <cw00.choi@samsung.com> To: kgene.kim@samsung.com, t.figa@samsung.com, linux-samsung-soc@vger.kernel.org Cc: kyungmin.park@samsung.com, cw00.choi@samsung.com, inki.dae@samsung.com, sw0312.kim@samsung.com, hyunhee.kim@samsung.com, yj44.cho@samsung.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 02/27] ARM: EXYNOS: Add IO mapping for non-secure SYSRAM of Exynos3250 Date: Thu, 10 Apr 2014 18:37:13 +0900 [thread overview] Message-ID: <1397122658-16013-3-git-send-email-cw00.choi@samsung.com> (raw) In-Reply-To: <1397122658-16013-1-git-send-email-cw00.choi@samsung.com> The non-secure SYSRAM is used for secondary CPU bring-up. This patch add IO mapping for non-scure SYSRAM. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> --- arch/arm/mach-exynos/exynos.c | 12 ++++++++++++ arch/arm/mach-exynos/include/mach/map.h | 1 + 2 files changed, 13 insertions(+) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index b134868..cad3bfd 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -35,6 +35,15 @@ #define L2_AUX_VAL 0x7C470001 #define L2_AUX_MASK 0xC200ffff +static struct map_desc exynos3250_iodesc[] __initdata = { + { + .virtual = (unsigned long)S5P_VA_SYSRAM_NS, + .pfn = __phys_to_pfn(EXYNOS3_PA_SYSRAM_NS), + .length = SZ_4K, + .type = MT_DEVICE, + }, +}; + static struct map_desc exynos4_iodesc[] __initdata = { { .virtual = (unsigned long)S3C_VA_SYS, @@ -275,6 +284,9 @@ static int __init exynos_fdt_map_chipid(unsigned long node, const char *uname, */ static void __init exynos_map_io(void) { + if (soc_is_exynos3250()) + iotable_init(exynos3250_iodesc, ARRAY_SIZE(exynos3250_iodesc)); + if (soc_is_exynos4()) iotable_init(exynos4_iodesc, ARRAY_SIZE(exynos4_iodesc)); diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h index 7b046b5..a53981b 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -26,6 +26,7 @@ #define EXYNOS4_PA_SYSRAM0 0x02025000 #define EXYNOS4_PA_SYSRAM1 0x02020000 #define EXYNOS5_PA_SYSRAM 0x02020000 +#define EXYNOS3_PA_SYSRAM_NS 0x0205F000 #define EXYNOS4210_PA_SYSRAM_NS 0x0203F000 #define EXYNOS4x12_PA_SYSRAM_NS 0x0204F000 #define EXYNOS5250_PA_SYSRAM_NS 0x0204F000 -- 1.8.0
WARNING: multiple messages have this Message-ID (diff)
From: cw00.choi@samsung.com (Chanwoo Choi) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 02/27] ARM: EXYNOS: Add IO mapping for non-secure SYSRAM of Exynos3250 Date: Thu, 10 Apr 2014 18:37:13 +0900 [thread overview] Message-ID: <1397122658-16013-3-git-send-email-cw00.choi@samsung.com> (raw) In-Reply-To: <1397122658-16013-1-git-send-email-cw00.choi@samsung.com> The non-secure SYSRAM is used for secondary CPU bring-up. This patch add IO mapping for non-scure SYSRAM. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> --- arch/arm/mach-exynos/exynos.c | 12 ++++++++++++ arch/arm/mach-exynos/include/mach/map.h | 1 + 2 files changed, 13 insertions(+) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index b134868..cad3bfd 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -35,6 +35,15 @@ #define L2_AUX_VAL 0x7C470001 #define L2_AUX_MASK 0xC200ffff +static struct map_desc exynos3250_iodesc[] __initdata = { + { + .virtual = (unsigned long)S5P_VA_SYSRAM_NS, + .pfn = __phys_to_pfn(EXYNOS3_PA_SYSRAM_NS), + .length = SZ_4K, + .type = MT_DEVICE, + }, +}; + static struct map_desc exynos4_iodesc[] __initdata = { { .virtual = (unsigned long)S3C_VA_SYS, @@ -275,6 +284,9 @@ static int __init exynos_fdt_map_chipid(unsigned long node, const char *uname, */ static void __init exynos_map_io(void) { + if (soc_is_exynos3250()) + iotable_init(exynos3250_iodesc, ARRAY_SIZE(exynos3250_iodesc)); + if (soc_is_exynos4()) iotable_init(exynos4_iodesc, ARRAY_SIZE(exynos4_iodesc)); diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h index 7b046b5..a53981b 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -26,6 +26,7 @@ #define EXYNOS4_PA_SYSRAM0 0x02025000 #define EXYNOS4_PA_SYSRAM1 0x02020000 #define EXYNOS5_PA_SYSRAM 0x02020000 +#define EXYNOS3_PA_SYSRAM_NS 0x0205F000 #define EXYNOS4210_PA_SYSRAM_NS 0x0203F000 #define EXYNOS4x12_PA_SYSRAM_NS 0x0204F000 #define EXYNOS5250_PA_SYSRAM_NS 0x0204F000 -- 1.8.0
next prev parent reply other threads:[~2014-04-10 9:38 UTC|newest] Thread overview: 132+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-04-10 9:37 [PATCH 00/27] Support new Exynos3250 SoC based on Cortex-A7 dual core Chanwoo Choi 2014-04-10 9:37 ` Chanwoo Choi 2014-04-10 9:37 ` [PATCH 01/27] ARM: EXYNOS: Add Exynos3250 SoC ID Chanwoo Choi 2014-04-10 9:37 ` Chanwoo Choi 2014-04-11 1:46 ` Olof Johansson 2014-04-11 1:46 ` Olof Johansson 2014-04-11 6:32 ` Chanwoo Choi 2014-04-11 6:32 ` Chanwoo Choi 2014-04-11 7:09 ` Chanwoo Choi 2014-04-11 7:09 ` Chanwoo Choi 2014-04-11 8:12 ` Arnd Bergmann 2014-04-11 8:12 ` Arnd Bergmann 2014-04-11 8:12 ` Arnd Bergmann 2014-04-11 8:39 ` Tomasz Figa 2014-04-11 8:39 ` Tomasz Figa 2014-04-14 5:13 ` Chanwoo Choi 2014-04-14 5:13 ` Chanwoo Choi 2014-04-16 15:53 ` Tomasz Figa 2014-04-16 15:53 ` Tomasz Figa 2014-04-17 1:37 ` Chanwoo Choi 2014-04-17 1:37 ` Chanwoo Choi 2014-04-11 3:56 ` Sachin Kamat 2014-04-11 3:56 ` Sachin Kamat 2014-04-11 5:54 ` Chanwoo Choi 2014-04-11 5:54 ` Chanwoo Choi 2014-04-11 5:56 ` Sachin Kamat 2014-04-11 5:56 ` Sachin Kamat 2014-04-11 6:07 ` Chanwoo Choi 2014-04-11 6:07 ` Chanwoo Choi 2014-04-10 9:37 ` Chanwoo Choi [this message] 2014-04-10 9:37 ` [PATCH 02/27] ARM: EXYNOS: Add IO mapping for non-secure SYSRAM of Exynos3250 Chanwoo Choi 2014-04-10 9:37 ` [PATCH 03/27] ARM: EXYNOS: Add IO mapping for PMU " Chanwoo Choi 2014-04-10 9:37 ` Chanwoo Choi 2014-04-10 9:37 ` Chanwoo Choi 2014-04-11 1:48 ` Olof Johansson 2014-04-11 1:48 ` Olof Johansson 2014-04-11 2:03 ` Chanwoo Choi 2014-04-11 2:03 ` Chanwoo Choi 2014-04-11 8:41 ` Arnd Bergmann 2014-04-11 8:41 ` Arnd Bergmann 2014-04-11 22:39 ` 최찬우 2014-04-11 22:39 ` 최찬우 2014-04-10 9:37 ` [PATCH 04/27] ARM: EXYNOS: Support secondary CPU boot of Exynos4212 Chanwoo Choi 2014-04-10 9:37 ` Chanwoo Choi 2014-04-10 9:37 ` Chanwoo Choi 2014-04-11 1:44 ` Olof Johansson 2014-04-11 1:44 ` Olof Johansson 2014-04-11 5:14 ` Chanwoo Choi 2014-04-11 5:14 ` Chanwoo Choi 2014-04-11 6:04 ` Sangbeom Kim 2014-04-11 6:04 ` Sangbeom Kim 2014-04-11 7:14 ` Tomasz Figa 2014-04-11 7:14 ` Tomasz Figa 2014-04-10 9:37 ` [PATCH 05/27] ARM: EXYNOS: Support secondary CPU boot of Exynos3250 Chanwoo Choi 2014-04-10 9:37 ` Chanwoo Choi 2014-04-10 9:37 ` Chanwoo Choi 2014-04-10 9:37 ` [PATCH 06/27] ARM: EXYNOS:: Enter a15 lowpower mode for Exynos3250 based on Cortex-a7 Chanwoo Choi 2014-04-10 9:37 ` Chanwoo Choi 2014-04-10 9:37 ` [PATCH 07/27] irqchip: Declare cortex-a7's irqchip to initialize gic from dt Chanwoo Choi 2014-04-10 9:37 ` Chanwoo Choi 2014-04-10 9:37 ` [PATCH 08/27] pinctrl: exynos: Add driver data for Exynos3250 Chanwoo Choi 2014-04-10 9:37 ` Chanwoo Choi 2014-04-10 10:05 ` [PATCH 09/27] clk: samsung: exynos3250: Add clocks using common clock framework Chanwoo Choi 2014-04-10 10:05 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 10/27] ARM: dts: exynos3250: Add new exynos3250.dtsi file Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-11 4:01 ` Sachin Kamat 2014-04-11 4:01 ` Sachin Kamat 2014-04-11 4:46 ` Chanwoo Choi 2014-04-11 4:46 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 11/27] ARM: dts: exynos3250: Add GIC dt node for Exynos3250 Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 12/27] ARM: dts: exynos3250: Add default interrupt-parent connected with GIC Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-11 4:00 ` Olof Johansson 2014-04-11 4:00 ` Olof Johansson 2014-04-11 4:44 ` Chanwoo Choi 2014-04-11 4:44 ` Chanwoo Choi 2014-04-11 4:44 ` Chanwoo Choi 2014-04-11 8:51 ` Tomasz Figa 2014-04-11 8:51 ` Tomasz Figa 2014-04-11 22:30 ` 최찬우 2014-04-11 22:30 ` 최찬우 2014-04-10 10:06 ` [PATCH 13/27] ARM: dts: exynos3250: Add pin control device tree data Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 14/27] ARM: dts: exynos3250: Add device tree nodes for clock controllers Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 15/27] ARM: dts: exynos3250: Add uart dt node to support seiral ports Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-11 4:03 ` Sachin Kamat 2014-04-11 4:03 ` Sachin Kamat 2014-04-11 4:50 ` Chanwoo Choi 2014-04-11 4:50 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 16/27] ARM: dts: exynos3250: Add MCT dt node Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 17/27] ARM: dts: exynos3250: Add ADC dt node to read analog raw data Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 18/27] ARM: dts: exynos3250: Add i2c dt node Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 19/27] ARM: dts: exynos3250: Add Mobile Storage Host Card Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 20/27] ARM: dts: exynos3250: Move definitions of external clocks to SoC dtsi Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 21/27] ARM: dts: exynos3250: Add PMU dt data Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:23 ` Chanho Park 2014-04-10 10:23 ` Chanho Park 2014-04-10 11:20 ` Chanwoo Choi 2014-04-10 11:20 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 22/27] ARM: dts: exynos3250: Add amba and pdma dt node Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 23/27] ARM: dts: exynos3250: Add spi dt node to support spi bus Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 24/27] ARM: dts: exynos3250: Add pwm dt node to support PWM Timer Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 25/27] ARM: dts: exynos3250: Add RTC dt node Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 26/27] ARM: dts: exynos3250: Add power domain dt nodes Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` [PATCH 27/27] ARM: dts: exynos3250: Add CPUs dt node for Exynos3250 Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi 2014-04-10 10:06 ` Chanwoo Choi -- strict thread matches above, loose matches on Subject: below -- 2014-04-10 9:28 [PATCH 00/27] Support new Exynos3250 SoC based on Cortex-A7 dual core Chanwoo Choi 2014-04-10 9:28 ` [PATCH 02/27] ARM: EXYNOS: Add IO mapping for non-secure SYSRAM of Exynos3250 Chanwoo Choi 2014-04-10 9:28 ` Chanwoo Choi 2014-04-10 9:45 ` Arnd Bergmann 2014-04-10 9:45 ` Arnd Bergmann 2014-04-10 9:45 ` Arnd Bergmann 2014-04-10 9:57 ` Chanho Park 2014-04-10 9:57 ` Chanho Park
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1397122658-16013-3-git-send-email-cw00.choi@samsung.com \ --to=cw00.choi@samsung.com \ --cc=hyunhee.kim@samsung.com \ --cc=inki.dae@samsung.com \ --cc=kgene.kim@samsung.com \ --cc=kyungmin.park@samsung.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=sw0312.kim@samsung.com \ --cc=t.figa@samsung.com \ --cc=yj44.cho@samsung.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.