Boundary values for an eigenvalue problem with a singular potential