create dummy git
Initial commit from CVS Modified makefiles for new directory structure.
ENGR00064089 Update makefiles for ltib

Update makefiles for ltib

Signed-off-by: Rob Herring <r.herring@freescale.com>
ENGR00064089 Add ltib dirbuild spec file

Add ltib dirbuild spec file

Signed-off-by: Rob Herring <r.herring@freescale.com>
ENGR00047811 Add VPU library for MX37

Add VPU library for MX37

Signed-off-by: Robby Cai<R63905@freescale.com>
ENGR00072268 Update FW to 1.0.2 on MX37 and bug fixes

Update Firmware to V1.0.2 on MX37, and vpu lib version to v3.0.1
Use IRAM as temporary buffer for VPU decoding
Add the debug codes for easier trace.

Signed-off-by: Robby Cai <r63905@freescale.com>
ENGR00079160 VPU lib v3.0.0 does not work on MX27 TO2.1

VPU lib v3.0.0 does not work on MX27 TO2.1, but work on TO2.0

Signed-off-by: Robby Cai <r63905@freescale.com>
ENGR00079197 incorrect OVL_INTERNAL_BUF size causes some conformance test fail

BUGFIX
incorrect OVL_INTERNAL_BUF size causes some conformance test failure
OVL_USE for Marley should be 160*MB width (byte), not 80*MB width (byte)

Signed-off-by: Robby Cai <r63905@freescale.com>
ENGR00080709: Fix overlap IRAM usage for audio/sdma/VPU

Fix overlap IRAM usage for audio/sdma/VPU Now the IRAM usage for VPU is
dynamically determined by the free IRAM size in kernel.
And will choose some of four options in VPU library, the one which
impacts video performance shall be set in higher priority.

Signed-off-by: Robby Cai <r63905@freescale.com>
ENGR00081581 update i.MX37 VPU firmware to v1.0.3

1.Bug fixes:
================
1.1. H.264 Q matrix decoding bug
In the previous version of firmware, H.264 decoder could not decode some files because of Q matrix decoding bug. In this new version, this bug has been fixed.

1.2. VC-1 non-support feature checking routine bug In the previous version of firmware, VC-1 decoder didn't return fail code although the stream could not be decoded by VPU. In this new version, this bug has been fixed.

2. Patches
================
2.1. Modify packed PB frame in MPEG-4 stream processing method in the file play mode In the previous version of firmware, VPU decodes two frames when packed PB frame is fed by host in file play mode. It cause display buffer corruption because host can not know which buffer is over written by decoder. In this new version, VPU decodes only one frame and returns flag indicates reuse of current chunk data. So, display buffer corruption is disappeared.

2.2. Add reset control register to support one instance reset In the previous version of firmware, whole internal data related with all instances is cleared after HW reset. So, in case of exception case of only one instance, all instances must be closed. In this new version, VPU don't clear internal data if dedicated register is set as 1. So, host application can control multi instance by control the register.

2.3. Display buffer control by Host
In the previous firmware, Marley control the display buffer management in the VPU decoder inside. So, although host application has not displayed target frame buffer yet, VPU decoder can overwrite the frame buffer. It can cause display corruption.

So, in this new firmware, flags which indicate frame buffers have been displayed or not are newly added to support host-side display buffer management. Host application can control the buffer use by setting buffer use flag register. This new scheme will give more flexibility to host application in display point of view.

Signed-off-by: Robby Cai <r63905@freescale.com>
ENGR00083200: Add support interleaved Cr/Cb map mode for FrameBuffer on MX37

Marley VPU supports two memory map modes for the
chrominance components in the frame buffers. One is the separate Cb/Cr map mode,
another is the interleaved Cb/Cr map mode that has only one base address for
interleaved Cb and Cr samples such as Cb0, Cr0, Cb1, Cr1, Cb2, Cr2,..., CbN, CrN, not
Cb0, Cb1, Cb2, ..., CbN, Cr0, Cr1, Cr2, ..., CrN. CbN and CrN are the last sample of
each chrominance component of the decoded frame.

This patch adds support interleaved CrCb map mode, it should be set same as
CrCb setting in V4L for correct display.

Signed-off-by: Robby Cai <r63905@freescale.com>
ENGR00081856: Add SCC2 & RNGC driver support for i.MX37.

Added rng & sahara library files for scc2 and RNGC tests for i.MX37.

Signed-off-by: Raj Rajasekaran <b10872@freescale.com>
ENGR00087885 MX51: VPU decoder support

Integrate CodaHx14 VPU to MX51,firmware version is V1.0.1.
This patch is to support vpu decoder feature for MX51.

Signed-off-by: Sammy He <r62914@freescale.com>
ENGR00087006 VPU clocks gate off/on at appropriate run time to save power

Enabling/disabling VPU clocks in the CCGR registers for each frame at appropriate run-time.
1) Turn on VPU clocks before access VPU register; Afterwards, turn off clocks.
2) The cloks should be turned on when exit from vpu_DecStartOneFrame(), and then
should be turned off in vpu_DecGetOutputInfo();
3) There should be a reference counter to record the count of VPU turn on/off.

Signed-off-by: Robby Cai <r63905@freescale.com>
ENGR00088673 update i.MX37 VPU firmware to v1.0.5, VPU package to v1.2.6

firmware v1.0.5 BugFix over v1.0.4
----------------------------------------------------------
1. MPEG-4 new buffer management bug
In the previous version of firmware, MPEG-4 decoder used the frame buffer whose
flag was not cleared by host. Fixed in new version.

2. VC-1 new buffer management bug
In the previous version of firmware, VC-1 decoder reset the frame buffer display
flag which was cleared by host. Fixed in new version.

firmware v1.0.4 BugFix over v1.0.3
----------------------------------------------------------
1. MPEG-4 GMC picture header parsing bug
In the previous version of firmware, MPEG-4 decoder returned error when GMC
header was inserted even if there was not error. Fixed in new version.

2. VC-1 unknown address bug
In the previous version of firmware, VC-1 decoder sent unknown address to EMI
when unsupported stream was inserted. Fixed in new version.

3. Add Display Flag register clear code in vpu_DecOpen()

4. Modification equation for calculating slice buffer size
In the previous version of reference SW, there is bug in the slice buffer size
calculation for worst slice size. Fixed in new version

Signed-off-by: Robby Cai <r63905@freescale.com>
ENGR00089112 MX51: Update VPU firmware to F.0.1 without Real Video codec

Update VPU firmware to F.0.1 without Real Video codec.

Signed-off-by: Sammy He <r62914@freescale.com>
ENGR00088833 cleanup: remove vpu codes related to mxc30031

Signed-off-by: Robby Cai <r63905@freescale.com>
ENGR000069674 MX51: VPU encoder support

Integrate CodaHx14 VPU encoder feature to MX51,firmware version is F.0.1

Signed-off-by: Sammy He <r62914@freescale.com>
ENGR000090137 fix MX37 VPU compile error

Fix MX37 VPU compile error due to MX51 VPU encoder check in.
Add MJPG_ENC definition in MX37 case.

Signed-off-by: Sammy He <r62914@freescale.com>
ENGR00090493 Fix MX37 VPU cause systeam crash in x16 bit

Fix MX37 VPU cause systeam crash in x16 bit.
Add check whether it is MX51 case when write reg BIT_RUN_AUX_STD.

Signed-off-by: Sammy He <r62914@freescale.com>