Setting ftdi layout_init in an OpenOCD configuration for the XEM8320

Hello,
I am trying to configure OpenOCD for the XEM8320 (RevC). However, I struggle to understand how the ftdi layout_init argument should be set.

Config Command: ftdi layout_init data direction

Specifies the initial values of the FTDI GPIO data and direction registers. Each value is a 16-bit number corresponding to the concatenation of the high and low FTDI GPIO registers. The values should be selected based on the schematics of the adapter, such that all signals are set to safe levels with minimal impact on the target system. Avoid floating inputs, conflicting outputs and initially asserted reset signals.

Source

I have looked into the datasheet of the FTDI chip (FT232HQ) and the schematics of the XEM8320 but I am still lost.

Can someone explain how the ftdi layout_init command is generally configured and maybe give an example of how data and direction are derived from the documentation?

Thank you very much.