Re: [PATCH 0/12] Initial i.MX5/CODA7 support for the CODA driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You have to apply the following operation to the binary fw file
provided by Freescale.
We agreed with Fabio that they were going to submit that file with the
modification below to the linux-firmware repository soon.

#include <stdio.h>
#include <stdint.h>
#include <assert.h>
#include "vpu_codetable_mx27.h"

int main() {
  FILE *f;
  uint32_t data;
  int i;

  f = fopen("v4l-codadx6-imx27.bin", "wb");

  assert(f != NULL);

  /* Copy full Microcode to Code Buffer allocated on SDRAM */
  for (i = 0; i < sizeof(bit_code2) / sizeof(bit_code2[0]); i += 2) {
    data = (uint32_t)((bit_code2[i] << 16) | bit_code2[i + 1]);
    fwrite(&data, sizeof(data), 1, f);
  }
  fclose(f);

}


On 28 August 2012 12:17, Gaëtan Carlier <gcembed@xxxxxxxxx> wrote:
> Hi Javier,
>
> On 08/28/2012 10:10 AM, javier Martin wrote:
>>
>> Hi Philipp,
>> in order to give you my ACK I need that patch 3 gets fixed and patches
>> 3-10 are resent so that they can apply cleanly.
>> After that, we'll make some intensive testing for a week in i.MX27, if
>> everything works as expected I'll ACK the patches.
>>
> I am also doing some test with new Coda6 driver (I previously used kernel
> 2.6.22 with VPU driver) but when the FW is sent, Coda does not respond and
> timeout occurs. I have tried built-in and module version with built-in
> firmware or via rootfs but each time the FW is found, sent to Coda then
> timeout occurs.
> Have you any advise for me or a working patch set for the current
> linux-next.
> Thanks a lot for your help.
> Regards,
> Gaëtan Carlier.
>
>
>> Regards.
>>
>> On 24 August 2012 18:17, Philipp Zabel <p.zabel@xxxxxxxxxxxxxx> wrote:
>>>
>>> These patches contain initial firmware loading and encoding support for
>>> the
>>> CODA7 series VPU contained in i.MX51 and i.MX53 SoCs, and fix some
>>> multi-instance
>>> issues.
>>>
>>> regards
>>> Philipp
>>>
>>> ---
>>>   arch/arm/boot/dts/imx51.dtsi        |    6 +++++
>>>   arch/arm/boot/dts/imx53.dtsi        |    7 ++++++
>>>   arch/arm/mach-imx/clk-imx51-imx53.c |    4 +--
>>>   drivers/media/video/Kconfig         |    3 ++-
>>>   drivers/media/video/coda.c          |  367
>>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------
>>>   drivers/media/video/coda.h          |   21 +++++++++++++---
>>>   6 files changed, 305 insertions(+), 103 deletions(-)
>>>
>>
>>
>>
>



-- 
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux