Hello all,
I am trying to set a few GPIOs in u-boot prior to the linux kernel being loaded. I am using a Torpedo + Wireless SOM on a custom board. In the past, I have just set gpios from linux userspace, but with the latest spin of the board, I need to manage a few switches to a USB hub before the kernel starts now. My project uses the Torpedo + Wireless dev kit's board file.
I am new to u-boot and don't see much of anything in the help for setting GPIOs or even changing the state of muxed pins. The mux_config command looks like it dumps the current status of all pins, but I don't see how to change them.
I tried adding
#define CONFIG_CMD_GPIO 1
to the file /rpm/BUILD/u-boot-2011.06/include/configs/omap3logic.h, but it would not compile, giving me the error:
error: asm/gpio.h: No such file or directory
Can someone please point me to a good resource for getting u-boot to play nice with GPIOs?
Thank you!