diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2016-11-04 14:44:22 -0700 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2016-12-15 10:41:50 -0800 |
commit | 644b213ccced83495eb54dd48764f7e963bcc1c0 (patch) | |
tree | a039e2eb64f516db1032acf36bd89607a3ea8d7d /arch/xtensa | |
parent | 9d2ffe5c62554f2795859bb661eb138759eee980 (diff) | |
download | op-kernel-dev-644b213ccced83495eb54dd48764f7e963bcc1c0.zip op-kernel-dev-644b213ccced83495eb54dd48764f7e963bcc1c0.tar.gz |
xtensa: configure shared DMA pool reservation in kc705 DTS
Add example 64MByte long reservation in the first 512MBytes of physical
memory used as shared DMA pool.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/boot/dts/kc705.dts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/xtensa/boot/dts/kc705.dts b/arch/xtensa/boot/dts/kc705.dts index b1f4ee8..6106bdc 100644 --- a/arch/xtensa/boot/dts/kc705.dts +++ b/arch/xtensa/boot/dts/kc705.dts @@ -11,4 +11,20 @@ device_type = "memory"; reg = <0x00000000 0x38000000>; }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + /* global autoconfigured region for contiguous allocations */ + linux,cma { + compatible = "shared-dma-pool"; + reusable; + size = <0x04000000>; + alignment = <0x2000>; + alloc-ranges = <0x00000000 0x20000000>; + linux,cma-default; + }; + }; }; |