diff options
author | Denys Dmytriyenko <denys@ti.com> | 2016-12-09 05:03:35 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2016-12-09 17:26:14 -0500 |
commit | 845092ef8e983ee696f87af439ff3a16b2e258ab (patch) | |
tree | 010f0c468aff2092856a9731e6442d3ca23ee102 /recipes-kernel | |
parent | 07b8724fbec124ee9c4608d7bf45e97c38ed5b1c (diff) | |
download | meta-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.inc | 6 | ||||
-rw-r--r-- | recipes-kernel/linux/files/dra7xx/cmem-dra71x.dtsi | 29 |
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 @@ | |||
4 | CMEM_MACHINE = "${MACHINE}" | 4 | CMEM_MACHINE = "${MACHINE}" |
5 | CMEM_MACHINE_am57xx-evm = "am571x am572x" | 5 | CMEM_MACHINE_am57xx-evm = "am571x am572x" |
6 | CMEM_MACHINE_am57xx-hs-evm = "am571x am572x" | 6 | CMEM_MACHINE_am57xx-hs-evm = "am571x am572x" |
7 | CMEM_MACHINE_dra7xx-evm = "dra72x dra74x" | 7 | CMEM_MACHINE_dra7xx-evm = "dra71x dra72x dra74x" |
8 | CMEM_MACHINE_dra7xx-hs-evm = "dra72x dra74x" | 8 | CMEM_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 |
11 | CMEM_DTSI = "cmem.dtsi" | 11 | CMEM_DTSI = "cmem.dtsi" |
12 | CMEM_DTSI_am571x = "cmem-am571x.dtsi" | 12 | CMEM_DTSI_am571x = "cmem-am571x.dtsi" |
13 | CMEM_DTSI_dra71x = "cmem-dra71x.dtsi" | ||
13 | CMEM_DTSI_dra72x = "cmem-dra72x.dtsi" | 14 | CMEM_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}" | |||
17 | CMEM_DEVICETREE_am571x = "am571x-idk.dtb am571x-idk-lcd-osd.dtb am571x-idk-lcd-osd101t2587.dtb" | 18 | CMEM_DEVICETREE_am571x = "am571x-idk.dtb am571x-idk-lcd-osd.dtb am571x-idk-lcd-osd101t2587.dtb" |
18 | CMEM_DEVICETREE_am572x = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am572x-idk.dtb \ | 19 | CMEM_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" |
21 | CMEM_DEVICETREE_dra71x = "dra71-evm.dtb dra71-evm-lcd-auo-g101evn01.0.dtb" | ||
20 | CMEM_DEVICETREE_dra72x = "dra72-evm.dtb dra72-evm-lcd-lg.dtb dra72-evm-lcd-osd.dtb dra72-evm-lcd-osd101t2587.dtb \ | 22 | CMEM_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" |
22 | CMEM_DEVICETREE_dra74x = "dra7-evm.dtb dra7-evm-lcd-lg.dtb dra7-evm-lcd-osd.dtb dra7-evm-lcd-osd101t2587.dtb" | 24 | CMEM_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 | }; | ||