drm/radeon/kms/evergreen: adapt to i2c changes
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 9 Feb 2010 23:22:00 +0000 (18:22 -0500)
committerDave Airlie <airlied@redhat.com>
Thu, 11 Feb 2010 03:39:12 +0000 (13:39 +1000)
original evergreen patches we against a kernel tree
without my radeon i2c algo changes.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_i2c.c

index d15fa5e62bb5a1f752fbfe767e64ef040e5b77e5..4ae50c19589fe8b4e4f89304862515416cbe72c5 100644 (file)
@@ -254,6 +254,13 @@ static u32 radeon_get_i2c_prescale(struct radeon_device *rdev)
        case CHIP_RV740:
                /* todo */
                break;
+       case CHIP_CEDAR:
+       case CHIP_REDWOOD:
+       case CHIP_JUNIPER:
+       case CHIP_CYPRESS:
+       case CHIP_HEMLOCK:
+               /* todo */
+               break;
        default:
                DRM_ERROR("i2c: unhandled radeon chip\n");
                break;
@@ -833,6 +840,14 @@ static int radeon_i2c_xfer(struct i2c_adapter *i2c_adap,
                /* XXX fill in hw i2c implementation */
                ret = radeon_sw_i2c_xfer(i2c_adap, msgs, num);
                break;
+       case CHIP_CEDAR:
+       case CHIP_REDWOOD:
+       case CHIP_JUNIPER:
+       case CHIP_CYPRESS:
+       case CHIP_HEMLOCK:
+               /* XXX fill in hw i2c implementation */
+               ret = radeon_sw_i2c_xfer(i2c_adap, msgs, num);
+               break;
        default:
                DRM_ERROR("i2c: unhandled radeon chip\n");
                ret = -EIO;