diff options
author | Alexander Stein <alexanders83@web.de> | 2015-07-24 09:22:12 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-08-12 20:47:42 -0400 |
commit | 927753aeb93f100d73b7ed034238633df41891bc (patch) | |
tree | 7364fc01c6bc707aa5859bb41863bbacde49ee00 /drivers | |
parent | 060f9bf57b1dc1f9260bc1b999d054141b87d7d2 (diff) | |
download | u-boot-imx-927753aeb93f100d73b7ed034238633df41891bc.zip u-boot-imx-927753aeb93f100d73b7ed034238633df41891bc.tar.gz u-boot-imx-927753aeb93f100d73b7ed034238633df41891bc.tar.bz2 |
ARM: bcm283x: Allocate all mailbox buffers cacheline aligned
The mailbox buffer is required to be at least 16 bytes aligned, but for
cache invalidation and/or flush it needs to be cacheline aligned.
Use ALLOC_CACHE_ALIGN_BUFFER for all mailbox buffer allocations.
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 'drivers')
-rw-r--r-- | drivers/video/bcm2835.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c index 1f18231..61d054d 100644 --- a/drivers/video/bcm2835.c +++ b/drivers/video/bcm2835.c @@ -38,8 +38,8 @@ struct msg_setup { void lcd_ctrl_init(void *lcdbase) { - ALLOC_ALIGN_BUFFER(struct msg_query, msg_query, 1, 16); - ALLOC_ALIGN_BUFFER(struct msg_setup, msg_setup, 1, 16); + ALLOC_CACHE_ALIGN_BUFFER(struct msg_query, msg_query, 1); + ALLOC_CACHE_ALIGN_BUFFER(struct msg_setup, msg_setup, 1); int ret; u32 w, h; |