Permalink
Browse files

firmware: fix hdmi_inx_clear_framebuffers

  • Loading branch information...
enjoy-digital committed Sep 1, 2015
1 parent 743e4a6 commit e025fa05275e377898b40512c3a538fc46c60c11
Showing with 2 additions and 2 deletions.
  1. +1 −1 firmware/lm32/hdmi_in0.c
  2. +1 −1 firmware/lm32/hdmi_in1.c
@@ -137,7 +137,7 @@ void hdmi_in0_clear_framebuffers(void)
int i;
flush_l2_cache();
volatile unsigned int *framebuffer = (unsigned int *)(MAIN_RAM_BASE + HDMI_IN0_FRAMEBUFFERS_BASE);
for(i=0; i<HDMI_IN0_FRAMEBUFFERS_SIZE/4; i++) {
for(i=0; i<(HDMI_IN0_FRAMEBUFFERS_SIZE*FRAMEBUFFER_COUNT)/4; i++) {
framebuffer[i] = 0x80108010; /* black in YCbCr 4:2:2*/
}
}
@@ -138,7 +138,7 @@ void hdmi_in1_clear_framebuffers(void)
int i;
flush_l2_cache();
volatile unsigned int *framebuffer = (unsigned int *)(MAIN_RAM_BASE + HDMI_IN1_FRAMEBUFFERS_BASE);
for(i=0; i<HDMI_IN1_FRAMEBUFFERS_SIZE/4; i++) {
for(i=0; i<(HDMI_IN1_FRAMEBUFFERS_SIZE*FRAMEBUFFER_COUNT)/4; i++) {
framebuffer[i] = 0x80108010; /* black in YCbCr 4:2:2*/
}
}

0 comments on commit e025fa0

Please sign in to comment.