From: Matt Ranostay Date: Wed, 28 Dec 2016 05:45:15 +0000 (+0200) Subject: linux-raspberrypi: add ENABLE_CMA options to kernel command line X-Git-Tag: 3.99.1~237 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F7987%2F1;p=AGL%2Fmeta-agl.git linux-raspberrypi: add ENABLE_CMA options to kernel command line Add ENABLE_CMA setting that enables required kernel configuration to allow the dynamic CMA to function. Change-Id: I0b0ab0fd7fd64454ea3cc9a89344a98897838e11 Signed-off-by: Matt Ranostay --- diff --git a/meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bbappend b/meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bbappend index cc6cbeeb5..e5cdb2aff 100644 --- a/meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bbappend +++ b/meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bbappend @@ -66,6 +66,9 @@ do_configure_append() { CMDLINE_DEBUG = "" CMDLINE_append = " usbhid.mousepoll=0" +# Add options to allow CMA to operate +CMDLINE_append = ' ${@base_conditional("ENABLE_CMA", "1", "coherent_pool=6M smsc95xx.turbo_mode=N", "", d)}' + KERNEL_MODULE_AUTOLOAD += "snd-bcm2835" KERNEL_MODULE_AUTOLOAD += "hid-multitouch"