Dear all,
I posted a similar post in the TI E2E forum and they said to post it here, so…
I have to set the AM3x side to manage the reading phase from a FIFO placed inside an FPGA and I almost lost. I saw several posts which starts as: “I have to use GPMC bus and I do not know how to do it.”, and several posts asking too detailed informations. So, I’ll try to be in the midway.
I usually write firmware (vhdl), so I am not that expert in software, kernel and driver (frankly speaking, I am not an expert at all). I spent the last two days reading manuals, guides, codes around and what I have understood so far can be summarized in a few steps (by supposing to work with the 3.8 linux kernel):
-
create a .dts file (whit chip-select, output-enable, write enable… settings)
-
compile and install it in /lib/firmware
-
enable it ( in the slot field)
-
Now that you have sort of drivers for GPMC communication, it is possible to write C code to work with it.
I saw here http://derekmolloy.ie/beaglebone/ doing something similar for GPIO, so, I guess it could be possible to do that also for GPMC.
Something is missing? is that right?
And then, is there a .dts template for gpmc that one can just modify to set communication? Is there also some already-tested file for C coding or I should write it from scratch?
Thanks a lot for your help.
Alberto