video-driver: Setup ucregion from boot_firmware op
On all places ucregion setup is done just before calling boot_firmware, move setup in boot_firmware op and remove ucregion_setup op. Change-Id: I91a9a72d3b88eef91e82e19b9d8629e9731211f5 Signed-off-by: Stanimir Varbanov <quic_c_svarba@quicinc.com>
Цей коміт міститься в:

зафіксовано
Gerrit - the friendly Code Review server

джерело
1020319ca4
коміт
cca051abf4
@@ -943,6 +943,10 @@ static int __boot_firmware_iris2(struct msm_vidc_core *vidc_core)
|
||||
return 0;
|
||||
}
|
||||
|
||||
rc = __setup_ucregion_memory_map_iris2(core);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
ctrl_init_val = BIT(0);
|
||||
|
||||
rc = __write_register(core, CTRL_INIT_IRIS2, ctrl_init_val);
|
||||
@@ -1182,7 +1186,6 @@ static struct msm_vidc_venus_ops iris2_ops = {
|
||||
.interrupt_init = __interrupt_init_iris2,
|
||||
.raise_interrupt = __raise_interrupt_iris2,
|
||||
.clear_interrupt = __clear_interrupt_iris2,
|
||||
.setup_ucregion_memmap = __setup_ucregion_memory_map_iris2,
|
||||
.clock_config_on_enable = NULL,
|
||||
.reset_ahb2axi_bridge = __reset_ahb2axi_bridge,
|
||||
.power_on = __power_on_iris2,
|
||||
|
@@ -987,6 +987,10 @@ static int __boot_firmware_iris3(struct msm_vidc_core *vidc_core)
|
||||
return 0;
|
||||
}
|
||||
|
||||
rc = __setup_ucregion_memory_map_iris3(core);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
ctrl_init_val = BIT(0);
|
||||
|
||||
rc = __write_register(core, CTRL_INIT_IRIS3, ctrl_init_val);
|
||||
@@ -1260,7 +1264,6 @@ static struct msm_vidc_venus_ops iris3_ops = {
|
||||
.interrupt_init = __interrupt_init_iris3,
|
||||
.raise_interrupt = __raise_interrupt_iris3,
|
||||
.clear_interrupt = __clear_interrupt_iris3,
|
||||
.setup_ucregion_memmap = __setup_ucregion_memory_map_iris3,
|
||||
.clock_config_on_enable = NULL,
|
||||
.reset_ahb2axi_bridge = __reset_ahb2axi_bridge,
|
||||
.power_on = __power_on_iris3,
|
||||
|
Посилання в новій задачі
Заблокувати користувача