Parental rights

Can a father legally give up his rights to a child , or does the mother have to agree to him giving his rights away ?