summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2015-02-17 10:58:41 -0700
committerStephen Warren <swarren@nvidia.com>2015-02-17 10:58:41 -0700
commit4eba45ed9a633f8fb109ff4e9cb232b1791b27fc (patch)
tree885a611953bda5f403e5ea45ad7a535253e11244
parent22870efb62475e5aeafa48f670cb9c97be621d4f (diff)
downloadtegra-pinmux-scripts-4eba45ed9a633f8fb109ff4e9cb232b1791b27fc.tar.gz
Only warn about unconfigured pins if they have a register
Some pins don't have a register and hence can't be configured. Don't warn that those pins are unconfigured. Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r--tegra_pmx_board_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tegra_pmx_board_parser.py b/tegra_pmx_board_parser.py
index 7b45abe..1ea16ef 100644
--- a/tegra_pmx_board_parser.py
+++ b/tegra_pmx_board_parser.py
@@ -64,7 +64,7 @@ class Board(TopLevelParsedObj):
return self._pincfgs_by_num
def warn_about_unconfigured_pins(self):
- unconfigured_gpio_pins = {gpio_pin.fullname for gpio_pin in self.soc.gpios_pins_by_num()}
+ unconfigured_gpio_pins = [gpio_pin.fullname for gpio_pin in self.soc.gpios_pins_by_num() if gpio_pin.reg]
for gpio_pin in self.pincfgs_by_num():
unconfigured_gpio_pins.remove(gpio_pin.gpio_pin.fullname)
for gpio_pin in unconfigured_gpio_pins: