diff options
author | Dirk Eibach <dirk.eibach@gdsys.cc> | 2015-10-28 10:46:38 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-11-12 23:04:11 (GMT) |
commit | acff73fda0587b7c23989db1c324e40e16542b44 (patch) | |
tree | d768a1315d7296631293afce1508b68f69c97a8d /board/gdsys/common/osd.c | |
parent | da4833c7bf18a242e83df08aa9af2baa3f191e69 (diff) | |
download | u-boot-acff73fda0587b7c23989db1c324e40e16542b44.tar.xz |
board: gdsys: Enable osd on output only
Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
Diffstat (limited to 'board/gdsys/common/osd.c')
-rw-r--r-- | board/gdsys/common/osd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/board/gdsys/common/osd.c b/board/gdsys/common/osd.c index a774bec..7444bee 100644 --- a/board/gdsys/common/osd.c +++ b/board/gdsys/common/osd.c @@ -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; |