diff options
author | Lin Huang <hl@rock-chips.com> | 2016-03-31 18:38:48 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-05-10 23:47:57 +0200 |
commit | 03f50720dfe168f5db9cb0324e4963b68ea99204 (patch) | |
tree | f2f53b00968badc3f2bdcf5c96d0b1a7bc1c6ad6 /src/arch/arm64 | |
parent | 5f4f36116d74816e267650efc6e20fac3e514cf5 (diff) |
arch/arm64: add FRAMEBUFFER region macros to memlayout
BRANCH=none
BUG=chrome-os-partner:51537
TEST=build pass
Change-Id: Id3dd3a553370eada1e79708dc71afc2d94d6ce93
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 0949b0d9ec12eff7edb3d7de738833f29507c332
Original-Change-Id: I8052f86d4d846e5d544911c5b9e323285083fb5c
Original-Signed-off-by: Lin Huang <hl@rock-chips.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/340024
Original-Commit-Ready: Vadim Bendebury <vbendeb@google.com>
Original-Tested-by: Shunqian Zheng <zhengsq@rock-chips.com>
Original-Reviewed-by: Vadim Bendebury <vbendeb@google.com>
Reviewed-on: https://review.coreboot.org/14747
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/arch/arm64')
-rw-r--r-- | src/arch/arm64/include/arch/memlayout.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/arm64/include/arch/memlayout.h b/src/arch/arm64/include/arch/memlayout.h index ac09934019..7fce9aa2f8 100644 --- a/src/arch/arm64/include/arch/memlayout.h +++ b/src/arch/arm64/include/arch/memlayout.h @@ -27,6 +27,11 @@ _ = ASSERT(size % 4K == 0, \ "DMA buffer should be multiple of smallest page size (4K)!"); +#define FRAMEBUFFER(addr, size) \ + REGION(framebuffer, addr, size, 1M) \ + _ = ASSERT(size % 1M == 0, \ + "Framebuffer must fit exactly in 1M!"); + /* ARM64 stacks need 16-byte alignment. */ #define STACK(addr, size) \ REGION(stack, addr, size, 16) \ |