Skip to content

Commit

Permalink
Fixing wrong ifdef blocks in processor.c
Browse files Browse the repository at this point in the history
  • Loading branch information
fallen committed Nov 15, 2015
1 parent 0cab385 commit 6649c3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/lm32/processor.c
Expand Up @@ -363,12 +363,12 @@ static void edid_set_mode(const struct video_timing *mode)
{
unsigned char edid[128];
int i;
#ifdef CSR_HDMI_OUT0_BASE
#ifdef CSR_HDMI_IN0_BASE
generate_edid(&edid, "OHW", "TV", 2015, "HDMI2USB 1", mode);
for(i=0;i<sizeof(edid);i++)
MMPTR(CSR_HDMI_IN0_EDID_MEM_BASE+4*i) = edid[i];
#endif
#ifdef CSR_HDMI_OUT1_BASE
#ifdef CSR_HDMI_IN1_BASE
generate_edid(&edid, "OHW", "TV", 2015, "HDMI2USB 2", mode);
for(i=0;i<sizeof(edid);i++)
MMPTR(CSR_HDMI_IN1_EDID_MEM_BASE+4*i) = edid[i];
Expand Down

0 comments on commit 6649c3d

Please sign in to comment.