]> git.sur5r.net Git - u-boot/commitdiff
board: gdsys: Enable osd on output only
authorDirk Eibach <dirk.eibach@gdsys.cc>
Wed, 28 Oct 2015 10:46:38 +0000 (11:46 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 12 Nov 2015 23:04:11 +0000 (18:04 -0500)
Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
board/gdsys/common/osd.c

index a774bec3018ac5bdd9150ab199a6ec66b8901ff3..7444bee129fe21db7ed4a7b74a6516bb0dbace67 100644 (file)
@@ -303,6 +303,8 @@ static int osd_print(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                res = osd_write_videomem(screen, y * base_width + x, buf, len);
                if (res < 0)
                        return res;
+
+               OSD_SET_REG(screen, control, 0x0049);
        }
 
        return 0;
@@ -401,8 +403,6 @@ int osd_probe(unsigned screen)
        if (!output_driver_present)
                printf("       no output driver found\n");
 
-       OSD_SET_REG(screen, control, 0x0049);
-
        OSD_SET_REG(screen, xy_size, ((32 - 1) << 8) | (16 - 1));
        OSD_SET_REG(screen, x_pos, 0x007f);
        OSD_SET_REG(screen, y_pos, 0x005f);
@@ -461,6 +461,8 @@ int osd_write(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                        osd_write_videomem(screen, offset, buffer,
                                wp - buffer);
                }
+
+               OSD_SET_REG(screen, control, 0x0049);
        }
 
        return 0;