sysreset: syscon: Support value property
authorBin Meng <bin.meng@windriver.com>
Tue, 23 Jun 2020 05:29:43 +0000 (22:29 -0700)
committerAndes <uboot@andestech.com>
Fri, 24 Jul 2020 06:55:49 +0000 (14:55 +0800)
commit9cdfade85ebeab73ce001e3dfdb8c529bf3cabed
treef76e3dbcc44e87583911c24f1a45cb051a8a7932
parent1ce8182b0f7254d0d01e309341c35bbc1b8c10e4
sysreset: syscon: Support value property

Per the DT binding, <mask> and <value> property can have either one
or both, and if <value> is missing, <mask> should be used, which is
what current U-Boot sysreset_syscon driver supports.

This adds support to the <value> property to the driver, and <mask>
semantics is updated to really be a mask to the value if both exist.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Pragnesh Patel <pragnesh.patel@sifive.com>
drivers/sysreset/sysreset_syscon.c