How to change pinmux regs in CBoot?

How to make gpio high-level in cboot? does not contain any information about changing the direction of the pin in the CBoot code.