Added CPOL/CPHA mode setting into SPI driver initialization function.