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:
Kumar Gala 2019-08-09 08:46:06 -05:00 committed by Kumar Gala
parent b012034519
commit f80332543e
2 changed files with 6 additions and 2 deletions

View File

@ -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]

View File

@ -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: