| .. | .. |
|---|
| 21 | 21 | #include "core.h" |
|---|
| 22 | 22 | #include "firmware.h" |
|---|
| 23 | 23 | #include "pm_helpers.h" |
|---|
| 24 | +#include "hfi_venus_io.h" |
|---|
| 24 | 25 | |
|---|
| 25 | 26 | static void venus_event_notify(struct venus_core *core, u32 event) |
|---|
| 26 | 27 | { |
|---|
| .. | .. |
|---|
| 210 | 211 | return ret; |
|---|
| 211 | 212 | } |
|---|
| 212 | 213 | |
|---|
| 214 | +static void venus_assign_register_offsets(struct venus_core *core) |
|---|
| 215 | +{ |
|---|
| 216 | + core->vbif_base = core->base + VBIF_BASE; |
|---|
| 217 | + core->cpu_base = core->base + CPU_BASE; |
|---|
| 218 | + core->cpu_cs_base = core->base + CPU_CS_BASE; |
|---|
| 219 | + core->cpu_ic_base = core->base + CPU_IC_BASE; |
|---|
| 220 | + core->wrapper_base = core->base + WRAPPER_BASE; |
|---|
| 221 | +} |
|---|
| 222 | + |
|---|
| 213 | 223 | static int venus_probe(struct platform_device *pdev) |
|---|
| 214 | 224 | { |
|---|
| 215 | 225 | struct device *dev = &pdev->dev; |
|---|
| .. | .. |
|---|
| 276 | 286 | if (ret) |
|---|
| 277 | 287 | goto err_core_put; |
|---|
| 278 | 288 | |
|---|
| 289 | + venus_assign_register_offsets(core); |
|---|
| 290 | + |
|---|
| 279 | 291 | ret = v4l2_device_register(dev, &core->v4l2_dev); |
|---|
| 280 | 292 | if (ret) |
|---|
| 281 | 293 | goto err_core_deinit; |
|---|