Smart DDR frequency handling