MARTINSVILLE, Va. (AP) Joey Logano won the pole at Martinsville Speedway on Friday to set up a shot at his fourth consecutive win and a quick berth into NASCAR's championship race.

Logano turned a lap at 98.548 in Friday qualifying to earn the top starting spot. He heads into Sunday's race coming off three consecutive wins - a sweep of the second round of the Chase for the Sprint Cup championship.

Should Logano win Sunday, he'll be the first driver since Jimmie Johnson in 2007 to win four straight races.

More from FoxSports

''We're doing everything right, but all that can end in a blink of an eye,'' Logano said.

Martin Truex Jr. qualified second and was thrilled with his starting spot.

''We didn't know going into qualifying we'd have that good of speed,'' Truex said. ''Definitely a good start to the weekend for us.''

AJ Allmendinger and Jamie McMurray, who are not in the Chase, qualified third and fourth.

Jeff Gordon will try to win his ninth career race at Martinsville from the fifth starting spot. Kyle Busch qualified sixth and was followed by Ryan Newman, who was eliminated from the Chase last week.

Brad Keselowski was the next highest qualifying Chase driver at 11th and Kevin Harvick was 12th.

Carl Edwards and Kurt Busch both failed to advance to the final round. Edwards will start 14th and Busch 15th, lowest of the Chase drivers.

''We can do well from 14th, we can win from there,'' Edwards said. ''With a good car here, you can do some good. We'll be just fine.''

Kasey Kahne spun in the first round of qualifying and wrecked his car, and also the lap of Keselowski during that run. Keselowski hit his steering wheel when the caution came out, then later pulled into his garage stall, tossed the steering wheel and threw his gloves.

''Somebody decided to spin out in the middle of a run right when we were going for it, and it ruined my tires for the rest of the session,'' Keselowski said.