Skip to content
  • Marek Vasut's avatar
    rcar_gen3: drivers: console: Treat log as device memory · 60576747
    Marek Vasut authored and Manish Pandey2's avatar Manish Pandey2 committed
    
    
    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: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
    Change-Id: Ie9152e782e67d93e7236069a294df812e2b873bf
    60576747