hw/ssi: imx_spi: Rework imx_spi_reset() to keep CONREG register value
commit93722b6f6a6ef0ab0544f20440a2f6b951103dcb
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 29 Jan 2021 13:23:17 +0000 (29 21:23 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 2 Feb 2021 17:00:55 +0000 (2 17:00 +0000)
tree96edd9a76b5cb0b434029ed9c1479a6ea6ca2338
parent9c431a43a62255402a6bbe9a01b0464e73b30fe4
hw/ssi: imx_spi: Rework imx_spi_reset() to keep CONREG register value

When the block is disabled, all registers are reset with the
exception of the ECSPI_CONREG. It is initialized to zero
when the instance is created.

Ref: i.MX 6DQ Applications Processor Reference Manual (IMX6DQRM),
     chapter 21.7.3: Control Register (ECSPIx_CONREG)

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210129132323.30946-5-bmeng.cn@gmail.com
[bmeng: add a 'common_reset' function that does most of reset operation]
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/ssi/imx_spi.c