From: kgene.kim@samsung.com (Kukjin Kim)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 4/5] ARM: S5PV210: add DMCx access virtual address
Date: Fri, 16 Jul 2010 21:35:23 +0900 [thread overview]
Message-ID: <013001cb24e3$5ec9ca10$1c5d5e30$%kim@samsung.com> (raw)
In-Reply-To: <1279267277-6804-5-git-send-email-myungjoo.ham@samsung.com>
MyungJoo Ham wrote:
>
> This patch prepares CPUFREQ support for S5PV210 by adding definitions
> for S5P_VA_DMCx accessed by CPUFREQ, which were not defined previously.
>
> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> arch/arm/mach-s5pv210/cpu.c | 12 +++++++++++-
> arch/arm/mach-s5pv210/include/mach/map.h | 8 ++++++++
> 2 files changed, 19 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-s5pv210/cpu.c b/arch/arm/mach-s5pv210/cpu.c
> index 94c632b..84a6708 100644
> --- a/arch/arm/mach-s5pv210/cpu.c
> +++ b/arch/arm/mach-s5pv210/cpu.c
> @@ -59,7 +59,17 @@ 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(S5P_PA_DMC0),
> + .length = SZ_4K,
> + .type = MT_DEVICE,
> + }, {
> + .virtual = (unsigned long)S5P_VA_DMC1,
> + .pfn = __phys_to_pfn(S5P_PA_DMC1),
> + .length = SZ_4K,
> + .type = MT_DEVICE,
> + },
> };
>
> static void s5pv210_idle(void)
> diff --git a/arch/arm/mach-s5pv210/include/mach/map.h b/arch/arm/mach-
> s5pv210/include/mach/map.h
> index 17687f0..4945674 100644
> --- a/arch/arm/mach-s5pv210/include/mach/map.h
> +++ b/arch/arm/mach-s5pv210/include/mach/map.h
> @@ -108,4 +108,12 @@
> #define SAMSUNG_PA_ADC S5PV210_PA_ADC
> #define SAMSUNG_PA_KEYPAD S5PV210_PA_KEYPAD
>
> +/* DMC */
> +#define S5P_PA_DMC0 (0xF0000000)
Should be S5PV210_PA_DMC0..
If you need to define S5P_PA_xxx, you can re-define like others in here.
But right now no need S5P_PA_xxx because used in cpu.c of mach directory not
plat-s5p.
> +#define S5P_VA_DMC0 S3C_ADDR(0x00a00000)
If you need to add VA_xxx, should be in plat-s5p/include/plat/map-s5p.h
> +
> +#define S5P_PA_DMC1 (0xF1400000)
> +#define S5P_VA_DMC1 S3C_ADDR(0x00b00000)
Same...
> +
> +
No need 2 empty lines...1 empty line is enough.
> #endif /* __ASM_ARCH_MAP_H */
> --
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
next prev parent reply other threads:[~2010-07-16 12:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-16 8:01 [PATCH v2 0/5] ARM: S5PV210: CPUFREQ Initial Support MyungJoo Ham
2010-07-16 8:01 ` [PATCH v2 1/5] ARM: Samsung SoC: added hclk/pclk info to s3c_freq for s5pv210 cpu-freq MyungJoo Ham
2010-07-16 8:01 ` [PATCH v2 2/5] ARM: S5P: Added default pll values for APLL 800/1000MHz MyungJoo Ham
2010-07-16 8:01 ` [PATCH v2 3/5] ARM: S5PV210: macros for clock registers at regs-clock.h MyungJoo Ham
2010-07-16 8:01 ` [PATCH v2 4/5] ARM: S5PV210: add DMCx access virtual address MyungJoo Ham
2010-07-16 8:01 ` [PATCH v2 5/5] ARM: S5PV210: Initial CPUFREQ Support MyungJoo Ham
2010-07-16 8:58 ` Mark Brown
2010-07-16 11:02 ` Maurus Cuelenaere
2010-07-19 2:50 ` MyungJoo Ham
2010-07-16 12:35 ` Kukjin Kim [this message]
2010-07-16 12:22 ` [PATCH v2 2/5] ARM: S5P: Added default pll values for APLL 800/1000MHz Kukjin Kim
2010-07-17 3:10 ` Kyungmin Park
2010-07-17 3:43 ` Jassi Brar
2010-07-17 4:09 ` Kyungmin Park
2010-07-17 4:45 ` Jassi Brar
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='013001cb24e3$5ec9ca10$1c5d5e30$%kim@samsung.com' \
--to=kgene.kim@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).