]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
drm/radeon: store the gpio shift as well
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Nov 2014 16:34:57 +0000 (11:34 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Nov 2014 16:56:36 +0000 (11:56 -0500)
We need this in the dpm code.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_atombios.c
drivers/gpu/drm/radeon/radeon_mode.h

index 7ef3d9e53af53b60a5620eff33b2b27c45c45daa..dbc94f3002972dfb9319289e133bbc5ca2d985c6 100644 (file)
@@ -221,6 +221,7 @@ struct radeon_gpio_rec radeon_atombios_lookup_gpio(struct radeon_device *rdev,
                        if (id == pin->ucGPIO_ID) {
                                gpio.id = pin->ucGPIO_ID;
                                gpio.reg = le16_to_cpu(pin->usGpioPin_AIndex) * 4;
+                               gpio.shift = pin->ucGpioPinBitShift;
                                gpio.mask = (1 << pin->ucGpioPinBitShift);
                                gpio.valid = true;
                                break;
index 0ef1413c31170a9f3511b92e20471f742edac2d0..64eba7ebb354757fbe00329914c189f774b4651e 100644 (file)
@@ -462,6 +462,7 @@ struct radeon_gpio_rec {
        u8 id;
        u32 reg;
        u32 mask;
+       u32 shift;
 };
 
 struct radeon_hpd {