How to configure SPI2 as a slave?

Could you enable SPI1 as mast and connect the SPI1 to SPI2 as loopback to run the test.