Hello,
I needed to determine which GPIO pin was connected to the reset button,
so I figured I´d use gpioctl to pull the status. However, /dev/gpio did
not exist; I traced this and found that the probe function was not being
called. Adding a platform_device called "GPIODEV" fixes this:
static struct platform_device bcm63xx_gpiodev_device = {
.name = "GPIODEV",
.id = 0,
.dev.platform_data = 0,
};
[...]
platform_device_register(&bcm63xx_gpiodev_device);
Not sure to what extend gpioctl is broken on other targets; I found
several bug reports, but most had the status "fixed".
Would you like me to submit a patch to add this?
Regards,
Jeroen
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel