summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorStephen Warren <swarren@wwwdotorg.org>2015-04-06 20:28:39 -0600
committerMarek Vasut <marex@denx.de>2015-04-14 05:47:59 +0200
commit122426d46e31391480c4b83b1003e4feca24d491 (patch)
tree13e8f29f3420e4454a5cb85bd15701d1d4ca9776 /arch/arm
parent4748cce57345a23dbbc990a28ca9d97952432c4f (diff)
downloadu-boot-imx-122426d46e31391480c4b83b1003e4feca24d491.zip
u-boot-imx-122426d46e31391480c4b83b1003e4feca24d491.tar.gz
u-boot-imx-122426d46e31391480c4b83b1003e4feca24d491.tar.bz2
ARM: bcm2835: use phys_to_bus() for mbox
When we communicate with the VideoCore to perform property mailbox transactions, that is a DMA operation as far as the property buffer is concerned. Use phys_to_bus() on that buffer. Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-bcm283x/mbox.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-bcm283x/mbox.c b/arch/arm/mach-bcm283x/mbox.c
index 3b17a31..1af9be7 100644
--- a/arch/arm/mach-bcm283x/mbox.c
+++ b/arch/arm/mach-bcm283x/mbox.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <asm/io.h>
#include <asm/arch/mbox.h>
+#include <phys2bus.h>
#define TIMEOUT 1000 /* ms */
@@ -110,10 +111,10 @@ int bcm2835_mbox_call_prop(u32 chan, struct bcm2835_mbox_hdr *buffer)
dump_buf(buffer);
#endif
- ret = bcm2835_mbox_call_raw(chan, (u32)buffer, &rbuffer);
+ ret = bcm2835_mbox_call_raw(chan, phys_to_bus((u32)buffer), &rbuffer);
if (ret)
return ret;
- if (rbuffer != (u32)buffer) {
+ if (rbuffer != phys_to_bus((u32)buffer)) {
printf("mbox: Response buffer mismatch\n");
return -1;
}