Enabling Freescale IMX6 pull down registers on an input pin
Check if you can access /dev/mem which gives you access to your entire ram and use mmap to access the memory-mapped I/O registers you need. I did this on a Beaglebone Black. Here is an example of accessing low-level register on a Beaglebone Black, maybe this can give you a hint.
Hope it helps!