soc/mediatek: Remove blank lines before '}' and after '{'

Change-Id: I0ce2b61329efede1ba8a02446610e3eb635ceedc
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81462
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Eric Lai <ericllai@google.com>
This commit is contained in:
Elyes Haouas 2024-03-23 15:15:28 +01:00 committed by Yu-Ping Wu
parent e6893677c1
commit 4b76273ac9
18 changed files with 0 additions and 31 deletions

View File

@ -46,7 +46,6 @@ void rdma_config(u32 width, u32 height, u32 pixel_clk, u32 fifo_size)
void color_start(u32 width, u32 height)
{
write32(&disp_color0->width, width);
write32(&disp_color0->height, height);
write32(&disp_color0->cfg_main, COLOR_BYPASS_ALL | COLOR_SEQ_SEL);

View File

@ -81,7 +81,6 @@ int mtk_display_init(void)
return -1;
}
} else {
struct panel_serializable_data *mipi_data = NULL;
if (panel->get_edid) {

View File

@ -324,7 +324,6 @@ void dptx_hal_settu_sramrd_start(struct mtk_dp *mtk_dp, u16 value)
void dptx_hal_setsdp_downcnt_init_inhblanking(struct mtk_dp *mtk_dp, u16 value)
{
mtk_dp_mask(mtk_dp, REG_3364_DP_ENCODER1_P0, value, 0xfff);
}
void dptx_hal_setsdp_downcnt_init(struct mtk_dp *mtk_dp, u16 value)

View File

@ -472,7 +472,6 @@ int mtk_i2c_calculate_speed(uint8_t bus, uint32_t clk_src,
base_step_cnt = step_cnt;
if (best_mul == opt_div + clock_div_constraint)
break;
}
if (!success)

View File

@ -388,7 +388,6 @@ static void msdc_set_ios(struct sd_mmc_ctrlr *ctrlr)
msdc_set_clock(host, ctrlr->request_hz);
msdc_set_buswidth(host, ctrlr->bus_width);
}
static void msdc_update_pointers(struct msdc_ctrlr *host)

View File

@ -111,7 +111,6 @@ static void mtk_uart_init(void)
write8(&uart_ptr->fcr,
UART8250_FCR_FIFO_EN | UART8250_FCR_CLEAR_RCVR |
UART8250_FCR_CLEAR_XMIT);
}
static void mtk_uart_tx_byte(unsigned char data)

View File

@ -47,7 +47,6 @@ static void da9212_hw_init(uint8_t i2c_num, unsigned char variant_id)
if (ret)
printk(BIOS_ERR, "%s failed\n", __func__);
}
void da9212_probe(uint8_t i2c_num)

View File

