GPIO setting
Sascha Hauer
s.hauer at pengutronix.de
Mon Mar 17 08:09:56 EDT 2014
On Mon, Mar 17, 2014 at 10:47:06AM +0200, Ivor Kruger wrote:
> Hi, sure this is a quick and easy question for the group
>
> On the OMAP4430, using the command from within barebox prompt to configure
> a GPIO for testing hardware:
>
> gpio_direction_output 140 0
>
> Should this be sufficient to set the gpio pin low, or is it required to
> still do some pin muxing as well?
The gpio functions only configure the gpio controller. If this pin is
not gpio by default, you have to configure the pinmux controller aswell.
There is no way to do that on the barebox commandline other than direct register
writes to the pinmux controller.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list