Commit 240c9cbf authored by Biju Das's avatar Biju Das
Browse files

drivers: renesas: rcar: dma: Fix coding style



Sort the headers alphabetically and replace TAB with a space
after #define.
Signed-off-by: default avatarBiju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Change-Id: I07c358294b7c02cbfa360112bbbde0eb5f2b50f5
parent ee0dbc41
/* /*
* Copyright (c) 2015-2018, Renesas Electronics Corporation. All rights reserved. * Copyright (c) 2015-2020, Renesas Electronics Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
#include <common/debug.h> #include <common/debug.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include "rcar_def.h"
#include "cpg_registers.h" #include "cpg_registers.h"
#include "rcar_def.h"
#include "rcar_private.h" #include "rcar_private.h"
/* DMA CHANNEL setting (0/16/32) */ /* DMA CHANNEL setting (0/16/32) */
...@@ -129,16 +129,16 @@ void rcar_dma_exec(uintptr_t dst, uint32_t src, uint32_t len) ...@@ -129,16 +129,16 @@ void rcar_dma_exec(uintptr_t dst, uint32_t src, uint32_t len)
} }
if (src & DMA_FRACTION_MASK) { if (src & DMA_FRACTION_MASK) {
ERROR("BL2: DMA - source address invalid (0x%x), " ERROR("BL2: DMA - src address invalid (0x%x), len=(0x%x)\n",
"length (0x%x)\n", src, dma_len); src, dma_len);
panic(); panic();
} }
if ((dst & UINT32_MAX) + dma_len > DMADAR_BOUNDARY_ADDR || if ((dst & UINT32_MAX) + dma_len > DMADAR_BOUNDARY_ADDR ||
(dst + dma_len > DMA_DST_LIMIT) || (dst + dma_len > DMA_DST_LIMIT) ||
(dst & DMA_FRACTION_MASK)) { (dst & DMA_FRACTION_MASK)) {
ERROR("BL2: DMA - destination address invalid (0x%lx), " ERROR("BL2: DMA - dest address invalid (0x%lx), len=(0x%x)\n",
"length (0x%x)\n", dst, dma_len); dst, dma_len);
panic(); panic();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment