scripts/dts/gen_defines.py: Ignore varions base properties
We don't want any defines generated for 'status', 'interrupt-parent', and 'interrupts-extended' properties. So skip them in write_props if we see them. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
b012034519
commit
f80332543e
|
@ -28,6 +28,8 @@ class DTInterrupts(DTDirective):
|
|||
# compatible definition.
|
||||
#
|
||||
def extract(self, node_path, prop, names, def_label):
|
||||
if prop == "interrupts-extended":
|
||||
return
|
||||
vals = reduced[node_path]['props'][prop]
|
||||
if not isinstance(vals, list):
|
||||
vals = [vals]
|
||||
|
|
|
@ -159,8 +159,10 @@ def write_props(dev):
|
|||
continue
|
||||
|
||||
# Skip properties that we handle elsewhere
|
||||
if prop.name in {"reg", "interrupts", "compatible", "interrupt-controller",
|
||||
"gpio-controller"}:
|
||||
if prop.name in {
|
||||
"reg", "compatible", "status", "interrupts",
|
||||
"interrupt-controller", "gpio-controller"
|
||||
}:
|
||||
continue
|
||||
|
||||
if prop.description is not None:
|
||||
|
|
Loading…
Reference in New Issue