Utils: Fix for use of double quotes in version commit message

The version info generation adds the top-most commit message of
the sysbios-rpmsg tree and the tree building the base-image. The
use of double quotes in the commit message (like in a revert or
a merge commit) was not handled properly when constructing the
version string. The quote character was seen by the compiler as
the end of the string instead of another valid character, and is
resulting in a build error at linking stage.

The version string generation for the commit message is corrected
to handle the presence of the quotes.

Signed-off-by: Juan Gutierrez <jgutierrez@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
Resources: Remove duplicate IVAHD register space definitions

The IVAHD register space macros have been defined twice, and
are cleaned up.

Signed-off-by: Suman Anna <s-anna@ti.com>
Gates: Add target-specific attributes to HwSpinlock build

The target-specific attributes are added to the hwspinlock build
file. These attributes allow the library to distinguish the target
processor, and allow target-specific code to be compiled only
for that target.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Gates: Add valid hwspinlock base address for DSP

The current base address defined for HwSpinlock is valid only
for IPU target. Accessing hwspinlock from the DSP using this
address causes an MMU fault since this address is invalid and
not mapped into the DSP MMU.

The DSP has a different virtual address layout compared to IPU,
and the correct hwspinlock base address has been added to be
able to use this IP from DSP.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Configs: Include the hwspinlock module for DSP

Include the hwspinlock module to be able to use its API in DSP
test samples.

Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Signed-off-by: Juan Gutierrez <jgutierrez@ti.com>
Samples: Add hwspinlock test to be built for all base images

The file to test hwspinlock module is not included at present in
DSP and SMP-mode IPU sample base-images. The test is now added to
these images as well.

Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Gates: Add support to track hwspinlock locking

HwSpinlocks are used to arbitrate access to a common resource
between two or more processors. HwSpinlocks could be left in
a locked state if any device exception happens on the processor
holding the lock. Such a scenario calls for a way to recover /
reset the locked HwSpinlocks so that the arbitration can be
handled properly between the processors again.

This patch introduces a shared state that can be exposed to
the host via a resource table entry. The shared state for the
spinlocks is basically a bitfield (1 bit per hwspinlock) that
would be set each time the corresponding hwspinlock is held
and reset when released. The size of the bit field array is
also exported to aid the host in indexing into the array. The
host can inspect this shared state and reset the spinlocks
held by the remote processor while reloading the remote
processor.

Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
Resources: Add support to define custom resource types

Remote processors might have resources to share with the host
that are implementation specific. Examples include specific
timers needed by the remote processor, or hwspinlocks used by
the remote processor.

Such information is best encapsulated as a custom resource.
This patch adds basic support to define such custom resources.

Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Resources: Add hwspinlock state as a custom resource

HwSpinlocks can be left locked in the event of a device
exception. To gracefully exit such a scenario, the state
of the hwspinlocks (stored in a bitfield array) is exposed
as a custom resource table entry. The number of the locks
is also exposed. This information can be used by the host
to reset the locks and recover the remote processor.

Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Rework core0 memory map for DCE core0 image

Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
Hack! Align OMAP5 IPU addresses on OMAP4

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>