diff options
Diffstat (limited to 'drivers/media/video/cx18/cx18-firmware.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-firmware.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/video/cx18/cx18-firmware.c b/drivers/media/video/cx18/cx18-firmware.c index 2694ce350631..2d630d9f7496 100644 --- a/drivers/media/video/cx18/cx18-firmware.c +++ b/drivers/media/video/cx18/cx18-firmware.c | |||
@@ -41,9 +41,6 @@ | |||
41 | 41 | ||
42 | #define CX18_REG_BUS_TIMEOUT_EN 0xc72024 | 42 | #define CX18_REG_BUS_TIMEOUT_EN 0xc72024 |
43 | 43 | ||
44 | #define CX18_AUDIO_ENABLE 0xc72014 | ||
45 | #define CX18_REG_BUS_TIMEOUT_EN 0xc72024 | ||
46 | |||
47 | #define CX18_FAST_CLOCK_PLL_INT 0xc78000 | 44 | #define CX18_FAST_CLOCK_PLL_INT 0xc78000 |
48 | #define CX18_FAST_CLOCK_PLL_FRAC 0xc78004 | 45 | #define CX18_FAST_CLOCK_PLL_FRAC 0xc78004 |
49 | #define CX18_FAST_CLOCK_PLL_POST 0xc78008 | 46 | #define CX18_FAST_CLOCK_PLL_POST 0xc78008 |
@@ -90,7 +87,7 @@ | |||
90 | #define CX18_DSP0_INTERRUPT_MASK 0xd0004C | 87 | #define CX18_DSP0_INTERRUPT_MASK 0xd0004C |
91 | 88 | ||
92 | /* Encoder/decoder firmware sizes */ | 89 | /* Encoder/decoder firmware sizes */ |
93 | #define CX18_FW_CPU_SIZE (174716) | 90 | #define CX18_FW_CPU_SIZE (158332) |
94 | #define CX18_FW_APU_SIZE (141200) | 91 | #define CX18_FW_APU_SIZE (141200) |
95 | 92 | ||
96 | #define APU_ROM_SYNC1 0x6D676553 /* "mgeS" */ | 93 | #define APU_ROM_SYNC1 0x6D676553 /* "mgeS" */ |
@@ -345,6 +342,11 @@ int cx18_firmware_init(struct cx18 *cx) | |||
345 | int sz = load_apu_fw_direct("v4l-cx23418-apu.fw", | 342 | int sz = load_apu_fw_direct("v4l-cx23418-apu.fw", |
346 | cx->enc_mem, cx, CX18_FW_APU_SIZE); | 343 | cx->enc_mem, cx, CX18_FW_APU_SIZE); |
347 | 344 | ||
345 | write_enc(0xE51FF004, 0); | ||
346 | write_enc(0xa00000, 4); /* todo: not hardcoded */ | ||
347 | write_reg(0x00010000, CX18_PROC_SOFT_RESET); /* Start APU */ | ||
348 | cx18_msleep_timeout(500, 0); | ||
349 | |||
348 | sz = sz <= 0 ? sz : load_cpu_fw_direct("v4l-cx23418-cpu.fw", | 350 | sz = sz <= 0 ? sz : load_cpu_fw_direct("v4l-cx23418-cpu.fw", |
349 | cx->enc_mem, cx, CX18_FW_CPU_SIZE); | 351 | cx->enc_mem, cx, CX18_FW_CPU_SIZE); |
350 | 352 | ||