Golf star Tiger Woods will have his licence suspended for five years after reaching a plea deal over a car crash.