Skip to content

Commit

Permalink
ish-pm: correctly identify both edge triggered gpio's
Browse files Browse the repository at this point in the history
The API convert_both_edge_gpio_to_single_edge() now properly
scans through all GPIOs to detect pins that have both-edge
trigger mode enabled. The condition check has been updated
to ensure accurate identification.

Change-Id: I5084fa9a5accc53aa9bce79f69df73325d1a6115
  • Loading branch information
Deepti Deshatty authored and kwd-doodling committed Sep 5, 2024
1 parent 0905a52 commit 8876a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bsp_sedi/soc/intel_ish/pm/ish_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static uint32_t convert_both_edge_gpio_to_single_edge(void)
*/
for (i = 0; i < 32; i++) {
if (read32(ISH_GPIO_GIMR) & BIT(i) && read32(ISH_GPIO_GRER) & BIT(i) &&
read32(ISH_GPIO_GFER & BIT(i))) {
read32(ISH_GPIO_GFER) & BIT(i)) {
/* Record the pin so we can restore it later */
both_edge_pins |= BIT(i);

Expand Down

0 comments on commit 8876a18

Please sign in to comment.