diff options
author | Denys Dmytriyenko <denys@ti.com> | 2016-11-15 04:13:04 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2016-11-15 14:32:28 -0500 |
commit | 108f5ee0ec9cd8336195f51632ee604ce0ba7307 (patch) | |
tree | 945e7c318c40e5b3bba3bb3bc8ff2a0a773170db | |
parent | c5162b67b26bc46b3fc6e773f3afa70d7aee7a53 (diff) | |
download | meta-ti-108f5ee0ec9cd8336195f51632ee604ce0ba7307.tar.gz |
cmem: add special handling for dra72x variant
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
-rw-r--r-- | recipes-kernel/linux/cmem.inc | 7 | ||||
-rw-r--r-- | recipes-kernel/linux/files/dra7xx/cmem-dra72x.dtsi | 29 |
2 files changed, 35 insertions, 1 deletions
diff --git a/recipes-kernel/linux/cmem.inc b/recipes-kernel/linux/cmem.inc index b60909cc..d4edc607 100644 --- a/recipes-kernel/linux/cmem.inc +++ b/recipes-kernel/linux/cmem.inc | |||
@@ -4,17 +4,22 @@ | |||
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" | ||
8 | CMEM_MACHINE_dra7xx-hs-evm = "dra72x dra74x" | ||
7 | 9 | ||
8 | # Set cmem.dtsi per machine or machine variant | 10 | # Set cmem.dtsi per machine or machine variant |
9 | CMEM_DTSI = "cmem.dtsi" | 11 | CMEM_DTSI = "cmem.dtsi" |
10 | CMEM_DTSI_am571x = "cmem-am571x.dtsi" | 12 | CMEM_DTSI_am571x = "cmem-am571x.dtsi" |
13 | CMEM_DTSI_dra72x = "cmem-dra72x.dtsi" | ||
11 | 14 | ||
12 | # Split device trees between variants | 15 | # Split device trees between variants |
13 | CMEM_DEVICETREE = "${KERNEL_DEVICETREE}" | 16 | CMEM_DEVICETREE = "${KERNEL_DEVICETREE}" |
14 | CMEM_DEVICETREE_am571x = "am571x-idk.dtb am571x-idk-lcd-osd.dtb am571x-idk-lcd-osd101t2587.dtb" | 17 | CMEM_DEVICETREE_am571x = "am571x-idk.dtb am571x-idk-lcd-osd.dtb am571x-idk-lcd-osd101t2587.dtb" |
15 | CMEM_DEVICETREE_am572x = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am572x-idk.dtb \ | 18 | CMEM_DEVICETREE_am572x = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am572x-idk.dtb \ |
16 | am572x-idk-lcd-osd.dtb am572x-idk-lcd-osd101t2587.dtb" | 19 | am572x-idk-lcd-osd.dtb am572x-idk-lcd-osd101t2587.dtb" |
17 | 20 | 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" | ||
22 | CMEM_DEVICETREE_dra74x = "dra7-evm.dtb dra7-evm-lcd-lg.dtb dra7-evm-lcd-osd.dtb dra7-evm-lcd-osd101t2587.dtb" | ||
18 | 23 | ||
19 | # Flag to enable CMEM injection | 24 | # Flag to enable CMEM injection |
20 | RESERVE_CMEM ?= "0" | 25 | RESERVE_CMEM ?= "0" |
diff --git a/recipes-kernel/linux/files/dra7xx/cmem-dra72x.dtsi b/recipes-kernel/linux/files/dra7xx/cmem-dra72x.dtsi new file mode 100644 index 00000000..ebd61296 --- /dev/null +++ b/recipes-kernel/linux/files/dra7xx/cmem-dra72x.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 | }; | ||