socfpga_fpga_state_get
if ((socfpga_fpga_state_get(priv) & state) != 0)
state = socfpga_fpga_state_get(priv);