Hi Pradeep,
The CS of SPI cannot be set via ioctrl, the command only set the SPI channel which should set the CS signal during reading or writing. After calling the ioctrl(), the CS will be set when doing the following read or write operation. The actually CS setting function is achieved by a callback function, please refer to the spi demo in C:\Program Files\Freescale\Freescale MQX 3.6\mqx\examples\spi, there is a set_CS() available for this purpose, the parameter of it includes cs mask and logic level, please note the cs mask here indicates the CS vaule defined in mcf5xxx_qspi_init_struct that may be referred from spi_mcf5xxx_qspi.h.
Hope this helps!!
Regards
Sol