ANN ARBOR (AP) — Former Michigan quarterback Shea Patterson has agreed to terms with the Kansas City Chiefs as an undrafted free agent.


Agent Bryan Ehrlich confirmed the deal Sunday. Patterson started all 26 games for the Wolverines over the past two seasons after transferring from Mississippi.


Patterson threw for 3,061 yards with 23 touchdowns and eight interceptions last season. He threw 45 touchdown passes in his two years at Michigan. Patterson passed for 131 yards in the Senior Bowl.


Patterson started 10 games at Ole Miss but transferred after the school was hit by NCAA sanctions. He was granted eligibility at Michigan in 2018 without sitting out a year.


The Chiefs also agreed to a contract with defensive end Taco Charlton, adding a former first-round pick from Michigan who flamed out in Dallas and Miami but whose athleticism is a perfect match for coordinator Steve Spagnuolo's defense.


The 25-year-old Charlton was the 28th overall selection in the 2017 draft. He made seven starts for the Cowboys before sustaining a shoulder injury, and he was waived just two weeks into last season. The Dolphins signed Charlton and he made five starts and appeared in 10 games, but he was a healthy scratch the last four games of the regular season.


The Dolphins waived him Thursday and the Chiefs were able to sign him when he cleared waivers Friday.


Charlton will compete for playing time within a rotation that includes starting defensive ends Frank Clark and Alex Okafor, backups Tanoh Kpassagnon and Breeland Speaks, and fifth-round draft pick Mike Danna.