todo Add register read/write suppor to libsoc, https://github.com/jackmitch/libsoc. Examples of what needs to be done can be found here, http://bunniestudios.com/blog/images/infocast_i2c.c