summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2016-12-09 05:03:35 +0000
committerDenys Dmytriyenko <denys@ti.com>2016-12-09 17:26:14 -0500
commit845092ef8e983ee696f87af439ff3a16b2e258ab (patch)
tree010f0c468aff2092856a9731e6442d3ca23ee102 /recipes-kernel
parent07b8724fbec124ee9c4608d7bf45e97c38ed5b1c (diff)
downloadmeta-ti-845092ef8e983ee696f87af439ff3a16b2e258ab.tar.gz
cmem: add support for memory carveouts of dra71 variant
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/cmem.inc6
-rw-r--r--recipes-kernel/linux/files/dra7xx/cmem-dra71x.dtsi29
2 files changed, 33 insertions, 2 deletions
diff --git a/recipes-kernel/linux/cmem.inc b/recipes-kernel/linux/cmem.inc
index d4edc607..4541185c 100644
--- a/recipes-kernel/linux/cmem.inc
+++ b/recipes-kernel/linux/cmem.inc
@@ -4,12 +4,13 @@
4CMEM_MACHINE = "${MACHINE}" 4CMEM_MACHINE = "${MACHINE}"
5CMEM_MACHINE_am57xx-evm = "am571x am572x" 5CMEM_MACHINE_am57xx-evm = "am571x am572x"
6CMEM_MACHINE_am57xx-hs-evm = "am571x am572x" 6CMEM_MACHINE_am57xx-hs-evm = "am571x am572x"
7CMEM_MACHINE_dra7xx-evm = "dra72x dra74x" 7CMEM_MACHINE_dra7xx-evm = "dra71x dra72x dra74x"
8CMEM_MACHINE_dra7xx-hs-evm = "dra72x dra74x" 8CMEM_MACHINE_dra7xx-hs-evm = "dra71x dra72x dra74x"
9 9
10# Set cmem.dtsi per machine or machine variant 10# Set cmem.dtsi per machine or machine variant
11CMEM_DTSI = "cmem.dtsi" 11CMEM_DTSI = "cmem.dtsi"
12CMEM_DTSI_am571x = "cmem-am571x.dtsi" 12CMEM_DTSI_am571x = "cmem-am571x.dtsi"
13CMEM_DTSI_dra71x = "cmem-dra71x.dtsi"
13CMEM_DTSI_dra72x = "cmem-dra72x.dtsi" 14CMEM_DTSI_dra72x = "cmem-dra72x.dtsi"
14 15
15# Split device trees between variants 16# Split device trees between variants
@@ -17,6 +18,7 @@ CMEM_DEVICETREE = "${KERNEL_DEVICETREE}"
17CMEM_DEVICETREE_am571x = "am571x-idk.dtb am571x-idk-lcd-osd.dtb am571x-idk-lcd-osd101t2587.dtb" 18CMEM_DEVICETREE_am571x = "am571x-idk.dtb am571x-idk-lcd-osd.dtb am571x-idk-lcd-osd101t2587.dtb"
18CMEM_DEVICETREE_am572x = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am572x-idk.dtb \ 19CMEM_DEVICETREE_am572x = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am572x-idk.dtb \
19 am572x-idk-lcd-osd.dtb am572x-idk-lcd-osd101t2587.dtb" 20 am572x-idk-lcd-osd.dtb am572x-idk-lcd-osd101t2587.dtb"
21CMEM_DEVICETREE_dra71x = "dra71-evm.dtb dra71-evm-lcd-auo-g101evn01.0.dtb"
20CMEM_DEVICETREE_dra72x = "dra72-evm.dtb dra72-evm-lcd-lg.dtb dra72-evm-lcd-osd.dtb dra72-evm-lcd-osd101t2587.dtb \ 22CMEM_DEVICETREE_dra72x = "dra72-evm.dtb dra72-evm-lcd-lg.dtb dra72-evm-lcd-osd.dtb dra72-evm-lcd-osd101t2587.dtb \
21 dra72-evm-revc.dtb dra72-evm-revc-lcd-osd101t2045.dtb dra72-evm-revc-lcd-osd101t2587.dtb" 23 dra72-evm-revc.dtb dra72-evm-revc-lcd-osd101t2045.dtb dra72-evm-revc-lcd-osd101t2587.dtb"
22CMEM_DEVICETREE_dra74x = "dra7-evm.dtb dra7-evm-lcd-lg.dtb dra7-evm-lcd-osd.dtb dra7-evm-lcd-osd101t2587.dtb" 24CMEM_DEVICETREE_dra74x = "dra7-evm.dtb dra7-evm-lcd-lg.dtb dra7-evm-lcd-osd.dtb dra7-evm-lcd-osd101t2587.dtb"
diff --git a/recipes-kernel/linux/files/dra7xx/cmem-dra71x.dtsi b/recipes-kernel/linux/files/dra7xx/cmem-dra71x.dtsi
new file mode 100644
index 00000000..ebd61296
--- /dev/null
+++ b/recipes-kernel/linux/files/dra7xx/cmem-dra71x.dtsi
@@ -0,0 +1,29 @@
1/ {
2 reserved-memory {
3 #address-cells = <2>;
4 #size-cells = <2>;
5 ranges;
6
7 cmem_block_mem_0: cmem_block_mem@a0000000 {
8 reg = <0x0 0xa0000000 0x0 0x0c000000>;
9 no-map;
10 status = "okay";
11 };
12 };
13
14 cmem {
15 compatible = "ti,cmem";
16 #address-cells = <1>;
17 #size-cells = <0>;
18
19 #pool-size-cells = <2>;
20
21 status = "okay";
22
23 cmem_block_0: cmem_block@0 {
24 reg = <0>;
25 memory-region = <&cmem_block_mem_0>;
26 cmem-buf-pools = <1 0x0 0x0c000000>;
27 };
28 };
29};