diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-11-23 17:39:28 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-07 19:22:41 -0500 |
commit | 6a93cb250a60af1bb7b4070949f8546a2fdc52ef (patch) | |
tree | 2c734dcc0a4c39ec5c626b17912845eae1448828 /drivers/gpu/drm/radeon/radeon_connectors.c | |
parent | 1a66c95a64c9ae0bc8382254f544b24b23f498ec (diff) |
drm/radeon/kms: i2c reorg
- keep the atom i2c id in the i2c rec
- fix gpio regs for GPIO and MDGPIO on pre-avivo chips
- track whether the i2c line is hw capable
- track whether the i2c line uses the multimedia i2c block
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_connectors.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_connectors.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c index 4d457bc90141..98634ce5ba10 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c | |||
@@ -952,7 +952,7 @@ radeon_add_atom_connector(struct drm_device *dev, | |||
952 | struct radeon_i2c_bus_rec *i2c_bus, | 952 | struct radeon_i2c_bus_rec *i2c_bus, |
953 | bool linkb, | 953 | bool linkb, |
954 | uint32_t igp_lane_info, | 954 | uint32_t igp_lane_info, |
955 | uint16_t connector_object_id, uint8_t uc_i2c_id) | 955 | uint16_t connector_object_id) |
956 | { | 956 | { |
957 | struct radeon_device *rdev = dev->dev_private; | 957 | struct radeon_device *rdev = dev->dev_private; |
958 | struct drm_connector *connector; | 958 | struct drm_connector *connector; |
@@ -1083,8 +1083,7 @@ radeon_add_atom_connector(struct drm_device *dev, | |||
1083 | if (ret) | 1083 | if (ret) |
1084 | goto failed; | 1084 | goto failed; |
1085 | /* add DP i2c bus */ | 1085 | /* add DP i2c bus */ |
1086 | radeon_dig_connector->uc_i2c_id = uc_i2c_id; | 1086 | radeon_dig_connector->dp_i2c_bus = radeon_i2c_create_dp(dev, i2c_bus, "DP-auxch"); |
1087 | radeon_dig_connector->dp_i2c_bus = radeon_i2c_create_dp(dev, "DP-auxch", true, uc_i2c_id); | ||
1088 | if (i2c_bus->valid) { | 1087 | if (i2c_bus->valid) { |
1089 | radeon_connector->ddc_bus = radeon_i2c_create(dev, i2c_bus, "DP"); | 1088 | radeon_connector->ddc_bus = radeon_i2c_create(dev, i2c_bus, "DP"); |
1090 | if (!radeon_connector->ddc_bus) | 1089 | if (!radeon_connector->ddc_bus) |