Page 1 of 1

setting default options for i/o ports

Posted: Sun Jun 24, 2018 3:28 pm
by kermit
Hello,
I want to ask is possible to set default states for gpio ports, i need to do this because i have custom board for vocore which have connections to external circuits. after vocore boots i set all gpio as i need it, but during boot process there is some problems because ports default configuration, is it possible to do this ? i made a little research and i suspect that i need to do this in device tree file(.dts), am i right, can anyone maybe have some example, how to do this on vocore?
Greetings ;)

Re: setting default options for i/o ports

Posted: Mon Jun 25, 2018 9:49 am
by Vonger
This have to be done in bootloader.
Please check github.com/vonger and get the bootloader source code, add register control for gpio default value, that's the most simple way.