Add xor support which enables toggling of a bit:
- REG_SCRIPT_COMMAND_RXW enum value
- REG_*_RXW* macros to support using REG_SCRIPT_COMMAND_RXW
- REG_*_XOR* macros to support using REG_SCRIPT_COMMAND_RXW
- reg_script_rxw routine to perform and/xor operation
- case in reg_script_run_step to call reg_script_rxw
TEST=Build and run on Galileo Gen2
Change-Id: I50a492c7c2643df5dc2d2fa7113e3722c1e480c7
6bcbe57 lib/regscript: Add exclusive-or (xor) support
src/include/reg_script.h | 57 ++++++++++++++++++++++++++++++++++++++++++++++
src/lib/reg_script.c | 38 +++++++++++++++++++++++++++++++
2 files changed, 95 insertions(+)
Upstream: review.coreboot.org