I am using s32ds power architecture. In that iam using same spi to communicate with the two peripherals. in that i want to initialise two different configurations to communicate with each peripheral. how to initialise a spi with configurations?
You will certainly use two CSs so use two CTAR configurations.
Here you may find some examples for DSPI module. Search for 'SPI':
https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC5-software-example-list/ta-p/1102445