Module Name: src Committed By: tsutsui Date: Wed May 1 08:58:34 UTC 2024
Modified Files: src/sys/arch/hp300/dev: topcat.c Log Message: Add DELAY(9) to make palette register settings stable on 98543 in HP360. Note 98547 (6 bpp variant) on HP370 (68030 33MHz) doesn't need these DELAYs so maybe only some old variants (98543 and 98545?) on 020/030 have such restriction (actually only one nop seems enough.) To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/hp300/dev/topcat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/hp300/dev/topcat.c diff -u src/sys/arch/hp300/dev/topcat.c:1.9 src/sys/arch/hp300/dev/topcat.c:1.10 --- src/sys/arch/hp300/dev/topcat.c:1.9 Mon Apr 29 17:47:27 2024 +++ src/sys/arch/hp300/dev/topcat.c Wed May 1 08:58:34 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: topcat.c,v 1.9 2024/04/29 17:47:27 tsutsui Exp $ */ +/* $NetBSD: topcat.c,v 1.10 2024/05/01 08:58:34 tsutsui Exp $ */ /* $OpenBSD: topcat.c,v 1.15 2006/08/11 18:33:13 miod Exp $ */ /* @@ -474,7 +474,9 @@ topcat_setcolor(struct diofb *fb, u_int tc->rdata = fb->cmap.r[index]; tc->gdata = fb->cmap.g[index]; tc->bdata = fb->cmap.b[index]; + DELAY(1); /* necessary for at least old HP98543 */ tc->cindex = ~index; + DELAY(1); /* necessary for at least old HP98543 */ tc->strobe = 0xff; /* XXX delay required on 68020/30 to avoid bus error */ DELAY(100);