]> git.baikalelectronics.ru Git - arm-tf.git/commit
rcar_gen3: drivers: console: Treat log as device memory
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 8 Nov 2020 18:13:32 +0000 (19:13 +0100)
committerManish Pandey <manish.pandey2@arm.com>
Tue, 8 Dec 2020 22:27:13 +0000 (22:27 +0000)
commit605767475ec42f4250edbfd10be7e605f7d3aa1d
treedfacfaa401d6d610586cb0f344d052f80d8e3f0e
parent77990838a4486bc266377243af3e328c0daa9f3e
rcar_gen3: drivers: console: Treat log as device memory

The BL31 log driver is registered before the xlat tables are initialized,
at that point the log memory is configured as device memory and can only
be accessed with up-to-32bit aligned accesses. Adjust the driver to do
just that.

The memset() call has to be replaced by a loop of 32bit writes to the log,
the memcpy() is trivial to replace with a single 32bit write of the entire
TLOG word. In the end, this even simplifies the code.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Change-Id: Ie9152e782e67d93e7236069a294df812e2b873bf
drivers/renesas/rcar/console/rcar_printf.c