Prior to b6453c52, this function was called from two C++ files. Test: boot hikey Change-Id: Ieeae6ea617c5b19e2cd76c1b37c9511a72d01597