diff options
Diffstat (limited to 'recipes-kernel')
-rw-r--r-- | recipes-kernel/linux/cmem.inc | 9 | ||||
-rw-r--r-- | recipes-kernel/linux/files/dra7xx/cmem-am572idk.dtsi | 40 |
2 files changed, 45 insertions, 4 deletions
diff --git a/recipes-kernel/linux/cmem.inc b/recipes-kernel/linux/cmem.inc index 8bd643f4..23e48f12 100644 --- a/recipes-kernel/linux/cmem.inc +++ b/recipes-kernel/linux/cmem.inc | |||
@@ -2,14 +2,15 @@ | |||
2 | # | 2 | # |
3 | # Use these for temporary overrides | 3 | # Use these for temporary overrides |
4 | CMEM_MACHINE = "${MACHINE}" | 4 | CMEM_MACHINE = "${MACHINE}" |
5 | CMEM_MACHINE_am57xx-evm = "am571x am572x am574x" | 5 | CMEM_MACHINE_am57xx-evm = "am571x am572x am572idk am574x" |
6 | CMEM_MACHINE_am57xx-hs-evm = "am571x am572x am574x" | 6 | CMEM_MACHINE_am57xx-hs-evm = "am571x am572x am572idk am574x" |
7 | CMEM_MACHINE_dra7xx-evm = "dra71x dra72x dra74x dra76x" | 7 | CMEM_MACHINE_dra7xx-evm = "dra71x dra72x dra74x dra76x" |
8 | CMEM_MACHINE_dra7xx-hs-evm = "dra71x dra72x dra74x dra76x" | 8 | CMEM_MACHINE_dra7xx-hs-evm = "dra71x dra72x dra74x dra76x" |
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_am572idk = "cmem-am572idk.dtsi" | ||
13 | CMEM_DTSI_am574x = "cmem-am574x.dtsi" | 14 | CMEM_DTSI_am574x = "cmem-am574x.dtsi" |
14 | CMEM_DTSI_dra71x = "cmem-dra71x.dtsi" | 15 | CMEM_DTSI_dra71x = "cmem-dra71x.dtsi" |
15 | CMEM_DTSI_dra72x = "cmem-dra72x.dtsi" | 16 | CMEM_DTSI_dra72x = "cmem-dra72x.dtsi" |
@@ -18,8 +19,8 @@ CMEM_DTSI_dra76x = "cmem-dra76x.dtsi" | |||
18 | # Split device trees between variants | 19 | # Split device trees between variants |
19 | CMEM_DEVICETREE = "${KERNEL_DEVICETREE}" | 20 | CMEM_DEVICETREE = "${KERNEL_DEVICETREE}" |
20 | CMEM_DEVICETREE_am571x = "am571x-idk.dtb am571x-idk-lcd-osd101t2045.dtb am571x-idk-lcd-osd101t2587.dtb" | 21 | CMEM_DEVICETREE_am571x = "am571x-idk.dtb am571x-idk-lcd-osd101t2045.dtb am571x-idk-lcd-osd101t2587.dtb" |
21 | CMEM_DEVICETREE_am572x = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revc.dtb \ | 22 | CMEM_DEVICETREE_am572x = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revc.dtb" |
22 | am572x-idk.dtb am572x-idk-lcd-osd101t2045.dtb am572x-idk-lcd-osd101t2587.dtb" | 23 | CMEM_DEVICETREE_am572idk = "am572x-idk.dtb am572x-idk-lcd-osd101t2045.dtb am572x-idk-lcd-osd101t2587.dtb" |
23 | CMEM_DEVICETREE_am574x = "am574x-idk.dtb am574x-idk-lcd-osd101t2587.dtb" | 24 | CMEM_DEVICETREE_am574x = "am574x-idk.dtb am574x-idk-lcd-osd101t2587.dtb" |
24 | CMEM_DEVICETREE_dra71x = "dra71-evm.dtb" | 25 | CMEM_DEVICETREE_dra71x = "dra71-evm.dtb" |
25 | CMEM_DEVICETREE_dra72x = "dra72-evm.dtb dra72-evm-lcd-osd101t2045.dtb dra72-evm-lcd-osd101t2587.dtb \ | 26 | CMEM_DEVICETREE_dra72x = "dra72-evm.dtb dra72-evm-lcd-osd101t2045.dtb dra72-evm-lcd-osd101t2587.dtb \ |
diff --git a/recipes-kernel/linux/files/dra7xx/cmem-am572idk.dtsi b/recipes-kernel/linux/files/dra7xx/cmem-am572idk.dtsi new file mode 100644 index 00000000..6c39e22c --- /dev/null +++ b/recipes-kernel/linux/files/dra7xx/cmem-am572idk.dtsi | |||
@@ -0,0 +1,40 @@ | |||
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 0x20000000>; | ||
9 | no-map; | ||
10 | status = "okay"; | ||
11 | }; | ||
12 | |||
13 | cmem_block_mem_1_ocmc3: cmem_block_mem@40500000 { | ||
14 | reg = <0x0 0x40500000 0x0 0x100000>; | ||
15 | no-map; | ||
16 | status = "okay"; | ||
17 | }; | ||
18 | }; | ||
19 | |||
20 | cmem { | ||
21 | compatible = "ti,cmem"; | ||
22 | #address-cells = <1>; | ||
23 | #size-cells = <0>; | ||
24 | |||
25 | #pool-size-cells = <2>; | ||
26 | |||
27 | status = "okay"; | ||
28 | |||
29 | cmem_block_0: cmem_block@0 { | ||
30 | reg = <0>; | ||
31 | memory-region = <&cmem_block_mem_0>; | ||
32 | cmem-buf-pools = <1 0x0 0x20000000>; | ||
33 | }; | ||
34 | |||
35 | cmem_block_1: cmem_block@1 { | ||
36 | reg = <1>; | ||
37 | memory-region = <&cmem_block_mem_1_ocmc3>; | ||
38 | }; | ||
39 | }; | ||
40 | }; | ||