Intel Atom Elkhart Lake GPIO control

Programming, for all ages and all languages.
Post Reply
ravi
Member
Member
Posts: 105
Joined: Fri Sep 08, 2023 10:46 am

Intel Atom Elkhart Lake GPIO control

Post 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
Octocontrabass
Member
Member
Posts: 5543
Joined: Mon Mar 25, 2013 7:01 pm

Re: Intel Atom Elkhart Lake GPIO control

Post by Octocontrabass »

When the GPIO is configured as an output, bit 0 of DW0 is the output value.
ravi
Member
Member
Posts: 105
Joined: Fri Sep 08, 2023 10:46 am

Re: Intel Atom Elkhart Lake GPIO control

Post 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
Octocontrabass
Member
Member
Posts: 5543
Joined: Mon Mar 25, 2013 7:01 pm

Re: Intel Atom Elkhart Lake GPIO control

Post 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.
ravi
Member
Member
Posts: 105
Joined: Fri Sep 08, 2023 10:46 am

Re: Intel Atom Elkhart Lake GPIO control

Post 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
Post Reply