Skip to content

Commit

Permalink
RK3588/GpioLib: Fix an mistake in IOMUX addr calculation
Browse files Browse the repository at this point in the history
Signed-off-by: Molly Sophia <[email protected]>
  • Loading branch information
MollySophia committed Aug 12, 2023
1 parent 444ac81 commit ae3932e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ GpioPinSetFunction (
Reg = PMU1_IOC_BASE + GRF_GPIO_IOMUX_REG(Pin);
}
} else {
Reg = (BUS_IOC_BASE + 0x0020) + ((Group - 1) * 0x8) + GRF_GPIO_IOMUX_REG(Pin);
Reg = BUS_IOC_BASE + Group * 0x20 + GRF_GPIO_IOMUX_REG(Pin);
}

DEBUG ((DEBUG_VERBOSE, "Reg - Value: 0x%lX = 0x%08X\n", Reg, Value));
Expand Down

0 comments on commit ae3932e

Please sign in to comment.