EDP: introduce ocpeaks table for consumers
authorTimo Alho <talho@nvidia.com>
Wed, 4 Dec 2013 11:21:09 +0000 (13:21 +0200)
committerJuha Tukkinen <jtukkinen@nvidia.com>
Tue, 10 Dec 2013 07:40:27 +0000 (23:40 -0800)
commit9a7115eec8af605ea5df9ec089a1fa8f83b420e7
treed47a0bf95f65712048cee3c05692560bdc633fb4
parentcf5232f4a8b20f6bda0a653ab88970b3b231271f
EDP: introduce ocpeaks table for consumers

ocpeaks table defines the maximum peak power for each state when
hardware overcurrent signal is asserted. The most prominent user for
overcurrent signaling is the modem consumer.

To register sysedp consumer for user space with overcurrent peak
information, following can be written to consumer_register sysfs
entry:

consumer_name a0, a1, a2, ..., an; b0, b1, b2, ..., bn

where ai and bi are nominal and overcurrent peak values for power
state i, respectively

Bug 1416849

Change-Id: I196aa976f8b2b0f300599db6807b94bf1a486f44
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/338237
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>
drivers/edp/sysedp_sysfs.c
include/linux/sysedp.h