dm: Add support for simple-pm-bus
authorSean Anderson <seanga2@gmail.com>
Wed, 24 Jun 2020 10:41:12 +0000 (06:41 -0400)
committerAndes <uboot@andestech.com>
Wed, 1 Jul 2020 07:01:21 +0000 (15:01 +0800)
commit4a3390f1d3b71f0645eb281176f00cd0d5ac2dcb
tree373138fe61aea783757084532eb3c7c3111ee285
parentf9c7d4f99f51ac9c1cf513111c21395f93d2dd53
dm: Add support for simple-pm-bus

This type of bus is used in Linux to designate buses which have power
domains and/or clocks which need to be enabled before their child devices
can be used. Because power domains are automatically enabled before probing
in U-Boot, we just need to enable any clocks present.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/test.dts
arch/sandbox/include/asm/clk.h
configs/sandbox_defconfig
doc/device-tree-bindings/bus/simple-pm-bus.txt [new file with mode: 0644]
drivers/core/Kconfig
drivers/core/Makefile
drivers/core/simple-pm-bus.c [new file with mode: 0644]
test/dm/Makefile
test/dm/simple-pm-bus.c [new file with mode: 0644]