commit | d3b1a15d18542b2086e72bfdc3fc43f454772a3b | [log] [tgz] |
---|---|---|
author | Mark Rutland <mark.rutland@arm.com> | Tue Jul 27 15:07:03 2021 +0100 |
committer | Mark Rutland <mark.rutland@arm.com> | Thu Jan 27 16:12:11 2022 +0000 |
tree | d055aaeb19e6c44f462f9cd5ce7a0d9e8d5578c7 | |
parent | 286b8ecc86393c2619fc8e5792a4684c46fa461c [diff] |
Add bit-field macros Arm architectural documentation typically defines bit-fields as `[msb,lsb]` and single-bit fields as `[bit]`. For clarity it would be helpful if we could define fields in the same way. Add helpers so that we can do so, along with helper to extract/insert bit-field values. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Andre Przywara <andre.przywara@arm.com>