Usain Bolt will prepare for the Rio de Janeiro Olympics by returning to the site of the last games for the London Diamond League meet.

The Jamaican will compete in July's Anniversary Games, four years after winning three Olympic gold medals in the Olympic Stadium in the 100, 200 and 4x100-metre relay races.

Organizers say Bolt will appear on July 22, but didn't specific in which races.

In a statement, Bolt says it's "one of my last races before the Olympic Games in Rio. It will be good to return to the Olympic Stadium on the Friday night and get more of the special atmosphere that the fans always produce."

The stadium is being redeveloped to accommodate Premier League club West Ham from August while retaining athletics facilities.

Bolt has made a firm decision on his Olympic future after wavering since the summer of 2013.

"It'll definitely be my last Olympics," the 17-time Olympic and world championships gold medallist told German news agency SID of this summer's Games in Rio de Janeiro.

"It's going to be hard to go four more years for me, to keep the motivation that I want, especially if I accomplish what I want to in Rio."

In the past two Olympics, the 29-year-old Bolt has won six gold medals in the 100 metres, 200 and relays. He has 19 career medals, including 11 world championship gold and two silvers won as a 21-year-old in 2007.

Before he retires in the next four years, Bolt added, he wants to break the 19-second barrier in the 200 while planning to win three gold in Rio.