i2c: ocores: Move grlib set/get functions into #ifdef CONFIG_OF block