PIC24FJ64GB110 and 25AA160
The PIC24FJ microcontrollers use Peripheral Pin Select registers to map peripherals like the UART and SPI ports to specific pins.

Pins available that can be used for remapping are marked as RPxx or RPIxx (input only) on the Pin Diagram (100-pin TQFP) for the PIC24FJGB110.

The mapping of pins in your case would be:

RD1 (SCK) is also RP24, RD2 (SDI) is also RP23, and RD3 (SDO) is also RP22.

The associated code to set this up: 

#include &lt;PPS.h&gt;    // bring in header for pin remapping peripheral library functions

#define EEPROM_SDI_PIN     23
#define EEPROM_SDO_PIN     OUT_PIN_PPS_RP22
#define EEPROM_SCK_PIN     OUT_PIN_PPS_RP24

IN_FN_PPS_SDI2 = EEPROM_SDI_PIN;           // map SDI2 to RP23 
EEPROM_SDO_PIN = OUT_FN_PPS_SDO2;          // map SDO2 to RP22 
EEPROM_SCK_PIN = OUT_FN_PPS_SCK2OUT;       // map SCK2 to RP24


Note in the case of inputs, pins are assigned to a function; whereas for outputs, functions are assigned to a pin.  See the Peripheral Pin Select section in the PIC24FJGB110 datasheet for more info.

You should also set the TRIS pins for the output pins to 0:

EEPROM_SCK_TRIS = 0;
EEPROM_SDO_TRIS = 0;