How to connect RFID RC522 to core2?

Does anyone know how to connect RFID RC522 module to the core2 controller? Do I need special library to read cards like in arduino?