It looks like each driver board needs two pins – step and direction. Four driverboards is 8 GPIO pins. The RaspberryPi has that many. Is it within the realm of possibility to use it instead of the RAMPS?
The RAMPS firmware would have to be rewritten for the rPi and I realize thats a huge undertaking.