How to set GPIOs to pre-defined value

Brad Chou chou.brad at gmail.com
Tue May 7 16:46:22 AEST 2019


Hi All,
Is there a way to set ALL GPIOs to a pre-defined initial in/out direction and high/low value ?
I see there is a gpio_defs.json, but seems only the direction can be set, ie. In or out, not high / low settings.
Now, I am using a shell script with gpioset utility to do the job.
But I know using shell to do it is a bad idea.
Does anyone have better ideas ?

Thanks.


More information about the openbmc mailing list