Message ID | 1397527192-21988-4-git-send-email-cw00.choi@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tuesday 15 April 2014 10:59:47 Chanwoo Choi wrote: > This patch add memory mapping for PMU (Power Management Unit) which is used > for power control of Exynos3250. > > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> > Acked-by: Kyungmin Park <kyungmin.park@samsung.com> > --- > Arnd Bergmann suggested that need proper driver instead of static memory mapping. > As Chanho Park reply[2], Sachin Kamat already posted the DT support patch[1] > for memory mapping for SYSRAM. > [1] http://www.spinics.net/lists/linux-samsung-soc/msg27647.html > [2] https://lkml.org/lkml/2014/4/10/161 > > So, I'm going to re-implement following patch related to static memory mapping > after merged Sachin Kamat patch[1]. > ARM: EXYNOS: Add IO mapping for PMU of Exynos3250 I don't think we have a patch for the PMU yet, Sachin was looking at the SYSRAM only. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi, On 04/15/2014 05:11 PM, Arnd Bergmann wrote: > On Tuesday 15 April 2014 10:59:47 Chanwoo Choi wrote: >> This patch add memory mapping for PMU (Power Management Unit) which is used >> for power control of Exynos3250. >> >> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> >> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> >> --- >> Arnd Bergmann suggested that need proper driver instead of static memory mapping. >> As Chanho Park reply[2], Sachin Kamat already posted the DT support patch[1] >> for memory mapping for SYSRAM. >> [1] http://www.spinics.net/lists/linux-samsung-soc/msg27647.html >> [2] https://lkml.org/lkml/2014/4/10/161 >> >> So, I'm going to re-implement following patch related to static memory mapping >> after merged Sachin Kamat patch[1]. >> ARM: EXYNOS: Add IO mapping for PMU of Exynos3250 > > I don't think we have a patch for the PMU yet, Sachin was looking at the SYSRAM > only. You are right. Sachin's patch only included the solution of SYSRAM memory mapping. I set out the plan that I would implment proper driver for PMU memory mapping instead of static method after merged Sachin's patch for SYSRAM. But, If you'd like me to implment PMU memory mapping instead of static mapping right now, I'll implement it for PMU such as Sachin's patch on next posting(v3). Thanks for your review. Best Regards, Chanwoo Choi -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi, On Tue, Apr 15, 2014 at 2:02 PM, Chanwoo Choi <cw00.choi@samsung.com> wrote: > Hi, > > On 04/15/2014 05:11 PM, Arnd Bergmann wrote: >> On Tuesday 15 April 2014 10:59:47 Chanwoo Choi wrote: >>> This patch add memory mapping for PMU (Power Management Unit) which is used >>> for power control of Exynos3250. >>> >>> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> >>> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> >>> --- >>> Arnd Bergmann suggested that need proper driver instead of static memory mapping. >>> As Chanho Park reply[2], Sachin Kamat already posted the DT support patch[1] >>> for memory mapping for SYSRAM. >>> [1] http://www.spinics.net/lists/linux-samsung-soc/msg27647.html >>> [2] https://lkml.org/lkml/2014/4/10/161 >>> >>> So, I'm going to re-implement following patch related to static memory mapping >>> after merged Sachin Kamat patch[1]. >>> ARM: EXYNOS: Add IO mapping for PMU of Exynos3250 >> >> I don't think we have a patch for the PMU yet, Sachin was looking at the SYSRAM >> only. > > You are right. Sachin's patch only included the solution of SYSRAM memory mapping. > I set out the plan that I would implment proper driver for PMU memory mapping > instead of static method after merged Sachin's patch for SYSRAM. > > But, > If you'd like me to implment PMU memory mapping instead of static mapping right now, > I'll implement it for PMU such as Sachin's patch on next posting(v3). > I have already posted patch[1] for mapping PMU through DT as part of my PMU series for exynos5260. You can rebase on the same. [1] http://www.spinics.net/lists/arm-kernel/msg316013.html > Thanks for your review. > > Best Regards, > Chanwoo Choi > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi, On 04/15/2014 05:39 PM, Vikas Sajjan wrote: > Hi, > > On Tue, Apr 15, 2014 at 2:02 PM, Chanwoo Choi <cw00.choi@samsung.com> wrote: >> Hi, >> >> On 04/15/2014 05:11 PM, Arnd Bergmann wrote: >>> On Tuesday 15 April 2014 10:59:47 Chanwoo Choi wrote: >>>> This patch add memory mapping for PMU (Power Management Unit) which is used >>>> for power control of Exynos3250. >>>> >>>> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> >>>> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> >>>> --- >>>> Arnd Bergmann suggested that need proper driver instead of static memory mapping. >>>> As Chanho Park reply[2], Sachin Kamat already posted the DT support patch[1] >>>> for memory mapping for SYSRAM. >>>> [1] http://www.spinics.net/lists/linux-samsung-soc/msg27647.html >>>> [2] https://lkml.org/lkml/2014/4/10/161 >>>> >>>> So, I'm going to re-implement following patch related to static memory mapping >>>> after merged Sachin Kamat patch[1]. >>>> ARM: EXYNOS: Add IO mapping for PMU of Exynos3250 >>> >>> I don't think we have a patch for the PMU yet, Sachin was looking at the SYSRAM >>> only. >> >> You are right. Sachin's patch only included the solution of SYSRAM memory mapping. >> I set out the plan that I would implment proper driver for PMU memory mapping >> instead of static method after merged Sachin's patch for SYSRAM. >> >> But, >> If you'd like me to implment PMU memory mapping instead of static mapping right now, >> I'll implement it for PMU such as Sachin's patch on next posting(v3). >> > > I have already posted patch[1] for mapping PMU through DT as part of > my PMU series for exynos5260. > You can rebase on the same. > > > [1] http://www.spinics.net/lists/arm-kernel/msg316013.html OK, I'll rebase it after merged PMU mapping patch[1]. Thanks, Chanwoo Choi -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tuesday 15 April 2014 17:32:40 Chanwoo Choi wrote: > On 04/15/2014 05:11 PM, Arnd Bergmann wrote: > > On Tuesday 15 April 2014 10:59:47 Chanwoo Choi wrote: > > > I don't think we have a patch for the PMU yet, Sachin was looking at the SYSRAM > > only. > > You are right. Sachin's patch only included the solution of SYSRAM memory mapping. > I set out the plan that I would implment proper driver for PMU memory mapping > instead of static method after merged Sachin's patch for SYSRAM. > > But, > If you'd like me to implment PMU memory mapping instead of static mapping right now, > I'll implement it for PMU such as Sachin's patch on next posting(v3). I don't really want to merge a new SoC type until these are resolved, so it would definitely be better to implement this for v3. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 04/15/2014 05:46 PM, Arnd Bergmann wrote: > On Tuesday 15 April 2014 17:32:40 Chanwoo Choi wrote: >> On 04/15/2014 05:11 PM, Arnd Bergmann wrote: >>> On Tuesday 15 April 2014 10:59:47 Chanwoo Choi wrote: >> >>> I don't think we have a patch for the PMU yet, Sachin was looking at the SYSRAM >>> only. >> >> You are right. Sachin's patch only included the solution of SYSRAM memory mapping. >> I set out the plan that I would implment proper driver for PMU memory mapping >> instead of static method after merged Sachin's patch for SYSRAM. >> >> But, >> If you'd like me to implment PMU memory mapping instead of static mapping right now, >> I'll implement it for PMU such as Sachin's patch on next posting(v3). > > I don't really want to merge a new SoC type until these are resolved, so > it would definitely be better to implement this for v3. > OK, I'll rebase this patch on following patch which support PMU memory mapping through DT. [1] http://www.spinics.net/lists/arm-kernel/msg316013.html Thanks for your review. Best Regards, Chanwoo Choi -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index c7c9472..8f6f73d 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -41,6 +41,11 @@ static struct map_desc exynos3250_iodesc[] __initdata = { .pfn = __phys_to_pfn(EXYNOS3_PA_SYSRAM_NS), .length = SZ_4K, .type = MT_DEVICE, + }, { + .virtual = (unsigned long)S5P_VA_PMU, + .pfn = __phys_to_pfn(EXYNOS3_PA_PMU), + .length = SZ_64K, + .type = MT_DEVICE, }, }; diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h index a53981b..4aea694 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -36,6 +36,7 @@ #define EXYNOS4_PA_SYSCON 0x10010000 #define EXYNOS5_PA_SYSCON 0x10050100 +#define EXYNOS3_PA_PMU 0x10020000 #define EXYNOS4_PA_PMU 0x10020000 #define EXYNOS5_PA_PMU 0x10040000