mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-29 20:23:01 +02:00
board: rpi-4: Reserve memory correct for GPU
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
#include <arm64/broadcom/bcm2711-rpi-4-b.dts>
|
||||
|
||||
/ {
|
||||
memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x0 0x0 0x0 0x30000000>; /* Reserve top 256MB for GPU */
|
||||
/* Dynamic GPU reservation */
|
||||
gpu-reserved {
|
||||
size = <0x0 0x10000000>; /* 256MB */
|
||||
alignment = <0x0 0x1000000>; /* 16MB aligned */
|
||||
alloc-ranges = <0x0 0x10000000 0x1 0x00000000>; /* Allow anywhere in RAM */
|
||||
no-map;
|
||||
};
|
||||
reserved-memory {
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
ranges;
|
||||
gpu_reserved: gpu@30000000 {
|
||||
reg = <0x0 0x30000000 0x0 0x10000000>;
|
||||
no-map;
|
||||
};
|
||||
|
||||
/* CMA pool */
|
||||
cma-reserved {
|
||||
compatible = "shared-dma-pool";
|
||||
size = <0x0 0x10000000>; /* 256MB */
|
||||
alignment = <0x0 0x1000000>; /* 16MB aligned */
|
||||
linux,cma-default;
|
||||
reusable;
|
||||
};
|
||||
|
||||
panel_disp: panel_disp@1 {
|
||||
|
||||
Reference in New Issue
Block a user