Commit e6dd8c3a authored by Bryan O'Donoghue's avatar Bryan O'Donoghue Committed by Mauro Carvalho Chehab

media: venus: core: Add an io base for AON regs

6xx silicon needs to access registers from a AON base address range.
This commit defines the necessary variable for later use.
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 94e6ed2b
...@@ -216,6 +216,7 @@ static void venus_assign_register_offsets(struct venus_core *core) ...@@ -216,6 +216,7 @@ static void venus_assign_register_offsets(struct venus_core *core)
core->cpu_ic_base = core->base + CPU_IC_BASE; core->cpu_ic_base = core->base + CPU_IC_BASE;
core->wrapper_base = core->base + WRAPPER_BASE; core->wrapper_base = core->base + WRAPPER_BASE;
core->wrapper_tz_base = 0; core->wrapper_tz_base = 0;
core->aon_base = 0;
} }
static int venus_probe(struct platform_device *pdev) static int venus_probe(struct platform_device *pdev)
......
...@@ -96,6 +96,7 @@ struct venus_format { ...@@ -96,6 +96,7 @@ struct venus_format {
* @cpu_ic_base IO memory cpu_ic base address * @cpu_ic_base IO memory cpu_ic base address
* @wrapper_base IO memory wrapper base address * @wrapper_base IO memory wrapper base address
* @wrapper_base IO memory wrapper TZ base address * @wrapper_base IO memory wrapper TZ base address
* @aon_base AON base address
* @irq: Venus irq * @irq: Venus irq
* @clks: an array of struct clk pointers * @clks: an array of struct clk pointers
* @vcodec0_clks: an array of vcodec0 struct clk pointers * @vcodec0_clks: an array of vcodec0 struct clk pointers
...@@ -134,6 +135,7 @@ struct venus_core { ...@@ -134,6 +135,7 @@ struct venus_core {
void __iomem *cpu_ic_base; void __iomem *cpu_ic_base;
void __iomem *wrapper_base; void __iomem *wrapper_base;
void __iomem *wrapper_tz_base; void __iomem *wrapper_tz_base;
void __iomem *aon_base;
int irq; int irq;
struct clk *clks[VIDC_CLKS_NUM_MAX]; struct clk *clks[VIDC_CLKS_NUM_MAX];
struct clk *vcodec0_clks[VIDC_VCODEC_CLKS_NUM_MAX]; struct clk *vcodec0_clks[VIDC_VCODEC_CLKS_NUM_MAX];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment