wchen50
New Contributor
8 years agoAltera DE0-Nano gpio
In my testing, I want to access the fpga gpio. I can use set the fpga gpio pin from user space (open /dev/mem, then use mmap, etc). However I cannot set the fpga from kernel space.
In my kernel code, I tried to ioremap the gpio0 based, and then set the gpio pin, but it doesn't work as expected.
void *ptr = ioremap(0xff708000, 0x10 );
*(ptr+offset) = 0b1;
where offset is the memory mapped slave as shown in platform designer.
I tried many ways but it doesn't work.
Any suggestion?