This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Accessing CE2CFG register to set EMIF timing configurations

Hi !

I want to use EMIF-A interface on the am-1808 board (LOGIC ZOOM develop kit). I will connect a fpga to EMIF-A. I am using CS2 to send/receive data. The problem is that i am unable to set appropriate timing configurations in the CE2CFG register as i unable to access CE2CFG. Reading(__raw_readl) or writing(__raw_writel) to CE2CFG returns 'Segmentation fault' which means that address of CE2CFG which i am using is not correct. But i am using the same address i.e "0x68000010" as mentioned in the AM-1808 manual, here's the snapshot of the address:

There was offset of 'FE' in the System Configuration (SYSCFG) Module Register Access, i.e like the address of PINMUX3 is "0x01C1412C" according to the manual but it returns segmentation fault, but using "FEC1412C" gives the correct read/write access to PINMUX3. So it is possible that there might be some offset to CE2CFG (I have tried using 'FE' but it didn't work), so how can i find that offset ? what is the correct value of address of CE2CFG ?



Thanks



Regards

Usama

  • Usama,

    I guess you are trying to access the register from user space application and using the physical address directly. This will always result in segmentation fault as the address will be treated as virtual address and there won't be any mapping available for this in the page table. 

    Basically you've to write this register in kernel space by modifying the kernel code. You've to map the physical address to a virtual address and then read/write from/to it.