From: sbkim73@samsung.com (Sangbeom Kim)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/6] ARM: S5PV210: Add DMC map_desc table for supporting DMC access
Date: Mon, 20 Sep 2010 15:04:50 +0900 [thread overview]
Message-ID: <1284962695-8542-2-git-send-email-sbkim73@samsung.com> (raw)
In-Reply-To: <1284962695-8542-1-git-send-email-sbkim73@samsung.com>
From: Jaecheol Lee <jc.lee@samsung.com>
This patch adds DMC(DRAM Memory Controller) map_desc table.
Because some driver such as CPUFREQ need to access DMC register.
Signed-off-by: Jaecheol Lee <jc.lee@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
---
arch/arm/mach-s5pv210/cpu.c | 10 ++++++++++
arch/arm/mach-s5pv210/include/mach/map.h | 3 +++
arch/arm/plat-s5p/include/plat/map-s5p.h | 2 ++
3 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-s5pv210/cpu.c b/arch/arm/mach-s5pv210/cpu.c
index c551ab1..aebbb7f 100644
--- a/arch/arm/mach-s5pv210/cpu.c
+++ b/arch/arm/mach-s5pv210/cpu.c
@@ -84,6 +84,16 @@ static struct map_desc s5pv210_iodesc[] __initdata = {
.pfn = __phys_to_pfn(S5PV210_PA_SROMC),
.length = SZ_4K,
.type = MT_DEVICE,
+ }, {
+ .virtual = (unsigned long)S5P_VA_DMC0,
+ .pfn = __phys_to_pfn(S5PV210_PA_DMC0),
+ .length = SZ_4K,
+ .type = MT_DEVICE,
+ }, {
+ .virtual = (unsigned long)S5P_VA_DMC1,
+ .pfn = __phys_to_pfn(S5PV210_PA_DMC1),
+ .length = SZ_4K,
+ .type = MT_DEVICE,
}
};
diff --git a/arch/arm/mach-s5pv210/include/mach/map.h b/arch/arm/mach-s5pv210/include/mach/map.h
index bd9afd5..3e89c22 100644
--- a/arch/arm/mach-s5pv210/include/mach/map.h
+++ b/arch/arm/mach-s5pv210/include/mach/map.h
@@ -96,6 +96,9 @@
#define S5PV210_PA_ADC (0xE1700000)
+#define S5PV210_PA_DMC0 (0xF0000000)
+#define S5PV210_PA_DMC1 (0xF1400000)
+
/* compatibiltiy defines. */
#define S3C_PA_UART S5PV210_PA_UART
#define S3C_PA_HSMMC0 S5PV210_PA_HSMMC(0)
diff --git a/arch/arm/plat-s5p/include/plat/map-s5p.h b/arch/arm/plat-s5p/include/plat/map-s5p.h
index c4ff88b..2472894 100644
--- a/arch/arm/plat-s5p/include/plat/map-s5p.h
+++ b/arch/arm/plat-s5p/include/plat/map-s5p.h
@@ -18,6 +18,8 @@
#define S5P_VA_SYSTIMER S3C_ADDR(0x01200000)
#define S5P_VA_SROMC S3C_ADDR(0x01100000)
#define S5P_VA_SYSRAM S3C_ADDR(0x01180000)
+#define S5P_VA_DMC0 S3C_ADDR(0x00A00000)
+#define S5P_VA_DMC1 S3C_ADDR(0x00A80000)
#define S5P_VA_COMBINER_BASE S3C_ADDR(0x00600000)
#define S5P_VA_COMBINER(x) (S5P_VA_COMBINER_BASE + ((x) >> 2) * 0x10)
--
1.6.2.5
next prev parent reply other threads:[~2010-09-20 6:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-20 6:04 [PATCH v2 0/6] ARM: S5PV210: Add support S5PV210/S5PC110 CPUFREQ Sangbeom Kim
2010-09-20 6:04 ` Sangbeom Kim [this message]
2010-09-20 6:04 ` [PATCH v2 2/6] ARM: S5PV210: Add struct clk_ops for clk_fout_apll Sangbeom Kim
2010-09-20 6:04 ` [PATCH v2 3/6] ARM: S5PV210: Add MOUT_DMC0 and SCLK_DMC0 clocks Sangbeom Kim
2010-09-20 6:04 ` [PATCH v2 4/6] ARM: S5PV210: Add Register definition for CMU Sangbeom Kim
2010-09-20 6:04 ` [PATCH v2 5/6] ARM: S5PV210: Add support CPUFREQ Sangbeom Kim
2010-09-20 6:04 ` [PATCH v2 6/6] ARM: S5PV210: Update Kconfig and Makefile for supporting CPUFREQ driver Sangbeom Kim
2010-10-07 9:49 ` [PATCH v2 0/6] ARM: S5PV210: Add support S5PV210/S5PC110 CPUFREQ Sangbeom Kim
2010-10-08 9:52 ` Kukjin Kim
2010-10-11 0:11 ` MyungJoo Ham
2010-10-11 8:04 ` Sangbeom Kim
2010-10-11 8:22 ` MyungJoo Ham
2010-10-12 0:15 ` Kukjin Kim
2010-10-12 0:39 ` MyungJoo Ham
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=1284962695-8542-2-git-send-email-sbkim73@samsung.com \
--to=sbkim73@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).