battery mgmt: commented unused functions

Signed-off-by: Ajay <ajay@moxiedevices.com>
pwm: bug fix: duty cycle

msb of duty cycle was always masked, corrected.

Signed-off-by: Ajay <ajay@moxiedevices.com>
pwm: init: bug fix: pwm4out

Signed-off-by: Ajay <ajay@moxiedevices.com>
battery charging init and other fns

Signed-off-by: Ajay <ajay@moxiedevices.com>
main: battery pi added

Signed-off-by: Ajay <ajay@moxiedevices.com>
makefile: battery_pi.h added

Signed-off-by: Ajay <ajay@moxiedevices.com>
port driver: added initial port driver

Signed-off-by: Ajay <ajay@moxiedevices.com>
initial battery pi control

Signed-off-by: Ajay <ajay@moxiedevices.com>
load switch pins drived from config file

Signed-off-by: Ajay <ajay@moxiedevices.com>
battery charging pins drived from config file

Signed-off-by: Ajay <ajay@moxiedevices.com>
LED Load: setpoint value

Led load setpoint should be defined based on switch value, no initial
value.

Signed-off-by: Ajay <ajay@moxiedevices.com>
led load: current sense pin definition from config file

Signed-off-by: Ajay <ajay@moxiedevices.com>
led load: pins definition from config file

Signed-off-by: Ajay <ajay@moxiedevices.com>
interrupt updated for detecting switch and led/battery pi

Signed-off-by: Ajay <ajay@moxiedevices.com>
gg=G

Signed-off-by: Ajay <ajay@moxiedevices.com>
defined interrupt type

Signed-off-by: Ajay <ajay@moxiedevices.com>
intensity switch: reshaped file

Defined method for checking intensity switch.

Signed-off-by: Ajay <ajay@moxiedevices.com>
removed unnecessary variables

Signed-off-by: Ajay <ajay@moxiedevices.com>
 config file for sl and lantern

Signed-off-by: Ajay <ajay@moxiedevices.com>
bug fix: only one switch is defined in SL

Signed-off-by: Ajay <ajay@moxiedevices.com>