gen_devtree: The PNOR node needs a label property
Change-Id: Ia21e56c47b51a732bd3c7c31b9a5e2b3e497534c
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/gen_devtree.pl b/gen_devtree.pl
index 7e9fb31..d737fea 100755
--- a/gen_devtree.pl
+++ b/gen_devtree.pl
@@ -416,6 +416,13 @@
$spiMaster{$flashName}{status} = "okay";
+ #AST2500 PNORs need a label
+ my $function = $g_targetObj->getAttribute($spi->{SOURCE},
+ "SPI_FUNCTION");
+ if ($function eq "PNOR") {
+ $spiMaster{$flashName}{label} = "pnor";
+ }
+
$chipSelect++;
}
}