How to configure SPI2 as a slave?

Have reference to below topic for Xavier.