AC/USB charging detection