summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2019-02-11 11:42:55 +0100
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2019-02-11 11:42:55 +0100
commita75ea34157c548db5737a495d116cf6fe5752372 (patch)
treeb142e9853a56b052174ca4c0b094d57af7dc8cbf
parent8498644efe82ec026f77bd17737bf5a19708f90a (diff)
dtblint: fsl,iomuxc: improve check for reserved bits
Some bits in the imx6dl iomux IP are reseverd and 1. The device tree is expected to specify these bits as 1, so take swpad_reset_default into account for this check.
-rw-r--r--src/dtblint-imx-pinmux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dtblint-imx-pinmux.c b/src/dtblint-imx-pinmux.c
index dea38fa..3036777 100644
--- a/src/dtblint-imx-pinmux.c
+++ b/src/dtblint-imx-pinmux.c
@@ -4385,9 +4385,9 @@ static int parse_function(struct device_node *funcnode,
padinfo->swpad_reset_default &
padinfo->swpad_writeable_mask,
padinfo->padname);
- } else if (config & ~padinfo->swpad_writeable_mask) {
- printf("E: config value specified for reserved bit (%s, %" PRIx32 ")\n",
- padinfo->padname, config & ~padinfo->swpad_writeable_mask);
+ } else if ((config ^ padinfo->swpad_reset_default) & ~padinfo->swpad_writeable_mask) {
+ printf("E: config value specified for reserved bit differ from reset value (%s, %" PRIx32 ")\n",
+ padinfo->padname, (config ^ padinfo->swpad_reset_default) & ~padinfo->swpad_writeable_mask);
}
}
}