back up the brinks truck. He will get even more when this contract is up. Yankees will be first in line for sure.

The Giants have reached a two-year, $23 million deal with right-hander Tim Lincecum, avoiding salary arbitration.

Lincecum had been set to ask for an arbitration-record $13 million salary for 2010 during a hearing Friday in St. Petersburg, Fla.

Lincecum won back-to-back National League Cy Young awards in 2008 and 2009. He led the NL in strikeouts during both seasons and was also selected the All-Star team in both years.

Lincecum gets a $2 million signing bonus, $8 million this year, $13 million in 2011 and the chance to earn performance and award bonuses. The agreement is subject to a physical.

The tiny guy his teammates call "Franchise" and "Freak" is getting his nice raise from his $650,000 salary last year.

The 25-year-old right-hander said last week he thought the Giants might bring up his offseason marijuana arrest in Washington state during a hearing, but insisted there would be no hard feelings. He was hoping for a multiyear deal to stay put in San Francisco.

This has to be a big relief for both sides heading into the start of spring training next week in Scottsdale, Ariz. The Giants offered their ace $8 million when the parties exchanged numbers last month, and there was thought they might have lost and had to pay him even more come 2011. Lincecum, who is eligible for free agency after the 2013 season, said he realized through the process there's a tough business side to all this.

"Going to arbitration, everybody knows what can happen and the feelings that can get hurt," he said last week. "I'm just trying to keep an open mind. If anybody knows my flaws, I do. If they're going to point them out and that has to happen, then whatever. I know I've got to get better. I don't feel like my feelings are hurt."

Lincecum, already a two-time All-Star, owns a 40-17 record and 2.90 ERA with 676 strikeouts in three big league seasons. He won 18 games in his first Cy Young season of 2008, then 15 to win again last season after leading the league with 261 strikeouts and tying for top marks in the NL with four complete games and two shutouts.

Two other top pitchers recently received five-year contracts, with Detroit's Justin Verlander getting $80 million and Seattle's Felix Hernandez $78 million. Lincecum tried not to think too much about their deals and focus on his own situation.

On Jan. 19, the same day salary numbers were exchanged, Lincecum agreed to pay $513 to resolve marijuana charges against him in Washington state.

The pitcher originally faced two misdemeanor charges of marijuana and drug paraphernalia possession stemming from a traffic stop on Oct. 30. The charges were reduced to a civil infraction.

Lincecum appeared in Clark County District Court before Judge Darvin Zimmerman, and Giants managing partner Bill Neukom was in court in a sign of support for Lincecum.

He paid a speeding ticket separately.

"I think a lot of growing up has to do with experiences you go through, whether that be good or bad," Lincecum said after winning his second Cy Young. "There's different people who go through different experiences that shape them. It's unfortunate also that you have to go through the bumps, like I am going through, to get to where you think you need to be. It's just about changing yourself and looking for the right road to take instead of making it hard on yourself."