summaryrefslogtreecommitdiff
path: root/src/soc/samsung/exynos5250/fb.c
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2019-12-02 22:03:27 -0800
committerPatrick Georgi <pgeorgi@google.com>2019-12-04 14:11:17 +0000
commit55009af42c39f413c49503670ce9bc2858974962 (patch)
tree099e9728bfe8066999de4d7a30021eb10bd71d12 /src/soc/samsung/exynos5250/fb.c
parent1c371572188a90ea16275460dd4ab6bf9966350b (diff)
downloadcoreboot-55009af42c39f413c49503670ce9bc2858974962.tar.xz
Change all clrsetbits_leXX() to clrsetbitsXX()
This patch changes all existing instances of clrsetbits_leXX() to the new endian-independent clrsetbitsXX(), after double-checking that they're all in SoC-specific code operating on CPU registers and not actually trying to make an endian conversion. This patch was created by running sed -i -e 's/\([cs][le][rt]bits\)_le\([136][624]\)/\1\2/g' across the codebase and cleaning up formatting a bit. Change-Id: I7fc3e736e5fe927da8960fdcd2aae607b62b5ff4 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37433 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/soc/samsung/exynos5250/fb.c')
-rw-r--r--src/soc/samsung/exynos5250/fb.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/soc/samsung/exynos5250/fb.c b/src/soc/samsung/exynos5250/fb.c
index 64980a1aec..2e8acf2688 100644
--- a/src/soc/samsung/exynos5250/fb.c
+++ b/src/soc/samsung/exynos5250/fb.c
@@ -100,7 +100,7 @@ short console_row;
/* Bypass FIMD of DISP1_BLK */
static void fimd_bypass(void)
{
- setbits_le32(&exynos_sysreg->disp1blk_cfg, FIMDBYPASS_DISP1);
+ setbits32(&exynos_sysreg->disp1blk_cfg, FIMDBYPASS_DISP1);
exynos_sysreg->disp1blk_cfg &= ~FIMDBYPASS_DISP1;
}
@@ -145,7 +145,7 @@ void fb_init(unsigned long int fb_size, void *lcdbase,
write32(&exynos_fimd->vidosd0b, val);
write32(&exynos_fimd->vidosd0c, pd->xres * pd->yres);
- setbits_le32(&exynos_fimd->shadowcon, CHANNEL0_EN);
+ setbits32(&exynos_fimd->shadowcon, CHANNEL0_EN);
val = BPPMODE_F_RGB_16BIT_565 << BPPMODE_F_OFFSET;
val |= ENWIN_F_ENABLE | HALF_WORD_SWAP_EN;
@@ -159,7 +159,7 @@ void fb_init(unsigned long int fb_size, void *lcdbase,
void exynos_fimd_disable(void)
{
write32(&exynos_fimd->wincon0, 0);
- clrbits_le32(&exynos_fimd->shadowcon, CHANNEL0_EN);
+ clrbits32(&exynos_fimd->shadowcon, CHANNEL0_EN);
}
#endif
@@ -205,16 +205,16 @@ static int s5p_dp_config_video(struct s5p_dp_device *dp,
/* Set to use the register calculated M/N video */
s5p_dp_set_video_cr_mn(dp, CALCULATED_M, 0, 0);
- clrbits_le32(&base->video_ctl_10, FORMAT_SEL);
+ clrbits32(&base->video_ctl_10, FORMAT_SEL);
/* Disable video mute */
- clrbits_le32(&base->video_ctl_1, HDCP_VIDEO_MUTE);
+ clrbits32(&base->video_ctl_1, HDCP_VIDEO_MUTE);
/* Configure video slave mode */
s5p_dp_enable_video_master(dp);
/* Enable video */
- setbits_le32(&base->video_ctl_1, VIDEO_EN);
+ setbits32(&base->video_ctl_1, VIDEO_EN);
timeout = s5p_dp_is_video_stream_on(dp);
if (timeout) {
@@ -258,7 +258,7 @@ static int s5p_dp_enable_scramble(struct s5p_dp_device *dp)
u8 data;
struct exynos5_dp *base = dp->base;
- clrbits_le32(&base->dp_training_ptn_set, SCRAMBLING_DISABLE);
+ clrbits32(&base->dp_training_ptn_set, SCRAMBLING_DISABLE);
if (s5p_dp_read_byte_from_dpcd(dp, DPCD_ADDR_TRAINING_PATTERN_SET,
&data)) {
@@ -288,7 +288,7 @@ static int s5p_dp_init_dp(struct s5p_dp_device *dp)
s5p_dp_reset(dp);
/* SW defined function Normal operation */
- clrbits_le32(&base->func_en_1, SW_FUNC_EN_N);
+ clrbits32(&base->func_en_1, SW_FUNC_EN_N);
ret = s5p_dp_init_analog_func(dp);
if (!ret)
@@ -397,7 +397,7 @@ static int s5p_dp_hw_link_training(struct s5p_dp_device *dp,
struct exynos5_dp *base = dp->base;
/* Stop Video */
- clrbits_le32(&base->video_ctl_1, VIDEO_EN);
+ clrbits32(&base->video_ctl_1, VIDEO_EN);
stopwatch_init_msecs_expire(&sw, PLL_LOCK_TIMEOUT);
@@ -411,12 +411,12 @@ static int s5p_dp_hw_link_training(struct s5p_dp_device *dp,
printk(BIOS_SPEW, "PLL is %slocked\n",
pll_is_locked == PLL_LOCKED ? "": "not ");
/* Reset Macro */
- setbits_le32(&base->dp_phy_test, MACRO_RST);
+ setbits32(&base->dp_phy_test, MACRO_RST);
/* 10 us is the minimum reset time. */
udelay(10);
- clrbits_le32(&base->dp_phy_test, MACRO_RST);
+ clrbits32(&base->dp_phy_test, MACRO_RST);
/* Set TX pre-emphasis to minimum */
for (lane = 0; lane < max_lane; lane++)
@@ -534,7 +534,7 @@ int dp_controller_init(struct s5p_dp_device *dp_device)
base = dp->base;
/* Enable enhanced mode */
- setbits_le32(&base->sys_ctl_4, ENHANCED);
+ setbits32(&base->sys_ctl_4, ENHANCED);
write32(&base->lane_count_set, dp->link_train.lane_count);
write32(&base->link_bw_set, dp->link_train.link_rate);