// get the SPI Status,wait the Recv FIFO FULL
//while ( !(*(unsigned int *)TMP & SR_RF_FULL) );
for (nRet = 0; nRet < 10; nRet++)
{
MYPRINT("SR reg : %#x\n", *(unsigned int *)TMP);
}
TMP = pstSpiReg + SPI_RXDR;
s_cRecvData = *(unsigned int *)TMP & 0x0F;
nRet = copy_to_user(buf, &s_cRecvData, count);
if (0 != nRet)
{
MYPRINT("Rk3288 read SPI data error\n");
return nRet;
}