Setting for i2c speed is added

Signed-off-by: Sriharsha <helpzuna@gmail.com>
Global variable for osc freq is removed for better performance, added in begin
functions

Signed-off-by: Sriharsha <helpzuna@gmail.com>