How to change I2C clock

Hi guys:
I want to change the clock rate of I2C on the beagle bone black, i’m not using device tree. I can’t find any API for my requirement. Do anyone can provide some idea to me, thanks