Set HDVICP2_PARAMS.resetControlAddress dynamically based on chipset_id

It isn't enough that we use the correct address.. HDVICP2 needs to as
well.
Only call reloc when reloc_len is non-zero

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Add download link for compiler
ducati: dce: Remove resource table trace print from image

In order to have the linker include the resource table in the
baseimage, the resource variable needs to be used in some form.
Otherwise the optimization in the linker detects that this is a
non-referenced variable and removes it from the baseimage. To
alleviate this, a dummy trace was used to make sure the resource
table section is present in the firmware binary.

The new IpcMemory module inherently adds this trace, and so the
trace in DCE image is no longer required and is removed.

Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
ducati: implement VirtToPhys using new sysbios-rpmsg API

With sysbios-rpmsg >= 1.10+ there is a new resource table mechanism,
and we need to update our VirtToPhys function.

Fortunately, this API is now implemented and provided by rpmsg.

Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
ducati: initial build conf support for SMP BIOS

Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
ducati: remove call to VirtQueue_startup() in startup

This is now taken care by rpmsg after moving to 1.20+

Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
Set HDVICP2_PARAMS.resetControlAddress dynamically based on chipset_id

It isn't enough that we use the correct address.. HDVICP2 needs to as
well.

Conflicts:

	ducati/ti/dce/ivahd.c
	firmware/ducati-m3-core0.xem3
ducati: filter out un-necessary profiles in config.bld

Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
ducati: split ti.dce into a lib and a separate baseimage

The 'package' ti.dce both had the DCE code, as well as the
baseimage code (BIOS cfg, main(), ...). With this change we split the
DCE code from the baseimage. there is now:
 - ti.dce
 - ti.dce.baseimage

that will allow a simpler reuse of ti.dce into other base images

there is still some clean up that can be done in the base image to move
the thread creation, and some config in ti.dce, and this will be done
in further commits. This commit only changes the file 'location' without
changing any implementation detail.

Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
ducati: removed un-needed references to sysbios-rpmsg old rsc table

Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
ducati: create a BIOS startup function with dce_init()

Configure ti.dce so that it automatically registers a startup function
when it's being used, so that the base image that uses DCE does not need
to make the call, it's managed automagically.

As such, dce_init() will be called when BIOS_start() is called.

Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
ducati: reports mem stats on codec create/delete instead of each buffer alloc

Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
Update firmware image

With this image, we can decode h264 video on OMAP5 with kernel 3.4.
(ducati-build commit: d5f49bdcd65412c52372aedea1cee47284f19ec0)

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Add dce_get_fd() to get the drm fd

This is needed to be able to share the fd opened by dce_init
Add XDM_MEMTYPE_BO_OFFSET

XDM_MEMTYPE_BO_OFFSET can be used in VIDDEC3_process outBufs to
signal that a buffer descriptor denotes an offset to the bo
passed in the first descriptor. Useful for example to decode NV12
into a single bo.
libdce: fix refcounting in init/deinit