Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Linux/AM5708: Toggling GPIO in U-Boot

$
0
0

Part Number:AM5708

Tool/software: Linux

On my AM5708 based custom board, GPIO2-26 (H2) does not seem to toggle at all.

This is what's getting set at mux_data.h in U-Boot:

{GPMC_BEN0, (M14 | PIN_OUTPUT)},        /* gpmc_ben0.gpio2_26 */ 

Assuming GPIO2-26 is index 90 (2*32 + 26), I ran this:

=> setenv set-io 'gpio set 90'
=> run set-io
gpio: pin 90 (gpio 90) value is 1
=> gpio clear 90
gpio: pin 90 (gpio 90) value is 0
=> gpio set 90
gpio: pin 90 (gpio 90) value is 1

However my DMM only shows the pin at HIGH. Is index 90 correct?

I should note that there is a pull-up resistor of 4.7k ohm.


Viewing all articles
Browse latest Browse all 262198

Trending Articles