Skip to content

Commit

Permalink
initial work on supporting older lcdcs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmind committed Oct 6, 2014
1 parent a4c878d commit 34a96cb
Show file tree
Hide file tree
Showing 4 changed files with 503 additions and 227 deletions.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/rockchip/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
config DRM_ROCKCHIP
tristate "DRM Support for Rockchip"
depends on DRM && ROCKCHIP_IOMMU && ARM_DMA_USE_IOMMU && IOMMU_API
depends on DRM
# && ROCKCHIP_IOMMU && ARM_DMA_USE_IOMMU && IOMMU_API
select DRM_KMS_HELPER
select DRM_KMS_FB_HELPER
select DRM_PANEL
Expand Down
6 changes: 3 additions & 3 deletions drivers/gpu/drm/rockchip/rockchip_drm_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
int rockchip_drm_dma_attach_device(struct drm_device *drm_dev,
struct device *dev)
{
struct dma_iommu_mapping *mapping = drm_dev->dev->archdata.mapping;
struct dma_iommu_mapping *mapping;// = drm_dev->dev->archdata.mapping;
int ret;

ret = dma_set_coherent_mask(dev, DMA_BIT_MASK(32));
Expand Down Expand Up @@ -141,7 +141,7 @@ static int rockchip_drm_load(struct drm_device *drm_dev, unsigned long flags)
err_detach_device:
arm_iommu_detach_device(dev);
err_release_mapping:
arm_iommu_release_mapping(dev->archdata.mapping);
// arm_iommu_release_mapping(dev->archdata.mapping);
err_config_cleanup:
drm_mode_config_cleanup(drm_dev);
drm_dev->dev_private = NULL;
Expand All @@ -155,7 +155,7 @@ static int rockchip_drm_unload(struct drm_device *drm_dev)
drm_kms_helper_poll_fini(drm_dev);
component_unbind_all(dev, drm_dev);
arm_iommu_detach_device(dev);
arm_iommu_release_mapping(dev->archdata.mapping);
// arm_iommu_release_mapping(dev->archdata.mapping);
drm_mode_config_cleanup(drm_dev);
drm_dev->dev_private = NULL;

Expand Down

0 comments on commit 34a96cb

Please sign in to comment.