Setting GPIO pin to output from u-boot

Hi all.

I need to set a given pin to output from the u-boot bootloader.

I know it can be done, but don’t seem to be able to find the info on how to do it.

Can any body please help me.

Doing the same using /dev/mmap can also be used if you have knowledge on that.

Regards
Teddy

Teddy,

Look at the end of the function “misc_init_r” in file board/ti/beagle/beagle.c

You can also setup the pin mux in “MUX_BEAGLE_XM” in board/ti/beagle/beagle.h

Where is this file located? (board/ti/beagle/beagle.c)

I have been looking in the uboot 1.0 and 1.1.6 source, and there is no /board/it directory

Regards

Take a look at this source tree:

http://gitorious.org/beagleboard-validation/u-boot/blobs/xm/board/ti/beagle/beagle.h