omxil: generalize setup

Signed-off-by: Ithamar R. Adema <ithamar@upgrade-android.com>