diff options
author | Alexander Stein <alexanders83@web.de> | 2015-07-24 09:22:13 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-08-12 20:47:42 -0400 |
commit | 4342557fad308dd4ca8f9c2e74ea4f2dbddd5685 (patch) | |
tree | 6c7b10c7dd18d461dcd6fbc2449eae3644c9bb77 /arch/arm/mach-bcm283x/include/mach | |
parent | 927753aeb93f100d73b7ed034238633df41891bc (diff) | |
download | u-boot-imx-4342557fad308dd4ca8f9c2e74ea4f2dbddd5685.zip u-boot-imx-4342557fad308dd4ca8f9c2e74ea4f2dbddd5685.tar.gz u-boot-imx-4342557fad308dd4ca8f9c2e74ea4f2dbddd5685.tar.bz2 |
arm/mach-bcm283x/mbox: Flush and invalidate dcache when using fw mailbox
When using dcache the setup data for the mailbox must be actually written
into memory before calling into firmware. Thus flush and invalidate the
memory.
Signed-off-by: Alexander Stein <alexanders83@web.de>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'arch/arm/mach-bcm283x/include/mach')
-rw-r--r-- | arch/arm/mach-bcm283x/include/mach/mbox.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm283x/include/mach/mbox.h b/arch/arm/mach-bcm283x/include/mach/mbox.h index 54d369c..ff959c8 100644 --- a/arch/arm/mach-bcm283x/include/mach/mbox.h +++ b/arch/arm/mach-bcm283x/include/mach/mbox.h @@ -522,6 +522,9 @@ int bcm2835_mbox_call_raw(u32 chan, u32 send, u32 *recv); * a termination value are expected to immediately follow the header in * memory, as required by the property protocol. * + * Each struct bcm2835_mbox_hdr passed must be allocated with + * ALLOC_CACHE_ALIGN_BUFFER(x, y, z) to ensure proper cache flush/invalidate. + * * Returns 0 for success, any other value for error. */ int bcm2835_mbox_call_prop(u32 chan, struct bcm2835_mbox_hdr *buffer); |