Date: Sat, 5 Apr 2014 16:38:27 +0000 (UTC) From: Ruslan Bukin <br@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264150 - head/sys/arm/samsung/exynos Message-ID: <201404051638.s35GcRBv075033@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: br Date: Sat Apr 5 16:38:27 2014 New Revision: 264150 URL: http://svnweb.freebsd.org/changeset/base/264150 Log: Correct the end address of the video frame buffer. This fixes problem that sometimes display suddenly goes blank. Modified: head/sys/arm/samsung/exynos/exynos5_fimd.c Modified: head/sys/arm/samsung/exynos/exynos5_fimd.c ============================================================================== --- head/sys/arm/samsung/exynos/exynos5_fimd.c Sat Apr 5 16:08:13 2014 (r264149) +++ head/sys/arm/samsung/exynos/exynos5_fimd.c Sat Apr 5 16:38:27 2014 (r264150) @@ -278,9 +278,11 @@ fimd_init(struct fimd_softc *sc) reg |= ((panel->height - 1) << LINEVAL_OFFSET); DWRITE4(sc,VIDTCON2,reg); - WRITE4(sc,VIDW00ADD0B0, sc->sc_info.fb_pbase); - WRITE4(sc,VIDW00ADD1B0, sc->sc_info.fb_pbase + sc->sc_info.fb_size); - WRITE4(sc,VIDW00ADD2, panel->width * 2); + reg = sc->sc_info.fb_pbase; + WRITE4(sc, VIDW00ADD0B0, reg); + reg += (sc->sc_info.fb_stride * (sc->sc_info.fb_height + 1)); + WRITE4(sc, VIDW00ADD1B0, reg); + WRITE4(sc, VIDW00ADD2, sc->sc_info.fb_stride); reg = ((panel->width - 1) << OSD_RIGHTBOTX_F_OFFSET); reg |= ((panel->height - 1) << OSD_RIGHTBOTY_F_OFFSET);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404051638.s35GcRBv075033>