gc3355: Replace frequency-setting hex blobs with logic