What offense were you charged with?
If convicted of H&S 11357, here is the law:
VC 13202.
(a) A court may suspend or order that the department revoke in which case the department shall revoke the privilege of any person to operate a motor vehicle upon conviction of any offense related to controlled substances as defined in Division 10 (commencing with Section 11000) of the Health and Safety Code when the use of a motor vehicle was involved in, or incidental to, the commission of the offense.
(b) A court shall order that the department revoke and the department shall revoke the privilege of any person to operate a motor vehicle upon conviction of a violation of Section 11350, 11351, 11352, 11353, 11357, 11359, 11360, or 11361 of the Health and Safety Code when a motor vehicle was involved in, or incidental to, the commission of such offense.
(c) The period of time for suspension or the period after revocation during which the person may not apply for a license shall be determined by the court, but in no event shall such period exceed three years from the date of conviction.
If you successfully complete diversion, that should result in the charge being brought back before the court and then dismissed. As a result there will no longer be a conviction (or, as a juvenile, a true finding). Therefore, you could be able to apply for a license sometime after that when you might otherwise be eligible.