fix charger mode detection

Change-Id: Ic10913786edabe509569ef81eb808a4ee39254f9
msm_fb: vsync events for legacy MDP 3.00 targets

Pieced together from current code in CAF. This is very specific to
MDP 3.00 targets that use the LCDC display controller, and it might
break horribly and badly on anything else.

Change-Id: I2b7086a17fd22a04d61d7962f4ea98ab1af00442

Conflicts:
	include/linux/msm_mdp.h