[PATCH v4 1/3] ARM: EXYNOS: initial board support for exynos5260 SoC
Arnd Bergmann
arnd at arndb.de
Tue Feb 18 06:55:46 EST 2014
On Tuesday 18 February 2014 17:11:43 Sachin Kamat wrote:
> On 18 February 2014 16:33, Arnd Bergmann <arnd at arndb.de> wrote:
> > On Tuesday 18 February 2014 16:27:54 Rahul Sharma wrote:
> >>
> >> +static struct map_desc exynos5260_iodesc[] __initdata = {
> >> + {
> >> + .virtual = (unsigned long)S5P_VA_SYSRAM_NS,
> >> + .pfn = __phys_to_pfn(EXYNOS5260_PA_SYSRAM_NS),
> >> + .length = SZ_4K,
> >> + .type = MT_DEVICE,
> >> + },
> >> +};
> > As I commented before, I think we really shouldn't do this any more: There
> > is no excuse why you still need to add SoC specific code here. Please put
> > the SYSRAM into DT and make a proper abstraction for it so you don't have
> > to modify the kernel every time a new SoC variant comes out.
>
> Do we have any bindings already defined for this kind of stuff or is
> this implemented in
> any other platform/architecture for reference?
>
It depends on how the sram is used. There is a generic binding in
Documentation/devicetree/bindings/misc/sram.txt that may be appropriate here.
Arnd
More information about the linux-arm-kernel
mailing list