@ -154,7 +154,6 @@ static void mem_pll_init_phase_sync(u32 channel)
static void pll_phase_adjust(u32 channel, struct mem_pll *mempll, int reg_offs)
{
switch (mempll->phase) {
case MEMPLL_INIT:
/* initial phase: zero out RG_MEPLL(2,3,4)_(REF_DL,FB)_DL */
clrbits32(&ch[channel].ddrphy_regs->mempll[reg_offs],
@ -189,7 +188,6 @@ static void pll_phase_check(u32 channel, struct mem_pll *mempll, int idx)
(idx + 2), mempll->phase, one_count, zero_count);
switch (mempll->phase) {
case MEMPLL_INIT:
if ((one_count - zero_count) > JMETER_COUNT_N) {
/* REF lag FBK */
@ -243,7 +241,6 @@ static void mem_pll_phase_cali(u32 channel)
JMETER_COUNT << JMETER_COUNTER_SHIFT);
while (1) {
for (i = 0; i < 3; i++) {
if (!mempll[i].done) {
pll_phase_adjust(channel, &mempll[i], (i + 2) * 3);
@ -317,7 +314,6 @@ void mem_pll_init(const struct mt8173_sdram_params *sdram_params)
udelay(100);
for (channel = 0; channel < CHANNEL_NUM; channel++) {
/* mempll_bias_en */
write32(&ch[channel].ddrphy_regs->mempll[3], 0xd << 28 |
0x1 << 6);

View File

@ -751,7 +751,6 @@ void tx_delay_for_wrleveling(u32 channel,
max_taps = MAX_DQDLY_TAPS - 1;
for (i = 0; i < DATA_WIDTH_32BIT; i++) {
index = i / DQS_BIT_NUMBER;
if (i % DQS_BIT_NUMBER == 0)
@ -823,7 +822,6 @@ static void set_tx_dly_factor(u32 channel, u32 curr_val, u8 type)
value += (curr_val << (4 * i));
switch (type) {
case TX_DQS:
write32(&ch[channel].ddrphy_regs->padctl3, value);
break;
@ -979,7 +977,6 @@ void perbit_window_cal(u32 channel, u8 type)
/* delay DQ from 0 to 15 to get the setup time */
for (dly = FIRST_DQ_DELAY; dly < MAX_DQDLY_TAPS; dly++) {
set_dly_factor(channel, STAGE_SETUP, type, dly);
err_value = dram_k_perbit(channel);
@ -1015,7 +1012,6 @@ void perbit_window_cal(u32 channel, u8 type)
/* delay DQS to get the hold time, dq_dly = dqs_dly = 0 is counted */
/* when we delay dq, so we set first dqs delay to 1 */
for (dly = (FIRST_DQS_DELAY + 1); dly < max_dqs_taps; dly++) {
set_dly_factor(channel, STAGE_HOLD, type, dly);
err_value = dram_k_perbit(channel);

View File

@ -78,7 +78,6 @@ void mt6391_configure_ldo(enum ldo_power ldo, enum ldo_voltage vsel)
pwrap_write_field(addr, vsel, 0x7, 5);
pwrap_write_field(PMIC_RG_DIGLDO_CON5 + ldo * 2, 1, 1, 15);
}
void mt6391_enable_reset_when_ap_resets(void)
@ -362,7 +361,6 @@ static void mt6391_init_setting(void)
pwrap_write_field(PMIC_RG_ANALDO_CON0, 0x3, 0x3, 3);
/* For low power, VIO18 set sleep_en to HW mode */
pwrap_write_field(PMIC_RG_VIO18_CON18, 0x1, 0x1, 8);
}
static void mt6391_default_buck_voltage(void)

View File

@ -289,7 +289,6 @@ static void dramc_rx_input_delay_tracking(u8 chn)
clrsetbits32(&ch[chn].phy.r[rank].b[b].rxdvs[2],
(0x3 << 30) | (0x1 << 28) | (0x1 << 23),
(0x2 << 30) | (0x1 << 28) | (0x1 << 23));
}
static void dramc_hw_dqs_gating_tracking(u8 chn)

View File

@ -537,7 +537,6 @@ static void dramc_save_result_to_shuffle(u32 src_shuffle, u32 dst_shuffle)
dst_addr = (u8 *)&ch[chn].ao.shu[dst_shuffle] +
offset;
write32(dst_addr, read32(src_addr));
}
}
@ -569,7 +568,6 @@ static void dramc_save_result_to_shuffle(u32 src_shuffle, u32 dst_shuffle)
dst_addr = (u8 *)&ch[chn].phy.shu[dst_shuffle] +
offset;
write32(dst_addr, read32(src_addr));
}
}
}

View File

@ -370,7 +370,6 @@ static const struct apc_infra_peri_dom_8 infra_ao_sys0_devices[] = {
/* module, AP permission, N/A, SSPM permission, N/A */
static const struct apc_infra_peri_dom_4 mm_ao_sys0_devices[] = {
/* 0 */
DAPC_MM_AO_SYS0_ATTR("IP",
NO_PROTECTION, FORBIDDEN, FORBIDDEN, NO_PROTECTION),

View File

@ -1492,7 +1492,6 @@ static void set_infra_ao_apc(uintptr_t base)
for (j = 0; j < ARRAY_SIZE(infra_ao_sys2_devices[i].d_permission); j++)
set_module_apc(base + SYS2_D0_APC_0, i, domain_map[j],
infra_ao_sys2_devices[i].d_permission[j]);
}
static void set_peri_ao_apc(uintptr_t base)
@ -1516,7 +1515,6 @@ static void set_peri_ao_apc(uintptr_t base)
for (j = 0; j < ARRAY_SIZE(peri_ao_sys1_devices[i].d_permission); j++)
set_module_apc(base + SYS1_D0_APC_0, i, domain_map[j],
peri_ao_sys1_devices[i].d_permission[j]);
}
static void set_peri2_ao_apc(uintptr_t base)
@ -1527,7 +1525,6 @@ static void set_peri2_ao_apc(uintptr_t base)
for (j = 0; j < ARRAY_SIZE(peri2_ao_sys0_devices[i].d_permission); j++)
set_module_apc(base + SYS0_D0_APC_0, i, domain_map[j],
peri2_ao_sys0_devices[i].d_permission[j]);
}
static void set_peri_par_ao_apc(uintptr_t base)
@ -1538,7 +1535,6 @@ static void set_peri_par_ao_apc(uintptr_t base)
for (j = 0; j < ARRAY_SIZE(peri_par_ao_sys0_devices[i].d_permission); j++)
set_module_apc(base + SYS0_D0_APC_0, i, domain_map[j],
peri_par_ao_sys0_devices[i].d_permission[j]);
}
static void dump_infra_ao_apc(uintptr_t base)
@ -1599,7 +1595,6 @@ static void dump_peri2_ao_apc(uintptr_t base)
for (i = 0; i < reg_max; i++)
printk(BIOS_DEBUG, "[DEVAPC] (PERI2_AO_SYS0)D%d_APC_%d: %#x\n", d,
i, read32(getreg_domain(base, SYS0_D0_APC_0, d, i)));
}
static void dump_peri_par_ao_apc(uintptr_t base)
@ -1716,7 +1711,6 @@ static void peri_par_init(uintptr_t base)
/* Master Domain */
SET32_BITFIELDS(getreg_domain(base, MAS_DOM_0, 0, 4),
PCIE0_DOM, DOMAIN_2);
}
static void fmem_master_init(uintptr_t base)

