[U-Boot] [U-Boot, v2, 1/2] drivers/reset: support rockchip reset drivers

Dr. Philipp Tomsich philipp.tomsich at theobroma-systems.com
Tue Nov 28 19:49:40 UTC 2017


Kever,

This series causes build-breakage (even outside of the rockchip targets)...
See https://travis-ci.org/ptomsich/u-boot-rockchip/builds/308522589

Please fix and resubmit.
Also: did you test this using buildman or travis?

Thanks,
Philipp.


> On 28 Nov 2017, at 11:06, Philipp Tomsich <philipp.tomsich at theobroma-systems.com> wrote:
> 
>> From: Elaine Zhang <zhangqing at rock-chips.com>
>> 
>> Create driver to support all Rockchip SoCs soft reset.
>> 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 at rock-chips.com>
>> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
>> Acked-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com <mailto:philipp.tomsich at theobroma-systems.com>>
>> ---
>> 
>> Changes in v2:
>> - fix Kconfig more than 80 length
>> - use MACRO for reset bits in one reg
>> - use rkclr/set_reg for reg access
>> - add rockchip_reset_bind()
>> - use dev_read_addr_size() instead of fdtdec_
>> 
>> drivers/reset/Kconfig          |   9 +++
>> drivers/reset/Makefile         |   1 +
>> drivers/reset/reset-rockchip.c | 133 +++++++++++++++++++++++++++++++++++++++++
>> 3 files changed, 143 insertions(+)
>> create mode 100644 drivers/reset/reset-rockchip.c
>> 
> 
> Reviewed-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com <mailto:philipp.tomsich at theobroma-systems.com>>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de <mailto:U-Boot at lists.denx.de>
> https://lists.denx.de/listinfo/u-boot <https://lists.denx.de/listinfo/u-boot>


More information about the U-Boot mailing list