Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
Based on oneplus3's implementation. Change-Id: Ibc4bd629f8280d63f84d23981e01cc861992c17f