I'm 5 months post partum and I've been waking up with headaches a lot too.
I think for both of us, it has a lot to do with hormones changing such a great deal.
Here's a little info about it.
http://www.americanpregnancy.org/pregnancyhealth/headaches.html