]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: Add a system reset uclass
authorSimon Glass <sjg@chromium.org>
Tue, 23 Jun 2015 21:39:13 +0000 (15:39 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:48:54 +0000 (13:48 +0200)
commit2b98559ca25bc7ca3cdf81354cb6e6053f1562db
tree00f0e40720e39d0f3dbcdec78ff4f9b0c5d7e3fd
parenta886a652b459f2a47e2d7c7c620b1f05337d5ba3
dm: Add a system reset uclass

It is common for system reset to be available at multiple levels in modern
hardware. For example, an SoC may provide a reset option, and a board may
provide its own reset for reasons of security or thoroughness. It is useful
to be able to model this hardware without hard-coding the behaviour in the
SoC or board. Also there is a distinction sometimes between resetting just
the CPU (leaving GPIO state alone) and resetting all the PMICs, just cutting
power.

To achieve this, add a simple system reset uclass. It allows multiple devices
to provide reset functionality and provides a way to walk through them,
requesting a particular reset type until is it provided.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/misc/Kconfig
drivers/misc/Makefile
drivers/misc/reset-uclass.c [new file with mode: 0644]
include/dm/uclass-id.h
include/reset.h [new file with mode: 0644]