misc: spica-dpram: Consolidate phone power control functions

This patch consolidates power control code that has been duplicated in
several places into common functions.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>