summaryrefslogtreecommitdiff
path: root/board/keymile
diff options
context:
space:
mode:
authorAleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com>2021-01-13 19:20:35 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2021-02-08 11:31:16 +0300
commitb99cc27111be8d0732c3bb7b9f5ad3814904da38 (patch)
tree697031c2f1e50a6024db88b14bd3986580204519 /board/keymile
parent67477bd0ac67ffcc0ef871403968c78e32c480e9 (diff)
downloadu-boot-b99cc27111be8d0732c3bb7b9f5ad3814904da38.tar.xz
board: keymile: common: fix qrio compilation for arm
This patch is fixing qrio driver compilation for ARM architecture: - It includes asm/io.h for in_/out_ access - It use correct names for set/clear_bits as defined in linux/bitops.h Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'board/keymile')
-rw-r--r--board/keymile/common/qrio.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/keymile/common/qrio.c b/board/keymile/common/qrio.c
index 06a4e67881..d4e75f2850 100644
--- a/board/keymile/common/qrio.c
+++ b/board/keymile/common/qrio.c
@@ -5,6 +5,7 @@
*/
#include <common.h>
+#include <asm/io.h>
#include <linux/bitops.h>
#include "common.h"
@@ -129,7 +130,7 @@ void qrio_prst(u8 bit, bool en, bool wden)
void qrio_prstcfg(u8 bit, u8 mode)
{
- u32 prstcfg;
+ unsigned long prstcfg;
u8 i;
void __iomem *qrio_base = (void *)CONFIG_SYS_QRIO_BASE;
@@ -137,9 +138,9 @@ void qrio_prstcfg(u8 bit, u8 mode)
for (i = 0; i < 2; i++) {
if (mode & (1 << i))
- set_bit(2 * bit + i, &prstcfg);
+ __set_bit(2 * bit + i, &prstcfg);
else
- clear_bit(2 * bit + i, &prstcfg);
+ __clear_bit(2 * bit + i, &prstcfg);
}
out_be32(qrio_base + PRSTCFG_OFF, prstcfg);