View File

@ -44,7 +44,6 @@ enum {
})
enum {
PIN(0, GPIO00, 0, 6, 0x31, 0xe0,
TP_GPIO0_AO, SPIM5_CSB, UTXD1, DMIC3_CLK,
I2SIN_MCK, I2SO2_MCK, DBG_MON_A0),

View File

@ -46,7 +46,6 @@ static void infra_master_init(uintptr_t base)
TWO_BIT_DOM_REMAP_2, MAS_DOMAIN_1,
TWO_BIT_DOM_REMAP_3, MAS_DOMAIN_3,
TWO_BIT_DOM_REMAP_4, MAS_DOMAIN_1);
}
static void peri_master_init(uintptr_t base)

View File

@ -37,7 +37,6 @@ enum {
})
enum {
PIN(0, GPIO_00, 1, 0, 0x23, 0x60,
TP_GPIO0_AO, MSDC2_CMD, TDMIN_MCK, CLKM0,
PERSTN_1, IDDIG_1P, DMIC4_CLK),

View File

@ -467,7 +467,6 @@ void spm_register_init(void)
SPM_DVFSRC_ENABLE_LSB, 1);
write32(&mtk_spm->spm_dvfs_level, SPM_DVFS_LEVEL_DEF);
write32(&mtk_spm->spm_dvs_dfs_level, SPM_DVS_DFS_LEVEL_DEF);
}
void spm_reset_and_init_pcm(void)