[cnn-photo-caption image= http://i2.cdn.turner.com/cnn/2009/images/05/06/art.bristol0506.gi.jpg caption="Bristol Palin and Levi Johnston have reached an agreement over the custody of their son."] (CNN) - Bristol Palin and Levi Johnston have reached an agreement over the custody of their son, the Associated Press reported Friday.
The custody agreement comes just weeks after the couple called off their re-engagement.
Under the agreement, Johnston gets visitation rights two days a week, while Palin gets primary physical custody of their son Tripp. The couple will share legal custody, Johnston's lawyer told the Associated Press.
The custody agreement was first reported by gossip website TMZ.com.
The couple's teenage relationship fell under an intense public spotlight after Sen. John McCain picked Bristol's mother Sarah Palin as his vice presidential running mate in August 2008. The couple broke off their first engagement about two months after their son's birth in December 2008.
Earlier this month, Bristol called off the couple's short-term re-engagement, citing Johnston's involvement in a music video that she described as mocking the Palin family.
"It's over. I broke up with him," Bristol told People Magazine. Sarah Palin told the magazine her daughter has learned a valuable lesson: "to trust but verify."
In July, Bristol and Johnston became re-engaged without first informing the former Alaska governor.
At the time, the Palin family issued a statement that stopped short of a full-throated endorsement.