i2c: move i2c setup from core into module

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>