added omap34xx, fixed some bugs, prepared bitmask interface for setting direction