Spectral curve for open strings attached to the Y = 0 brane