drivers: bus: Add Simple Power-Managed Bus Driver
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 5 Feb 2015 10:11:28 +0000 (11:11 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 23 Feb 2015 21:36:18 +0000 (06:36 +0900)
commit89d463ea106dba530786a2815fd174f9e6eab71f
tree502a864f5d8aee105f7201c33e9f9e9da2df0bb6
parentb1e5bbd61eb7584caa61ab3b89f3a66c3d5b4dd3
drivers: bus: Add Simple Power-Managed Bus Driver

Add a driver for transparent busses that don't need a real driver, but
where the bus controller is part of a PM domain, or under the control of
a functional clock.  Typically, the bus controller's PM domain and/or
clock must be enabled for child devices connected to the bus (either
on-SoC or externally) to function.

Hence the sole purpose of this driver is to enable its clock and PM
domain (if exist(s)), which are specified in the DT and managed from
platform and PM domain code, and to probe for child devices.

Due to the child-parent relationship with devices connected to the bus,
PM domain and clock state transitions are handled in the correct order.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/bus/Kconfig
drivers/bus/Makefile
drivers/bus/simple-pm-bus.c [new file with mode: 0644]