Skip to content

Integrator devicetree support

Arnd Bergmann linux-arm-kernel linux-devicetree 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 6 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 6 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] Integrator devicetree support
Quoted 3 lines · Linus Walleij

Since we already have CONFIG_USE_OF I think CONFIG_USE_ATAGS is more apropriate, but I get the idea.

There is both CONFIG_USE_OF and CONFIG_OF. The former is what a platform selects and it turns on a few other options as well, while the latter is the one that you typically check in #ifdef.

We might need both of them for ATAG as well, but I think if we have just one, CONFIG_ATAGS or CONFIG_ATAG would be nicer because it's slightly shorter.

Quoted 28 lines

So it begins like this:

arch/arm/Kconfig +7 -0
index e91c7cd..0764ef7 100644
@@ -1907,6 +1907,12 @@ endmenu
 
 menu "Boot options"
 
+config USE_ATAGS
+       bool "ATAGS support"
+       default y
+       help
+         Include support for ATAGS-based machine descriptions.
+
 config USE_OF
        bool "Flattened Device Tree support"
        select OF
@@ -2110,6 +2116,7 @@ config KEXEC
 
 config ATAGS_PROC
        bool "Export atags in procfs"
+       depends on USE_ATAGS
        depends on KEXEC
        default y
        help
Quoted 3 lines

But then we hit #ifdeffing and compiling out a lot of dangerous stuff in arch/arm/kernel and then I get the creeps. I can try, but I think this is typical Nico territory for example...

We don't have to enclose every single usage of ATAGS with this, but I think it's helpful in platforms that you want to migrate away from ATAG to DT-only. I think we should also use this method in mach-ux500, for instance.

Putting MACHINE_START and DT_MACHINE_START inside of CONFIG_ATAG and CONFIG_OF respectively would help ensure that we don't accidentally build support for a board that cannot work.

Arnd