bug#0 sync code from sprd-ffos