@@ -377,19 +377,19 @@ static void sn65dsi83_enable(struct drm_bridge *bridge)
377
377
378
378
/* Reference clock derived from DSI link clock. */
379
379
regmap_write (ctx -> regmap , REG_RC_LVDS_PLL ,
380
- REG_RC_LVDS_PLL_LVDS_CLK_RANGE (sn65dsi83_get_lvds_range (ctx )) |
381
- REG_RC_LVDS_PLL_HS_CLK_SRC_DPHY );
380
+ REG_RC_LVDS_PLL_LVDS_CLK_RANGE (sn65dsi83_get_lvds_range (ctx )) |
381
+ REG_RC_LVDS_PLL_HS_CLK_SRC_DPHY );
382
382
regmap_write (ctx -> regmap , REG_DSI_CLK ,
383
- REG_DSI_CLK_CHA_DSI_CLK_RANGE (sn65dsi83_get_dsi_range (ctx )));
383
+ REG_DSI_CLK_CHA_DSI_CLK_RANGE (sn65dsi83_get_dsi_range (ctx )));
384
384
regmap_write (ctx -> regmap , REG_RC_DSI_CLK ,
385
- REG_RC_DSI_CLK_DSI_CLK_DIVIDER (sn65dsi83_get_dsi_div (ctx )));
385
+ REG_RC_DSI_CLK_DSI_CLK_DIVIDER (sn65dsi83_get_dsi_div (ctx )));
386
386
387
387
/* Set number of DSI lanes and LVDS link config. */
388
388
regmap_write (ctx -> regmap , REG_DSI_LANE ,
389
- REG_DSI_LANE_DSI_CHANNEL_MODE_SINGLE |
390
- REG_DSI_LANE_CHA_DSI_LANES (~(ctx -> dsi_lanes - 1 )) |
391
- /* CHB is DSI85-only, set to default on DSI83/DSI84 */
392
- REG_DSI_LANE_CHB_DSI_LANES (3 ));
389
+ REG_DSI_LANE_DSI_CHANNEL_MODE_SINGLE |
390
+ REG_DSI_LANE_CHA_DSI_LANES (~(ctx -> dsi_lanes - 1 )) |
391
+ /* CHB is DSI85-only, set to default on DSI83/DSI84 */
392
+ REG_DSI_LANE_CHB_DSI_LANES (3 ));
393
393
/* No equalization. */
394
394
regmap_write (ctx -> regmap , REG_DSI_EQ , 0x00 );
395
395
@@ -420,10 +420,10 @@ static void sn65dsi83_enable(struct drm_bridge *bridge)
420
420
regmap_write (ctx -> regmap , REG_LVDS_FMT , val );
421
421
regmap_write (ctx -> regmap , REG_LVDS_VCOM , 0x05 );
422
422
regmap_write (ctx -> regmap , REG_LVDS_LANE ,
423
- (ctx -> lvds_dual_link_even_odd_swap ?
424
- REG_LVDS_LANE_EVEN_ODD_SWAP : 0 ) |
425
- REG_LVDS_LANE_CHA_LVDS_TERM |
426
- REG_LVDS_LANE_CHB_LVDS_TERM );
423
+ (ctx -> lvds_dual_link_even_odd_swap ?
424
+ REG_LVDS_LANE_EVEN_ODD_SWAP : 0 ) |
425
+ REG_LVDS_LANE_CHA_LVDS_TERM |
426
+ REG_LVDS_LANE_CHB_LVDS_TERM );
427
427
regmap_write (ctx -> regmap , REG_LVDS_CM , 0x00 );
428
428
429
429
val = cpu_to_le16 (ctx -> mode .hdisplay );
@@ -455,8 +455,8 @@ static void sn65dsi83_enable(struct drm_bridge *bridge)
455
455
regmap_write (ctx -> regmap , REG_RC_PLL_EN , REG_RC_PLL_EN_PLL_EN );
456
456
usleep_range (3000 , 4000 );
457
457
ret = regmap_read_poll_timeout (ctx -> regmap , REG_RC_LVDS_PLL , pval ,
458
- pval & REG_RC_LVDS_PLL_PLL_EN_STAT ,
459
- 1000 , 100000 );
458
+ pval & REG_RC_LVDS_PLL_PLL_EN_STAT ,
459
+ 1000 , 100000 );
460
460
if (ret ) {
461
461
dev_err (ctx -> dev , "failed to lock PLL, ret=%i\n" , ret );
462
462
/* On failure, disable PLL again and exit. */
@@ -513,8 +513,8 @@ static void sn65dsi83_mode_set(struct drm_bridge *bridge,
513
513
}
514
514
515
515
static bool sn65dsi83_mode_fixup (struct drm_bridge * bridge ,
516
- const struct drm_display_mode * mode ,
517
- struct drm_display_mode * adj )
516
+ const struct drm_display_mode * mode ,
517
+ struct drm_display_mode * adj )
518
518
{
519
519
struct sn65dsi83 * ctx = bridge_to_sn65dsi83 (bridge );
520
520
u32 input_bus_format = MEDIA_BUS_FMT_RGB888_1X24 ;
@@ -546,8 +546,8 @@ static bool sn65dsi83_mode_fixup(struct drm_bridge *bridge,
546
546
ctx -> lvds_format_24bpp = true;
547
547
ctx -> lvds_format_jeida = false;
548
548
dev_warn (ctx -> dev ,
549
- "Unsupported LVDS bus format 0x%04x, please check output bridge driver. Falling back to SPWG24.\n" ,
550
- connector -> display_info .bus_formats [0 ]);
549
+ "Unsupported LVDS bus format 0x%04x, please check output bridge driver. Falling back to SPWG24.\n" ,
550
+ connector -> display_info .bus_formats [0 ]);
551
551
break ;
552
552
}
553
553
0 commit comments