test(memory share): lend device memory region to sp

Add test to check that a device memory region can be successfully
lent to an sp.

This requires some refactoring of the memory sharing test flow so
as to use the correct memory type and cachebility attributes for
the memory being lent. Also limit the words being written to 1
word for device memory so we only write to the data register of the
device.

Also only map device regions from UART2 so that UART0 can be used
by TFTF in the device sharing test.

Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
Change-Id: I9f31769679883f34e0444db75a873765776a85e9
9 files changed