diff options
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/dss/dispc.c | 18 | ||||
| -rw-r--r-- | drivers/gpu/drm/omapdrm/dss/dss_features.c | 3 | ||||
| -rw-r--r-- | drivers/gpu/drm/omapdrm/dss/dss_features.h | 4 | ||||
| -rw-r--r-- | drivers/gpu/drm/omapdrm/dss/omapdss.h | 5 | ||||
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_drv.c | 4 | ||||
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_irq.c | 2 | ||||
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_plane.c | 2 |
7 files changed, 31 insertions, 7 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/dispc.c b/drivers/gpu/drm/omapdrm/dss/dispc.c index d956e6266368..53d08dc4ef5a 100644 --- a/drivers/gpu/drm/omapdrm/dss/dispc.c +++ b/drivers/gpu/drm/omapdrm/dss/dispc.c | |||
| @@ -1135,6 +1135,18 @@ static u32 dispc_ovl_get_burst_size(enum omap_plane plane) | |||
| 1135 | return unit * 8; | 1135 | return unit * 8; |
| 1136 | } | 1136 | } |
| 1137 | 1137 | ||
| 1138 | enum omap_color_mode dispc_ovl_get_color_modes(enum omap_plane plane) | ||
| 1139 | { | ||
| 1140 | return dss_feat_get_supported_color_modes(plane); | ||
| 1141 | } | ||
| 1142 | EXPORT_SYMBOL(dispc_ovl_get_color_modes); | ||
| 1143 | |||
| 1144 | int dispc_get_num_ovls(void) | ||
| 1145 | { | ||
| 1146 | return dss_feat_get_num_ovls(); | ||
| 1147 | } | ||
| 1148 | EXPORT_SYMBOL(dispc_get_num_ovls); | ||
| 1149 | |||
| 1138 | static void dispc_mgr_enable_cpr(enum omap_channel channel, bool enable) | 1150 | static void dispc_mgr_enable_cpr(enum omap_channel channel, bool enable) |
| 1139 | { | 1151 | { |
| 1140 | if (channel == OMAP_DSS_CHANNEL_DIGIT) | 1152 | if (channel == OMAP_DSS_CHANNEL_DIGIT) |
| @@ -2967,6 +2979,12 @@ void dispc_pck_free_enable(bool enable) | |||
| 2967 | REG_FLD_MOD(DISPC_CONTROL, enable ? 1 : 0, 27, 27); | 2979 | REG_FLD_MOD(DISPC_CONTROL, enable ? 1 : 0, 27, 27); |
| 2968 | } | 2980 | } |
| 2969 | 2981 | ||
| 2982 | int dispc_get_num_mgrs(void) | ||
| 2983 | { | ||
| 2984 | return dss_feat_get_num_mgrs(); | ||
| 2985 | } | ||
| 2986 | EXPORT_SYMBOL(dispc_get_num_mgrs); | ||
| 2987 | |||
| 2970 | static void dispc_mgr_enable_fifohandcheck(enum omap_channel channel, bool enable) | 2988 | static void dispc_mgr_enable_fifohandcheck(enum omap_channel channel, bool enable) |
| 2971 | { | 2989 | { |
| 2972 | mgr_fld_write(channel, DISPC_MGR_FLD_FIFOHANDCHECK, enable); | 2990 | mgr_fld_write(channel, DISPC_MGR_FLD_FIFOHANDCHECK, enable); |
diff --git a/drivers/gpu/drm/omapdrm/dss/dss_features.c b/drivers/gpu/drm/omapdrm/dss/dss_features.c index ee5b93ce2763..26c29332b8e3 100644 --- a/drivers/gpu/drm/omapdrm/dss/dss_features.c +++ b/drivers/gpu/drm/omapdrm/dss/dss_features.c | |||
| @@ -774,13 +774,11 @@ int dss_feat_get_num_mgrs(void) | |||
| 774 | { | 774 | { |
| 775 | return omap_current_dss_features->num_mgrs; | 775 | return omap_current_dss_features->num_mgrs; |
| 776 | } | 776 | } |
| 777 | EXPORT_SYMBOL(dss_feat_get_num_mgrs); | ||
| 778 | 777 | ||
| 779 | int dss_feat_get_num_ovls(void) | 778 | int dss_feat_get_num_ovls(void) |
| 780 | { | 779 | { |
| 781 | return omap_current_dss_features->num_ovls; | 780 | return omap_current_dss_features->num_ovls; |
| 782 | } | 781 | } |
| 783 | EXPORT_SYMBOL(dss_feat_get_num_ovls); | ||
| 784 | 782 | ||
| 785 | unsigned long dss_feat_get_param_min(enum dss_range_param param) | 783 | unsigned long dss_feat_get_param_min(enum dss_range_param param) |
| 786 | { | 784 | { |
| @@ -806,7 +804,6 @@ enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane) | |||
| 806 | { | 804 | { |
| 807 | return omap_current_dss_features->supported_color_modes[plane]; | 805 | return omap_current_dss_features->supported_color_modes[plane]; |
| 808 | } | 806 | } |
| 809 | EXPORT_SYMBOL(dss_feat_get_supported_color_modes); | ||
| 810 | 807 | ||
| 811 | enum omap_overlay_caps dss_feat_get_overlay_caps(enum omap_plane plane) | 808 | enum omap_overlay_caps dss_feat_get_overlay_caps(enum omap_plane plane) |
| 812 | { | 809 | { |
diff --git a/drivers/gpu/drm/omapdrm/dss/dss_features.h b/drivers/gpu/drm/omapdrm/dss/dss_features.h index bb4b7f0e642b..bcec68ba8db9 100644 --- a/drivers/gpu/drm/omapdrm/dss/dss_features.h +++ b/drivers/gpu/drm/omapdrm/dss/dss_features.h | |||
| @@ -104,4 +104,8 @@ void dss_features_init(enum omapdss_version version); | |||
| 104 | enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel); | 104 | enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel); |
| 105 | enum omap_dss_output_id dss_feat_get_supported_outputs(enum omap_channel channel); | 105 | enum omap_dss_output_id dss_feat_get_supported_outputs(enum omap_channel channel); |
| 106 | 106 | ||
| 107 | int dss_feat_get_num_mgrs(void); | ||
| 108 | int dss_feat_get_num_ovls(void); | ||
| 109 | enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane); | ||
| 110 | |||
| 107 | #endif | 111 | #endif |
diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h b/drivers/gpu/drm/omapdrm/dss/omapdss.h index dab367ae5ca1..4d3999c18fa2 100644 --- a/drivers/gpu/drm/omapdrm/dss/omapdss.h +++ b/drivers/gpu/drm/omapdrm/dss/omapdss.h | |||
| @@ -860,6 +860,9 @@ void dispc_free_irq(void *dev_id); | |||
| 860 | int dispc_runtime_get(void); | 860 | int dispc_runtime_get(void); |
| 861 | void dispc_runtime_put(void); | 861 | void dispc_runtime_put(void); |
| 862 | 862 | ||
| 863 | int dispc_get_num_ovls(void); | ||
| 864 | int dispc_get_num_mgrs(void); | ||
| 865 | |||
| 863 | void dispc_mgr_enable(enum omap_channel channel, bool enable); | 866 | void dispc_mgr_enable(enum omap_channel channel, bool enable); |
| 864 | u32 dispc_mgr_get_vsync_irq(enum omap_channel channel); | 867 | u32 dispc_mgr_get_vsync_irq(enum omap_channel channel); |
| 865 | u32 dispc_mgr_get_framedone_irq(enum omap_channel channel); | 868 | u32 dispc_mgr_get_framedone_irq(enum omap_channel channel); |
| @@ -872,6 +875,7 @@ void dispc_mgr_set_timings(enum omap_channel channel, | |||
| 872 | const struct videomode *vm); | 875 | const struct videomode *vm); |
| 873 | void dispc_mgr_setup(enum omap_channel channel, | 876 | void dispc_mgr_setup(enum omap_channel channel, |
| 874 | const struct omap_overlay_manager_info *info); | 877 | const struct omap_overlay_manager_info *info); |
| 878 | enum omap_dss_output_id dispc_mgr_get_supported_outputs(enum omap_channel channel); | ||
| 875 | u32 dispc_mgr_gamma_size(enum omap_channel channel); | 879 | u32 dispc_mgr_gamma_size(enum omap_channel channel); |
| 876 | void dispc_mgr_set_gamma(enum omap_channel channel, | 880 | void dispc_mgr_set_gamma(enum omap_channel channel, |
| 877 | const struct drm_color_lut *lut, | 881 | const struct drm_color_lut *lut, |
| @@ -883,6 +887,7 @@ void dispc_ovl_set_channel_out(enum omap_plane plane, | |||
| 883 | enum omap_channel channel); | 887 | enum omap_channel channel); |
| 884 | int dispc_ovl_setup(enum omap_plane plane, const struct omap_overlay_info *oi, | 888 | int dispc_ovl_setup(enum omap_plane plane, const struct omap_overlay_info *oi, |
| 885 | bool replication, const struct videomode *vm, bool mem_to_mem); | 889 | bool replication, const struct videomode *vm, bool mem_to_mem); |
| 890 | enum omap_color_mode dispc_ovl_get_color_modes(enum omap_plane plane); | ||
| 886 | 891 | ||
| 887 | enum omap_dss_output_id dispc_mgr_get_supported_outputs(enum omap_channel channel); | 892 | enum omap_dss_output_id dispc_mgr_get_supported_outputs(enum omap_channel channel); |
| 888 | 893 | ||
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c index ce0a1c04403d..db0b485ef6c2 100644 --- a/drivers/gpu/drm/omapdrm/omap_drv.c +++ b/drivers/gpu/drm/omapdrm/omap_drv.c | |||
| @@ -320,8 +320,8 @@ static int omap_modeset_init(struct drm_device *dev) | |||
| 320 | { | 320 | { |
| 321 | struct omap_drm_private *priv = dev->dev_private; | 321 | struct omap_drm_private *priv = dev->dev_private; |
| 322 | struct omap_dss_device *dssdev = NULL; | 322 | struct omap_dss_device *dssdev = NULL; |
| 323 | int num_ovls = dss_feat_get_num_ovls(); | 323 | int num_ovls = dispc_get_num_ovls(); |
| 324 | int num_mgrs = dss_feat_get_num_mgrs(); | 324 | int num_mgrs = dispc_get_num_mgrs(); |
| 325 | int num_crtcs; | 325 | int num_crtcs; |
| 326 | int i, id = 0; | 326 | int i, id = 0; |
| 327 | int ret; | 327 | int ret; |
diff --git a/drivers/gpu/drm/omapdrm/omap_irq.c b/drivers/gpu/drm/omapdrm/omap_irq.c index 59f21add6f19..a3fd6e8266c8 100644 --- a/drivers/gpu/drm/omapdrm/omap_irq.c +++ b/drivers/gpu/drm/omapdrm/omap_irq.c | |||
| @@ -249,7 +249,7 @@ static const u32 omap_underflow_irqs[] = { | |||
| 249 | int omap_drm_irq_install(struct drm_device *dev) | 249 | int omap_drm_irq_install(struct drm_device *dev) |
| 250 | { | 250 | { |
| 251 | struct omap_drm_private *priv = dev->dev_private; | 251 | struct omap_drm_private *priv = dev->dev_private; |
| 252 | unsigned int num_mgrs = dss_feat_get_num_mgrs(); | 252 | unsigned int num_mgrs = dispc_get_num_mgrs(); |
| 253 | unsigned int max_planes; | 253 | unsigned int max_planes; |
| 254 | unsigned int i; | 254 | unsigned int i; |
| 255 | int ret; | 255 | int ret; |
diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c b/drivers/gpu/drm/omapdrm/omap_plane.c index 386d90af70f7..1067695af401 100644 --- a/drivers/gpu/drm/omapdrm/omap_plane.c +++ b/drivers/gpu/drm/omapdrm/omap_plane.c | |||
| @@ -352,7 +352,7 @@ struct drm_plane *omap_plane_init(struct drm_device *dev, | |||
| 352 | 352 | ||
| 353 | omap_plane->nformats = omap_framebuffer_get_formats( | 353 | omap_plane->nformats = omap_framebuffer_get_formats( |
| 354 | omap_plane->formats, ARRAY_SIZE(omap_plane->formats), | 354 | omap_plane->formats, ARRAY_SIZE(omap_plane->formats), |
| 355 | dss_feat_get_supported_color_modes(id)); | 355 | dispc_ovl_get_color_modes(id)); |
| 356 | omap_plane->id = id; | 356 | omap_plane->id = id; |
| 357 | omap_plane->name = plane_names[id]; | 357 | omap_plane->name = plane_names[id]; |
| 358 | 358 | ||
