]> git.sur5r.net Git - u-boot/commit
rockchip: reset: support a (common) rockchip reset drivers
authorElaine Zhang <zhangqing@rock-chips.com>
Tue, 19 Dec 2017 10:22:37 +0000 (18:22 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 9 Jan 2018 10:13:32 +0000 (11:13 +0100)
commit760188c1aa5b8b474340d3e090b4adc9400c2238
treedffb275cffae76ba62709390f6f5c29465356943
parentf3dd87e0b98999a78e500e8c6d2b063ebadf535a
rockchip: reset: support a (common) rockchip reset drivers

Create driver to support the soft reset (i.e. peripheral)
of all Rockchip SoCs.

Example of usage:
i2c driver:
ret = reset_get_by_name(dev, "i2c", &reset_ctl);
if (ret) {
error("reset_get_by_name() failed: %d\n", ret);
}

reset_assert(&reset_ctl);
udelay(50);
reset_deassert(&reset_ctl);

i2c dts node:
resets = <&cru SRST_P_I2C1>, <&cru SRST_I2C1>;
reset-names = "p_i2c", "i2c";

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
[Fixed commit tag:]
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/reset/Kconfig
drivers/reset/Makefile
drivers/reset/reset-rockchip.c [new file with mode: 0644]