This function is not x86-specific so move it into the common header file. Signed-off-by: Simon Glass <sjg@chromium.org>