ODOROID-C4/N2: arm64/dts: add 'clear-map' flag to clean up the memory on booting

drivers/base/dma-contiguous.c:
	...
	#ifdef CONFIG_AMLOGIC_CMA
		if (of_get_flat_dt_prop(node, "clear-map", NULL))
			cma_init_clear(cma, 1);
	#endif
	...

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I59cf826e35ae2cc9a6d0bcd8d76c2466cc3e1554
This commit is contained in:
Dongjin Kim
2019-12-09 14:17:28 +09:00
parent 05d2e651d4
commit 81cee15f5f
2 changed files with 4 additions and 0 deletions

View File

@@ -55,6 +55,7 @@
size = <0x0 0x400000>;
alignment = <0x0 0x400000>;
alloc-ranges = <0x0 0x05000000 0x0 0x400000>;
clear-map;
};
secos_reserved:linux,secos {
@@ -115,6 +116,7 @@
size = <0x0 0x13400000>;
alignment = <0x0 0x400000>;
linux,contiguous-region;
clear-map;
};
/* codec shared reserved */
codec_mm_reserved:linux,codec_mm_reserved {

View File

@@ -46,6 +46,7 @@
size = <0x0 0x400000>;
alignment = <0x0 0x400000>;
alloc-ranges = <0x0 0x05000000 0x0 0x400000>;
clear-map;
};
secos_reserved:linux,secos {
@@ -104,6 +105,7 @@
size = <0x0 0x13400000>;
alignment = <0x0 0x400000>;
linux,contiguous-region;
clear-map;
};
/* codec shared reserved */
codec_mm_reserved:linux,codec_mm_reserved {