p31xx/p51xx: apply P3110 JB Update1 from opensource.samsung.com

Needs to be merged at the same time as:
http://review.cyanogenmod.org/#/c/58780/

Was hoping it was possible to do this a little cleaner, two commits were applied then reverted
to fix temporary problems, but it ends up the same.