Commit 727b3d25 authored by Alex Deucher's avatar Alex Deucher

drm/radeon: store the gpio shift as well

We need this in the dpm code.
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 09e619c0
...@@ -221,6 +221,7 @@ struct radeon_gpio_rec radeon_atombios_lookup_gpio(struct radeon_device *rdev, ...@@ -221,6 +221,7 @@ struct radeon_gpio_rec radeon_atombios_lookup_gpio(struct radeon_device *rdev,
if (id == pin->ucGPIO_ID) { if (id == pin->ucGPIO_ID) {
gpio.id = pin->ucGPIO_ID; gpio.id = pin->ucGPIO_ID;
gpio.reg = le16_to_cpu(pin->usGpioPin_AIndex) * 4; gpio.reg = le16_to_cpu(pin->usGpioPin_AIndex) * 4;
gpio.shift = pin->ucGpioPinBitShift;
gpio.mask = (1 << pin->ucGpioPinBitShift); gpio.mask = (1 << pin->ucGpioPinBitShift);
gpio.valid = true; gpio.valid = true;
break; break;
......
...@@ -462,6 +462,7 @@ struct radeon_gpio_rec { ...@@ -462,6 +462,7 @@ struct radeon_gpio_rec {
u8 id; u8 id;
u32 reg; u32 reg;
u32 mask; u32 mask;
u32 shift;
}; };
struct radeon_hpd { struct radeon_hpd {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment