[parisc-linux] RTC and FB on 735/125

Steve Pacenka spacenka@lightlink.com
23 Sep 2002 17:04:16 -0400


On Mon, 2002-09-23 at 16:18, Helge Deller wrote:
> On Monday 23 September 2002 20:46, Steve Pacenka wrote:
> > The CRX24 framebuffer also works at 8 bit color, a bit faster.  A minor
> > patch to one file in the kernel is needed (duplicating a few lines that
> > apply to another card's depth selection in the same file) and a kernel
> > boot argument is needed to (optionally) cause the kernel to start video
> > in 8 bit mode instead of the default 32.
> >
> > The hard drive I patched this on is recycled into another type of box,
> > but Helge Deller can guess what's needed just from this description.
> 
> Hi Steve,
> 
> I don't have a CRX24 and can't test anything. 
> If you could post a patch here I could add it to the kernel.

Good day Helge,

I can't test easily either, or generate formal patches, since my 735
w/CRX24 is in a display at our computer recycle shop.


>From memory, after consulting CVS today --

1. In drivers/video/sti/stifb.c

Inside function
   int __init
   stifb_init_fb(struct sti_struct *sti, int force_bpp)


old:

	case S9000_ID_A1439A:	/* CRX24/A1439A */
		bpp = 32;
		break;


new (insert three lines below the case):
	case S9000_ID_A1439A:	/* CRX24/A1439A */
		if (force_bpp == 8 || force_bpp == 32)
			bpp = force_bpp;
		else
			bpp = 32;
		break;


This is copied from HCRX initialization in the same switch.


2. To activate include in the kernel boot arguments (PALO or interrupt
boot with ESC):

   video=stifb:bpp:8

This is also recognized

   video=stifb:bpp:32

but that is the default.


3. To use with X, set the DefaultDepth to 8 in XF86Config-4 (leaving
fbbpp at 32), or

   startx -- -depth 8

Requires a depth 8 subsection in the monitor size section.


Perhaps Yves can test?

-- cheers, SP