linux-raspberrypi: add ENABLE_CMA options to kernel command line 87/7987/1
authorMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 28 Dec 2016 05:45:15 +0000 (07:45 +0200)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Thu, 29 Dec 2016 18:50:49 +0000 (18:50 +0000)
Add ENABLE_CMA setting that enables required kernel configuration
to allow the dynamic CMA to function.

Change-Id: I0b0ab0fd7fd64454ea3cc9a89344a98897838e11
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bbappend

index cc6cbee..e5cdb2a 100644 (file)
@@ -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"