Author: kan
Date: Fri Dec 23 19:30:14 2016
New Revision: 310486
URL: https://svnweb.freebsd.org/changeset/base/310486

Log:
  Pass memattrs to fb device so that user mappings can inherit them
  
  Reviewed by:  jmcneill

Modified:
  head/sys/mips/ingenic/jz4780_lcd.c

Modified: head/sys/mips/ingenic/jz4780_lcd.c
==============================================================================
--- head/sys/mips/ingenic/jz4780_lcd.c  Fri Dec 23 19:28:15 2016        
(r310485)
+++ head/sys/mips/ingenic/jz4780_lcd.c  Fri Dec 23 19:30:14 2016        
(r310486)
@@ -306,7 +306,10 @@ jzlcd_configure(struct jzlcd_softc *sc, 
        sc->info.fb_stride = mode->hdisplay * (FB_BPP / NBBY);
        sc->info.fb_width = mode->hdisplay;
        sc->info.fb_height = mode->vdisplay;
-
+#ifdef VM_MEMATTR_WRITE_COMBINING
+       sc->info.fb_flags = FB_FLAG_MEMATTR;
+       sc->info.fb_memattr = VM_MEMATTR_WRITE_COMBINING;
+#endif
        sc->fbdev = device_add_child(sc->dev, "fbd", device_get_unit(sc->dev));
        if (sc->fbdev == NULL) {
                device_printf(sc->dev, "failed to add fbd child\n");
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to