Using GPMC on Beaglebone


i’am trying to use the GPMC of the beaglebone. I have done configuration script for the mux to enable access to the GPMC pins and i 'am now trying to configure the GPMC from user space (mmap). The code is taken from a TI SysBIOS example with modification to use a pointer obtained through mmap. At one point the code polls a register to check if the GPMC reset was effective but my code never get out of this loop. I have used register address from SysBIOS include files and i believed that maybe the linux kernel remaps these register address using the mmu. Did anyone got the GPMC to work from user-space ? I have enclosed my code for anyone to check.

test_gpmc.c (6.3 KB) (1.37 KB)