i2c: mxs: Implement arbitrary clock speed derivation algorithm