The Bills have reached agreement on a contract extension with quarterback Tyrod Taylor, the team announced Friday. Reports put the deal at six years, $90 million.

It's a done deal. We've signed Tyrod Taylor to a contract extension!

How T2 became our QB1: https://t.co/JOmIAD4lwp pic.twitter.com/90FD7p5E0V

— Buffalo Bills (@buffalobills) August 12, 2016

According to NFL sources, #Bills have protected themselves w options, but satisfied Tyrod Taylor's desire to avg. $15M per yr in salary.

— Vic Carucci (@viccarucci) August 12, 2016

More from FoxSports

The #Bills have signed QB Tyrod Taylor to a 6-year deal, source said. Helps them cap-wise, but expect some flexibility after 2 years.

— Ian Rapoport (@RapSheet) August 12, 2016

Taylor, 26, was a backup in Baltimore for four seasons before joining Buffalo in 2015 and winning the starting job during training camp. He threw for 3,035 yards and 20 touchdowns in 14 regular-season appearances, and also averaged 40.6 rushing yards per game.

"I see the confidence that his teammates have in him and we think we're going to get it done with Tyrod at quarterback," head coach Rex Ryan said via the team's website. "He can beat you with his arm, with his deep ball, his accuracy, and he can beat you with his legs, so I think those are some great things. We think that we've got a really good one there. We've got a fine, outstanding quarterback."