summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-am335x-psp-3.2.bb
blob: f55fc4c4b150ad00b8780059c82a45e483c9c233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
SECTION = "kernel"
DESCRIPTION = "Linux kernel for TI33x devices from PSP"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
COMPATIBLE_MACHINE = "ti33x"

DEFAULT_PREFERENCE = "-1"

inherit kernel
require setup-defconfig.inc

# Stage the power management firmware before building the kernel
DEPENDS += "am33x-cm3"

KERNEL_IMAGETYPE = "uImage"

# The main PR is now using MACHINE_KERNEL_PR, for ti33x see conf/machine/include/ti33x.inc
MACHINE_KERNEL_PR_append = "c+gitr${SRCPV}"

BRANCH = "v3.2-staging"

# SRCREV corresponds to the commit id of tag v3.2_AM335xPSP_04.06.00.10-rc3
SRCREV = "18ce4a630452348b8308b922491130e8ce1e9134"

SRC_URI = "git://arago-project.org/git/projects/linux-am33x.git;protocol=git;branch=${BRANCH} \
           file://defconfig \
           ${KERNEL_PATCHES} \
"

S = "${WORKDIR}/git"

# Allow a layer to easily add to the list of patches or completely override them
KERNEL_PATCHES = "${PATCHES}"

# Add a set of patches that enabled features, fixed bugs or disabled buggy features
# that weren't part of the official PSP release
PATCHES = "file://0001-musb-update-PIO-mode-help-information-in-Kconfig.patch \
               file://0001-am335x_evm_defconfig-turn-off-MUSB-DMA.patch \
               file://0001-mach-omap2-pm33xx-Disable-VT-switch.patch"

# Add Cryptography support early driver patches while working to get the driver
# upstream.
PATCHES += "file://0001-am33x-Add-memory-addresses-for-crypto-modules.patch \
                file://0002-am33x-Add-crypto-device-and-resource-structures.patch \
                file://0003-am33x-Add-crypto-device-and-resource-structure-for-T.patch \
                file://0004-am33x-Add-crypto-drivers-to-Kconfig-and-Makefiles.patch \
                file://0005-am33x-Create-header-file-for-OMAP4-crypto-modules.patch \
                file://0006-am33x-Create-driver-for-TRNG-crypto-module.patch \
                file://0007-am33x-Create-driver-for-AES-crypto-module.patch \
                file://0008-am33x-Create-driver-for-SHA-MD5-crypto-module.patch \
                file://0002-AM335x-OCF-Driver-for-Linux-3.patch \
                file://0001-am335x-Add-crypto-driver-settings-to-defconfig.patch \
                file://0001-am335x-Add-pm_runtime-API-to-crypto-driver.patch \
                file://0002-am335x-Add-suspend-resume-routines-to-crypto-driver.patch \
                file://0001-ARM-AM33xx-hwmod-Convert-SHA0-crypto-device-data-to-.patch \
                file://0002-crypto-omap4-sham-Use-finer-grained-PM-management.patch \
                file://0003-crypto-omap4-sham-Add-suspend-resume-PM-support.patch \
                file://0004-crypto-omap4-sham-Don-t-use-hardcoded-base-address.patch \
                file://0005-ARM-AM33xx-hwmod-Convert-AES0-crypto-device-data-to-.patch \
                file://0006-crypto-omap4-aes-User-finer-grained-PM-management.patch \
                file://0007-crypto-omap4-aes-Add-suspend-resume-PM-support.patch \
                file://0008-crypto-omap4-aes-Don-t-use-hardcoded-base-address.patch \
                file://0009-ARM-AM33xx-hwmod-Convert-RNG-device-data-to-hwmod.patch \
                file://0010-hwrng-omap4-rng-Convert-to-use-pm_runtime-API.patch \
                file://0001-omap4-rng-Remove-check-for-GP-only-device-type-in-RN.patch \
               "

# Add SmartReflex support early driver patches while working to get the driver
# upstream.
PATCHES += "file://0001-am33xx-Add-SmartReflex-support.patch \
            file://0002-am33xx-Enable-CONFIG_AM33XX_SMARTREFLEX.patch \
            file://0002-Smartreflex-limited-to-ES-1.0.patch \
           "

# Add a patch to the omap-serial driver to allow suspend/resume during
# Bluetooth traffic
PATCHES += "file://0001-omap-serial-add-delay-before-suspending.patch"

# Add patch to allow wireless to work properly on EVM-SK 1.2.
PATCHES += "file://0001-am3358-sk-modified-WLAN-enable-and-irq-to-match-boar.patch"

# Add CPU utilization patch for WLAN
PATCHES += "file://0001-am335xevm-using-edge-triggered-interrupts-for-WLAN.patch"

# Add patch to enable pullup on WLAN enable
PATCHES += "file://0001-am335x-enable-pullup-on-the-WLAN-enable-pin-fo.patch"

# Update SPI flash layout. Increase space allocated for u-boot
PATCHES += "file://0001-ARM-OMAP2-AM335x-Update-SPI-flash-layout.patch"

# Copy the am33x-cm3 firmware if it is available
do_configure_append() {
    if [ -e "${STAGING_DIR_HOST}/${base_libdir}/firmware/am335x-pm-firmware.bin" ]
    then
        cp "${STAGING_DIR_HOST}/${base_libdir}/firmware/am335x-pm-firmware.bin" "${S}/firmware"
    fi
}