From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Sat, 28 Apr 2012 14:16:39 -0400 Subject: [U-Boot] [PATCH] video: cfb_console: flush dcache for frame buffer in DRAM In-Reply-To: <1335625447-24189-1-git-send-email-agust@denx.de> References: <1335625447-24189-1-git-send-email-agust@denx.de> Message-ID: <201204281416.41005.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Saturday 28 April 2012 11:04:07 Anatolij Gustschin wrote: > +static int cfb_fb_is_in_dram(void) > +{ > + bd_t *bd = gd->bd; > + ulong start, end; > + int i; > + > + for (i = 0; i < CONFIG_NR_DRAM_BANKS; ++i) { > +#if defined(CONFIG_ARM) || defined(CONFIG_AVR32) || defined(COFNIG_NDS32) > || \ +defined(CONFIG_SANDBOX) || defined(CONFIG_X86) > + start = bd->bi_dram[i].start; > + end = bd->bi_dram[i].start + bd->bi_dram[i].size - 1; > +#else > + start = bd->bi_memstart; > + end = bd->bi_memsize; > +#endif > + > + if ((ulong)video_fb_address >= start && > + (ulong)video_fb_address < end) > + return 1; > + } > + return 0; > +} is this necessary ? the cache funcs should take care of this automatically. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: