summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-davinci.c
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2021-06-11 10:01:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-06-11 13:29:57 +0200
commit0a6c0ba5949a200e3c5066f5766ff395d843027b (patch)
tree0e4f5c408035cf70882e7b0d46e8dd9eb4f661ae /drivers/gpio/gpio-davinci.c
parent76a9ddcc018c265337149a11c148ecc29c54d761 (diff)
downloadbarebox-0a6c0ba5949a200e3c5066f5766ff395d843027b.tar.gz
barebox-0a6c0ba5949a200e3c5066f5766ff395d843027b.tar.xz
include: <io.h>: define (read|write)[bwlq]_relaxed
For Linux, It's always correct to substitute any of the read or write _relaxed functions with their non relaxed counterpart. Define functions that do this. Unlike with Linux, they doesn't per se affect performance: barebox writel doesn't imply memory barriers, instead it depends on the architecture support to map IO memory regions as non-bufferable. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Link: https://lore.barebox.org/20210611080155.3555976-1-ahmad@a3f.at Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/gpio/gpio-davinci.c')
-rw-r--r--drivers/gpio/gpio-davinci.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
index 20311d968b..b4f2176606 100644
--- a/drivers/gpio/gpio-davinci.c
+++ b/drivers/gpio/gpio-davinci.c
@@ -13,9 +13,6 @@
#include <io.h>
#include <linux/err.h>
-#define readl_relaxed readl
-#define writel_relaxed writel
-
struct davinci_gpio_regs {
u32 dir;
u32 out_data;