Commit 3f9acde8 authored by Bryan O'Donoghue's avatar Bryan O'Donoghue Committed by Mauro Carvalho Chehab
Browse files

media: venus: core: Hook to V6 base registers when appropriate



This commit points the IO base registers 6xx offsets when probing for 6xx
hardware.

Signed-off-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: default avatarStanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent e6dd8c3a
Loading
Loading
Loading
Loading
+17 −7
Original line number Diff line number Diff line
@@ -210,6 +210,15 @@ static int venus_enumerate_codecs(struct venus_core *core, u32 type)

static void venus_assign_register_offsets(struct venus_core *core)
{
	if (IS_V6(core)) {
		core->vbif_base = core->base + VBIF_BASE;
		core->cpu_base = core->base + CPU_BASE_V6;
		core->cpu_cs_base = core->base + CPU_CS_BASE_V6;
		core->cpu_ic_base = core->base + CPU_IC_BASE_V6;
		core->wrapper_base = core->base + WRAPPER_BASE_V6;
		core->wrapper_tz_base = core->base + WRAPPER_TZ_BASE_V6;
		core->aon_base = core->base + AON_BASE_V6;
	} else {
		core->vbif_base = core->base + VBIF_BASE;
		core->cpu_base = core->base + CPU_BASE;
		core->cpu_cs_base = core->base + CPU_CS_BASE;
@@ -218,6 +227,7 @@ static void venus_assign_register_offsets(struct venus_core *core)
		core->wrapper_tz_base = 0;
		core->aon_base = 0;
	}
}

static int venus_probe(struct platform_device *pdev)
{