diff options
author | Juergen Borleis <jbe@pengutronix.de> | 2018-03-23 09:43:51 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-03-26 09:23:21 +0200 |
commit | f04deb4018a2df204e16fc13c74028120cdb60a6 (patch) | |
tree | 1f97528de964704199937c87d956003095cad0c6 /scripts/imx/imx.h | |
parent | 971366078893a669246a52e6058d47de9993e77e (diff) | |
download | barebox-f04deb4018a2df204e16fc13c74028120cdb60a6.tar.gz barebox-f04deb4018a2df204e16fc13c74028120cdb60a6.tar.xz |
i.MX/DCD compiler and interpreter: logic is different
Reading the manual more carefully discovers a different logic for the
DCD 'check' command. They use the term "until". In order to get the
manual and the software in sync, this change switches to the term
"until" as well. Changing must happen at compiler and interpreter level
to make it work.
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/imx/imx.h')
-rw-r--r-- | scripts/imx/imx.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/imx/imx.h b/scripts/imx/imx.h index f32ae52abf..c7677f81a4 100644 --- a/scripts/imx/imx.h +++ b/scripts/imx/imx.h @@ -105,10 +105,10 @@ struct imx_dcd_v2_check { } __attribute__((packed)); enum imx_dcd_v2_check_cond { - check_all_bits_clear = 0, - check_all_bits_set = 1, - check_any_bit_clear = 2, - check_any_bit_set = 3, + until_all_bits_clear = 0, /* until ((*address & mask) == 0) { ...} */ + until_any_bit_clear = 1, /* until ((*address & mask) != mask) { ...} */ + until_all_bits_set = 2, /* until ((*address & mask) == mask) { ...} */ + until_any_bit_set = 3, /* until ((*address & mask) != 0) { ...} */ } __attribute__((packed)); int parse_config(struct config_data *data, const char *filename); |