Welcome, Guest

Author Topic: A10 LIME: GPIO Naming  (Read 1449 times)

mangokid

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
A10 LIME: GPIO Naming
« on: August 08, 2016, 06:26:34 PM »
At the moment I am porting an app over from another Linux board to the A10 lime board. The app uses openocd sysfsGPIO (the linux gpio bitbang jtag debugger). On the A10 when a GPIO is exported the symbolic link does not follow the normal naming convention used.

Code: [Select]
export 20 > /sys/class/gpio  yields
Code: [Select]
gpio20_ph12
OpenOCD doesn't like this because it expects the symbolic link to be just gpio20

At the moment I have a bit of a hack in OpenOCD that fixes this. What I would like to do is just change it so that when the GPIO are exported they don't have the longer name so gpio20_ph12 is just gpio20. This naming made it awesome for gpio stuff but now its a pain.

Keep in mind I am a hardware guy so there may be an obvious solution that went over my head.