sunxi:soc-detect: change sw_get_ic_ver() from const to pure

const functions don't have access to global mem, pure ones do.