Speed and size of memory are unrelated, and as mentioned, not related to the processor.
The motherboard will list the max memory supported and its configurations. Any CPU that fits in that socket will allow the maximum memory the motherboard supports to be utilized.