/* Write to QSPI Tx register in SPI mode.  */
static void qspi_write_spi(Qspi *qspi, uint16_t w_data)
/* Write to QSPI Tx register in SPI mode.  */
static void qspi_write_spi(Qspi *qspi, uint16_t w_data)
{
	assert(qspi);
	while(!(qspi->QSPI_SR & QSPI_SR_TXEMPTY));
	qspi->QSPI_TDR = w_data ;
	while(!(qspi->QSPI_SR & QSPI_SR_TDRE));
}