Backward port LMK from 3.8

Change-Id: Ie1b2614c99cbf5f7d226c1230466d7c8392deb7e
Backward port Time GPIO from 3.8

credits stratosk

Change-Id: Iaa2190cfaf483eaea5c3948fb54ff617ba3846a0
Some changes from 3.4 Kernel

Change-Id: I2c266d16c3a29117ee9a6d6e7dce779f072c9e47