File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -307,8 +307,6 @@ static int hibmc_load(struct drm_device *dev)
307
307
/* reset all the states of crtc/plane/encoder/connector */
308
308
drm_mode_config_reset (dev );
309
309
310
- drm_fbdev_generic_setup (dev , dev -> mode_config .preferred_depth );
311
-
312
310
return 0 ;
313
311
314
312
err :
@@ -355,6 +353,9 @@ static int hibmc_pci_probe(struct pci_dev *pdev,
355
353
ret );
356
354
goto err_unload ;
357
355
}
356
+
357
+ drm_fbdev_generic_setup (dev , dev -> mode_config .preferred_depth );
358
+
358
359
return 0 ;
359
360
360
361
err_unload :
Original file line number Diff line number Diff line change 261
261
#define VIU_OSD_FIFO_DEPTH_VAL (val ) ((val & 0x7f) << 12)
262
262
#define VIU_OSD_WORDS_PER_BURST (words ) (((words & 0x4) >> 1) << 22)
263
263
#define VIU_OSD_FIFO_LIMITS (size ) ((size & 0xf) << 24)
264
+ #define VIU_OSD_BURST_LENGTH_24 (0x0 << 31 | 0x0 << 10)
265
+ #define VIU_OSD_BURST_LENGTH_32 (0x0 << 31 | 0x1 << 10)
266
+ #define VIU_OSD_BURST_LENGTH_48 (0x0 << 31 | 0x2 << 10)
267
+ #define VIU_OSD_BURST_LENGTH_64 (0x0 << 31 | 0x3 << 10)
268
+ #define VIU_OSD_BURST_LENGTH_96 (0x1 << 31 | 0x0 << 10)
269
+ #define VIU_OSD_BURST_LENGTH_128 (0x1 << 31 | 0x1 << 10)
264
270
265
271
#define VD1_IF0_GEN_REG 0x1a50
266
272
#define VD1_IF0_CANVAS0 0x1a51
Original file line number Diff line number Diff line change @@ -411,13 +411,6 @@ void meson_viu_gxm_disable_osd1_afbc(struct meson_drm *priv)
411
411
priv -> io_base + _REG (VIU_MISC_CTRL1 ));
412
412
}
413
413
414
- static inline uint32_t meson_viu_osd_burst_length_reg (uint32_t length )
415
- {
416
- uint32_t val = (((length & 0x80 ) % 24 ) / 12 );
417
-
418
- return (((val & 0x3 ) << 10 ) | (((val & 0x4 ) >> 2 ) << 31 ));
419
- }
420
-
421
414
void meson_viu_init (struct meson_drm * priv )
422
415
{
423
416
uint32_t reg ;
@@ -444,9 +437,9 @@ void meson_viu_init(struct meson_drm *priv)
444
437
VIU_OSD_FIFO_LIMITS (2 ); /* fifo_lim: 2*16=32 */
445
438
446
439
if (meson_vpu_is_compatible (priv , VPU_COMPATIBLE_G12A ))
447
- reg |= meson_viu_osd_burst_length_reg ( 32 ) ;
440
+ reg |= VIU_OSD_BURST_LENGTH_32 ;
448
441
else
449
- reg |= meson_viu_osd_burst_length_reg ( 64 ) ;
442
+ reg |= VIU_OSD_BURST_LENGTH_64 ;
450
443
451
444
writel_relaxed (reg , priv -> io_base + _REG (VIU_OSD1_FIFO_CTRL_STAT ));
452
445
writel_relaxed (reg , priv -> io_base + _REG (VIU_OSD2_FIFO_CTRL_STAT ));
You can’t perform that action at this time.
0 commit comments