*
* Copyright (c) 2022 Pali Rohár <pali@kernel.org>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
/*
}
static void
-writel(unsigned long value, volatile void *addr)
+writel(u32 value, volatile void *addr)
{
- *(volatile unsigned long *)addr = value;
+ *(volatile u32 *)addr = value;
}
static unsigned char
return *(volatile unsigned short *)addr;
}
-static unsigned long
+static u32
readl(volatile void *addr)
{
- return *(volatile unsigned long *)addr;
+ return *(volatile u32 *)addr;
}
static int