Hi Mario, On 28 March 2018 at 20:39, Mario Six <mario....@gdsys.cc> wrote: > This patch adds a command that enables the calculation of bit operations > (AND, OR, XOR) on binary data from the command line. Memory locations as > well as the contents of environment variables are eligible as sources > and destination of the binary data used in the operations. > > The possible applications are manifold: Setting specific bits in > registers using the regular read-OR-write pattern, masking out bits in > bit values, implementation of simple OTP encryption using the XOR > operation, etc. > > Signed-off-by: Mario Six <mario....@gdsys.cc> > --- > cmd/Kconfig | 6 ++ > cmd/Makefile | 1 + > cmd/binop.c | 176 > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 183 insertions(+) > create mode 100644 cmd/binop.c
This looks useful. It needs a test. Can we integrate with setexpr somehow? Regards, Simon _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot