Any way to obtain light direction to calculate a directional lightmap?

Well, I want to bake the lightmap with cycles and I want if we have the input to calculate this.