msm: xo: Add debugfs support to turn on and off buffers

Add support for xo debugfs files so that we can easily test the
XO driver by turning on and off buffers from the console. The
files are created in the msm_xo directory in debugfs and support
reading and writing. Writes accept "ON", "OFF", and "PIN" for the
different modes for the buffers. Reads indicate what the state of
the buffer voter is.

Note that the debugfs interface doesn't have absolute control of
the XO buffers. Instead each file is another client in the system
for that particular buffer. If another client is requesting a
greater value than what the debugfs client is requesting the
aggregation will ignore debugfs.

Change-Id: I5301a0482bea7cb993c4e7c915b79f766699017e
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
1 file changed