summaryrefslogtreecommitdiff
path: root/platform/sifive/fu540
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2019-04-11 03:41:46 +0300
committerAnup Patel <anup@brainfault.org>2019-04-24 07:19:46 +0300
commitfbf986ac2a0b926ae97e6796b87e366610d7589e (patch)
tree1d65814b7832b1173c4094e4f91c7da9f491e87a /platform/sifive/fu540
parent97fb8c0e3bcd4d7915ea35020e4d95999d389cd3 (diff)
downloadopensbi-fbf986ac2a0b926ae97e6796b87e366610d7589e.tar.xz
all: Annotate some tables to have clang-format leave them alone
One of the shortcomings of clang-format is that it doesn't allow for aligned define tables, which is used for a number of constants. Add annotation to disable the automatic formatting where needed. Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'platform/sifive/fu540')
-rw-r--r--platform/sifive/fu540/platform.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/sifive/fu540/platform.c b/platform/sifive/fu540/platform.c
index 325beba..9042d60 100644
--- a/platform/sifive/fu540/platform.c
+++ b/platform/sifive/fu540/platform.c
@@ -19,6 +19,8 @@
#include <plat/serial/sifive-uart.h>
#include <plat/sys/clint.h>
+/* clang-format off */
+
#define FU540_HART_COUNT 5
#define FU540_HART_STACK_SIZE 8192
@@ -50,6 +52,8 @@
#define FU540_PRCI_CLKMUXSTATUSREG 0x002C
#define FU540_PRCI_CLKMUX_STATUS_TLCLKSEL (0x1 << 1)
+/* clang-format on */
+
static void fu540_modify_dt(void *fdt)
{
u32 i, size;