p5100 bring up

This is just a straight port of this:
http://review.cyanogenmod.org/#/c/55931/

I only own the 31xx but almost exactly
the same device.

Change-Id: I340996dc5a96490c96ffa65159932ae59eb89937