dts: TL1 ,change demod 8MB memory to CMA mode. [1/1]

PD#SWPL-2913

Problem:
for tl1 memory usage measurement

Solution:
use cma memory for dtmb instead of reserved

Verify:
verified by t962x2_x301

Change-Id: I7f5381a8458f5bbd9bbffc02c7fd792af92b783d
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
This commit is contained in:
Zhiwei Yuan
2018-12-06 14:18:07 +08:00
committed by Jianxin Pan
parent f396302256
commit b847f74269
3 changed files with 51 additions and 24 deletions

View File

@@ -111,12 +111,21 @@
alignment = <0x400000>;
};
demod_reserved:linux,demod {
compatible = "amlogic, demod-mem";
size = <0x800000>; //8M //100m 0x6400000
alloc-ranges = <0x0 0x30000000>;
//multi-use;
//no-map;
/*demod_reserved:linux,demod {
* compatible = "amlogic, demod-mem";
* size = <0x800000>; //8M //100m 0x6400000
* alloc-ranges = <0x0 0x30000000>;
* //multi-use;
* //no-map;
*};
*/
demod_cma_reserved:linux,demod_cma {
compatible = "shared-dma-pool";
reusable;
/* 8M */
size = <0x0800000>;
alignment = <0x400000>;
};
/*vbi reserved mem*/
@@ -245,9 +254,9 @@
/*move from dvbfe*/
dtv_demod0_mem = <0>; // need move to aml_dtv_demod ?
spectrum = <1>;
cma_flag = <0>;
cma_flag = <1>;
cma_mem_size = <8>;
memory-region = <&demod_reserved>;//<&demod_reserved>;
memory-region = <&demod_cma_reserved>;//<&demod_reserved>;
};
auge_sound {

View File

@@ -111,12 +111,21 @@
alignment = <0x400000>;
};
demod_reserved:linux,demod {
compatible = "amlogic, demod-mem";
size = <0x800000>; //8M //100m 0x6400000
alloc-ranges = <0x0 0x30000000>;
//multi-use;
//no-map;
/*demod_reserved:linux,demod {
* compatible = "amlogic, demod-mem";
* size = <0x800000>; //8M //100m 0x6400000
* alloc-ranges = <0x0 0x30000000>;
* //multi-use;
* //no-map;
*};
*/
demod_cma_reserved:linux,demod_cma {
compatible = "shared-dma-pool";
reusable;
/* 8M */
size = <0x0800000>;
alignment = <0x400000>;
};
/*vbi reserved mem*/
@@ -244,9 +253,9 @@
dtv_demod0_mem = <0>; // need move to aml_dtv_demod ?
spectrum = <1>;
cma_flag = <0>;
cma_flag = <1>;
cma_mem_size = <8>;
memory-region = <&demod_reserved>;//<&demod_reserved>;
memory-region = <&demod_cma_reserved>;//<&demod_reserved>;
};
auge_sound {

View File

@@ -111,12 +111,21 @@
alignment = <0x400000>;
};
demod_reserved:linux,demod {
compatible = "amlogic, demod-mem";
size = <0x800000>; //8M //100m 0x6400000
alloc-ranges = <0x0 0x30000000>;
//multi-use;
//no-map;
/*demod_reserved:linux,demod {
* compatible = "amlogic, demod-mem";
* size = <0x800000>; //8M //100m 0x6400000
* alloc-ranges = <0x0 0x30000000>;
* //multi-use;
* //no-map;
*};
*/
demod_cma_reserved:linux,demod_cma {
compatible = "shared-dma-pool";
reusable;
/* 8M */
size = <0x0800000>;
alignment = <0x400000>;
};
/*vbi reserved mem*/
@@ -244,9 +253,9 @@
dtv_demod0_mem = <0>; // need move to aml_dtv_demod ?
spectrum = <1>;
cma_flag = <0>;
cma_flag = <1>;
cma_mem_size = <8>;
memory-region = <&demod_reserved>;//<&demod_reserved>;
memory-region = <&demod_cma_reserved>;//<&demod_reserved>;
};
auge_sound {