ALTERA_SPI_STATUS
altr_spi_readl(hw, ALTERA_SPI_STATUS, &val);
altr_spi_writel(hw, ALTERA_SPI_STATUS, 0); /* clear status reg */