Hi Juan,
Of which of the device from the i.MX6 are you trying to do this?
Probably this can be done by modifying the .dts on your system and send a specific instruction to this, you can take a look on the reference manual into this.
Regards,
Israel H.