ar71xx_gpio.c touches SPI_CS1 and 2?
Stefan Bethke
stb at lassitu.de
Sun Dec 4 12:14:35 UTC 2011
I was looking into why I can't manipulate the USB led on my TL-WR1043ND, and came across the SPI chip selects, which share GPIO 0 and 1, respectively. The USB led is hooked up to GPIO 1.
sys/mips/atheros/ar71xx_gpio.c:ar71xx_gpio_attach(device_t dev) enables both chip selects, and detach disables them again.
Two points:
- how can we express different uses for those two pins on a per-board config?
- disabling the function is not correct for the gpio driver, I would think. If you load and unload it as a module, I expect losing access to the flash.
Stefan
--
Stefan Bethke <stb at lassitu.de> Fon +49 151 14070811
More information about the freebsd-embedded
mailing list