i2c: rcar: refactor bus state machine