BPI-M3 enable SPI

I try to make SPI work on M3. What do I exactly do? What to recompile? I need full brief solution. Thanks