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:16 -0500 |
| commit | b2187f74dae9da6a77c4261270cf16b28981c7d2 (patch) | |
| tree | 2562edbd335ea3c0af6cf92afb6df2ab2d524ba5 | |
| parent | dca01b6974474534c22245d1935b98491b001d73 (diff) | |
| download | meta-ti-b2187f74dae9da6a77c4261270cf16b28981c7d2.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 | }; | ||
