Commit 5105bb9a1a6ed4f1982e1b3b6972da8647434bb5
1 parent
4c269ef45e
Exists in
master
Change OPP table to fit AM437X 800Mhz variants
Showing 1 changed file with 6 additions and 4 deletions Inline Diff
recipes-kernel/linux/linux-smarct437x-staging_4.1.bb
1 | SECTION = "kernel" | 1 | SECTION = "kernel" |
2 | DESCRIPTION = "Linux kernel for Embedian SMARC-T437X Computer on Module devices" | 2 | DESCRIPTION = "Linux kernel for Embedian SMARC-T437X Computer on Module devices" |
3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
5 | 5 | ||
6 | inherit kernel | 6 | inherit kernel |
7 | 7 | ||
8 | require recipes-kernel/linux/linux-dtb.inc | 8 | require recipes-kernel/linux/linux-dtb.inc |
9 | require recipes-kernel/linux/setup-defconfig.inc | 9 | require recipes-kernel/linux/setup-defconfig.inc |
10 | require recipes-kernel/linux/cmem.inc | 10 | require recipes-kernel/linux/cmem.inc |
11 | 11 | ||
12 | # Look in the generic major.minor directory for files | 12 | # Look in the generic major.minor directory for files |
13 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.1:" | 13 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.1:" |
14 | 14 | ||
15 | # Pull in the devicetree files into the rootfs | 15 | # Pull in the devicetree files into the rootfs |
16 | RDEPENDS_kernel-base += "kernel-devicetree" | 16 | RDEPENDS_kernel-base += "kernel-devicetree" |
17 | 17 | ||
18 | # Add a run-time dependency for the PM firmware to be installed | 18 | # Add a run-time dependency for the PM firmware to be installed |
19 | # on the target file system. | 19 | # on the target file system. |
20 | RDEPENDS_kernel-base_append_ti33x = " amx3-cm3" | 20 | RDEPENDS_kernel-base_append_ti33x = " amx3-cm3" |
21 | RDEPENDS_kernel-base_append_ti43x = " amx3-cm3" | 21 | RDEPENDS_kernel-base_append_ti43x = " amx3-cm3" |
22 | 22 | ||
23 | # Add a run-time dependency for the VPE VPDMA firmware to be installed | 23 | # Add a run-time dependency for the VPE VPDMA firmware to be installed |
24 | # on the target file system. | 24 | # on the target file system. |
25 | RDEPENDS_kernel-base_append_dra7xx = " vpdma-fw" | 25 | RDEPENDS_kernel-base_append_dra7xx = " vpdma-fw" |
26 | 26 | ||
27 | # Default is to package all dtb files for ti33x devices unless building | 27 | # Default is to package all dtb files for ti33x devices unless building |
28 | # for the specific beaglebone machine. | 28 | # for the specific beaglebone machine. |
29 | KERNEL_DEVICETREE_ti33x = "am335x-smarct335x.dtb am335x-evm.dtb am335x-evmsk.dtb am335x-bone.dtb am335x-boneblack.dtb" | 29 | KERNEL_DEVICETREE_ti33x = "am335x-smarct335x.dtb am335x-evm.dtb am335x-evmsk.dtb am335x-bone.dtb am335x-boneblack.dtb" |
30 | KERNEL_DEVICETREE_ti43x = "am43x-epos-evm.dtb am43x-epos-evm-hdmi.dtb am437x-gp-evm.dtb am437x-gp-evm-hdmi.dtb am437x-sk-evm.dtb am437x-smarct437x.dtb" | 30 | KERNEL_DEVICETREE_ti43x = "am43x-epos-evm.dtb am43x-epos-evm-hdmi.dtb am437x-gp-evm.dtb am437x-gp-evm-hdmi.dtb am437x-sk-evm.dtb am437x-smarct437x.dtb" |
31 | KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb am335x-boneblack.dtb" | 31 | KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb am335x-boneblack.dtb" |
32 | KERNEL_DEVICETREE_omap5-evm = "omap5-uevm.dtb" | 32 | KERNEL_DEVICETREE_omap5-evm = "omap5-uevm.dtb" |
33 | KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb dra7-evm-lcd-lg.dtb dra7-evm-lcd-osd.dtb dra72-evm.dtb dra72-evm-lcd-lg.dtb dra72-evm-lcd-osd.dtb" | 33 | KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb dra7-evm-lcd-lg.dtb dra7-evm-lcd-osd.dtb dra72-evm.dtb dra72-evm-lcd-lg.dtb dra72-evm-lcd-osd.dtb" |
34 | KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-evm.dtb" | 34 | KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-evm.dtb" |
35 | KERNEL_DEVICETREE_omap3 = "omap3-beagle.dtb omap3-beagle-xm.dtb omap3-evm.dtb omap3-evm-37xx.dtb am3517-evm.dtb" | 35 | KERNEL_DEVICETREE_omap3 = "omap3-beagle.dtb omap3-beagle-xm.dtb omap3-evm.dtb omap3-evm-37xx.dtb am3517-evm.dtb" |
36 | KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb" | 36 | KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb" |
37 | KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb" | 37 | KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb" |
38 | KERNEL_DEVICETREE_beagleboard = "omap3-beagle.dtb omap3-beagle-xm.dtb" | 38 | KERNEL_DEVICETREE_beagleboard = "omap3-beagle.dtb omap3-beagle-xm.dtb" |
39 | KERNEL_DEVICETREE_pandaboard = "omap4-panda.dtb omap4-panda-es.dtb" | 39 | KERNEL_DEVICETREE_pandaboard = "omap4-panda.dtb omap4-panda-es.dtb" |
40 | KERNEL_DEVICETREE_k2hk-evm = "k2hk-evm.dtb" | 40 | KERNEL_DEVICETREE_k2hk-evm = "k2hk-evm.dtb" |
41 | KERNEL_DEVICETREE_k2e-evm = "k2e-evm.dtb" | 41 | KERNEL_DEVICETREE_k2e-evm = "k2e-evm.dtb" |
42 | KERNEL_DEVICETREE_k2l-evm = "k2l-evm.dtb" | 42 | KERNEL_DEVICETREE_k2l-evm = "k2l-evm.dtb" |
43 | 43 | ||
44 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" | 44 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" |
45 | 45 | ||
46 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|omap3|omap4|keystone|smarct335x|smarct437x" | 46 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|omap3|omap4|keystone|smarct335x|smarct437x" |
47 | 47 | ||
48 | S = "${WORKDIR}/git" | 48 | S = "${WORKDIR}/git" |
49 | 49 | ||
50 | # For 4.1y Kernel and running at 1Ghz | 50 | # For 4.1y Kernel and running at 1Ghz |
51 | BRANCH = "smarct4x-processor-sdk-linux-02.00.01" | 51 | # BRANCH = "smarct4x-processor-sdk-linux-02.00.01" |
52 | # BRANCH = "smarct4x-800-processor-sdk-linux-02.00.01" | 52 | # For 4.1y Kernel and running at 800Mhz |
53 | BRANCH = "smarct4x-800-processor-sdk-linux-02.00.01" | ||
53 | 54 | ||
54 | # Corresponds to tag smarct4x-processor-sdk-linux-02.00.01, CPU running at 1Ghz | 55 | # Corresponds to tag smarct4x-processor-sdk-linux-02.00.01, CPU running at 1Ghz |
55 | SRCREV = "9a2fcea53700bf118fc7d98a9db75131f404c5d0" | ||
56 | # Corresponds to tag smarct4x-800-processor-sdk-linux-02.00.01, CPU running at 800Mhz | ||
57 | # SRCREV = "9a2fcea53700bf118fc7d98a9db75131f404c5d0" | 56 | # SRCREV = "9a2fcea53700bf118fc7d98a9db75131f404c5d0" |
57 | |||
58 | # Corresponds to tag smarct4x-800-processor-sdk-linux-02.00.01, CPU running at 800Mhz | ||
59 | SRCREV = "966328fc05582f1e092ec6688445bbc4ea5b0b90" | ||
58 | PV = "4.1.13+git${SRCPV}" | 60 | PV = "4.1.13+git${SRCPV}" |
59 | 61 | ||
60 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | 62 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild |
61 | MACHINE_KERNEL_PR_append = "m" | 63 | MACHINE_KERNEL_PR_append = "m" |
62 | PR = "${MACHINE_KERNEL_PR}" | 64 | PR = "${MACHINE_KERNEL_PR}" |
63 | 65 | ||
64 | KERNEL_CONFIG_DIR = "${S}/ti_config_fragments" | 66 | KERNEL_CONFIG_DIR = "${S}/ti_config_fragments" |
65 | 67 | ||
66 | KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${KERNEL_CONFIG_DIR}/am33xx_only.cfg" | 68 | KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${KERNEL_CONFIG_DIR}/am33xx_only.cfg" |
67 | KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${KERNEL_CONFIG_DIR}/am43xx_only.cfg" | 69 | KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${KERNEL_CONFIG_DIR}/am43xx_only.cfg" |
68 | KERNEL_CONFIG_FRAGMENTS_append_dra7xx = " ${KERNEL_CONFIG_DIR}/dra7_only.cfg" | 70 | KERNEL_CONFIG_FRAGMENTS_append_dra7xx = " ${KERNEL_CONFIG_DIR}/dra7_only.cfg" |
69 | 71 | ||
70 | MULTI_CONFIG_BASE_SUFFIX = "" | 72 | MULTI_CONFIG_BASE_SUFFIX = "" |
71 | 73 | ||
72 | SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${BRANCH} \ | 74 | SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${BRANCH} \ |
73 | file://defconfig \ | 75 | file://defconfig \ |
74 | " | 76 | " |
75 | 77 | ||
76 | # Add append for SDK-02.00.00.00 specific changes not in mainline | 78 | # Add append for SDK-02.00.00.00 specific changes not in mainline |
77 | MACHINE_KERNEL_PR_append = "-smarc2" | 79 | MACHINE_KERNEL_PR_append = "-smarc2" |
78 | 80 | ||
79 | EXTRAPATHS_prepend := "${THISDIR}/${P}:" | 81 | EXTRAPATHS_prepend := "${THISDIR}/${P}:" |
80 | 82 | ||
81 | require copy-defconfig.inc | 83 | require copy-defconfig.inc |
82 | 84 | ||
83 | KERNEL_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}" | 85 | KERNEL_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}" |
84 | 86 | ||
85 | kernel_do_configure_prepend() { | 87 | kernel_do_configure_prepend() { |
86 | if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ] | 88 | if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ] |
87 | then | 89 | then |
88 | echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion | 90 | echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion |
89 | echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion | 91 | echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion |
90 | fi | 92 | fi |