Page 1 of 1

Intel Atom Elkhart Lake GPIO control

Posted: Tue Apr 02, 2024 5:21 pm
by ravi
hello Octocontrabass

Which is the register to use to change the state of GPIO, 1 to 0 or 0 to 1 so on during run time, is it DW0?


Thanks
Ravi

Re: Intel Atom Elkhart Lake GPIO control

Posted: Tue Apr 02, 2024 6:03 pm
by Octocontrabass
When the GPIO is configured as an output, bit 0 of DW0 is the output value.

Re: Intel Atom Elkhart Lake GPIO control

Posted: Wed Apr 03, 2024 8:13 am
by ravi
Yeah its configured as output,,, but when i try to change DW0 bit 0, to Change the output state, nothing happens, it appeared as if the memory is locked

Thanks
Ravi

Re: Intel Atom Elkhart Lake GPIO control

Posted: Wed Apr 03, 2024 8:00 pm
by Octocontrabass
ravi wrote:it appeared as if the memory is locked
MMIO is not memory.

Firmware might have locked the configuration registers. You can read the lock registers and the ownership registers to check.

Your board's firmware might describe the GPIOs using ACPI AML.

Re: Intel Atom Elkhart Lake GPIO control

Posted: Thu Apr 04, 2024 9:25 am
by ravi
Thanks, Solved

Configfile in bootloader was getting corrupted, my pad configuration where not updated correctly,, i think the editor(comes with SBL tool) is the issue


Thanks
Ravi