linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* SM501 Frame Buffer driver on PPC
@ 2005-11-03  1:40 Absolut Hunter
  2005-11-03  4:30 ` Dan Malek
  2005-11-03 11:00 ` Clemens Koller
  0 siblings, 2 replies; 7+ messages in thread
From: Absolut Hunter @ 2005-11-03  1:40 UTC (permalink / raw)
  To: linuxppc-embedded

All,

I am attempting to bring up a SM501 frame buffer driver on our PPC MPC8280
board. Using the Denx Kernel 2.4.25 I see that most of this is already
included in the kernel.

However a few questions:

The TQM5200 Board uses this driver, but I am gathering this is a PCI based
video setup?; Our board uses a local bus memory interface. I.e. we have
setup the SM501 to be in the SH-3/4 Slave mode. 

We have dedicated 32Megs of Video memory to be local only to the SM501, and
mapped it to 0xF8000000 on /CS6, placing the registers at 0xFBE00000

Anyway, I have the UPMA machine setup to communicate with the SM501 and have
verified basic communication with registers, etc.. When using Linux the
kernel Oops's when register_framebuffer is called. I have setup the
voyager.h file to use the correct addresses.

Has anyone used the SM501 driver with this type of NON-Unified memory
architecture? I am guessing this can be confusing to the driver since the
frame buffer registers inside the SM501 need to be using offset ZERO instead
of the 0xF8000000 like the MPC8280 sees.

Thanks,

-Russell McGuire

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: SM501 Frame Buffer driver on PPC
@ 2005-11-03  8:19 Martin Krause
  0 siblings, 0 replies; 7+ messages in thread
From: Martin Krause @ 2005-11-03  8:19 UTC (permalink / raw)
  To: Absolut Hunter, linuxppc-embedded

Hi Russell,

Absolut Hunter wrote on Thursday, November 03, 2005 2:40 AM:=20
> The TQM5200 Board uses this driver, but I am gathering this is a PCI
> based=20
> video setup?; Our board uses a local bus memory interface. I.e. we
> have=20
> setup the SM501 to be in the SH-3/4 Slave mode.

On the TQM5200 the SM501 is connected over the local bus, not over
PCI. The SH-4 Interface is used.

> We have dedicated 32Megs of Video memory to be local only to the
> SM501, and mapped it to 0xF8000000 on /CS6, placing the registers at
> 0xFBE00000=20
>=20
> Anyway, I have the UPMA machine setup to communicate with the SM501
> and have verified basic communication with registers, etc.. When
> using Linux the=20
> kernel Oops's when register_framebuffer is called. I have setup the
> voyager.h file to use the correct addresses.

Yes,

#define FB_PHYSICAL_ADDR	0xF8000000
#define REG_PHYSICAL_ADDR	0xFBE00000=20

should do the job (if the addresses are correct).

> Has anyone used the SM501 driver with this type of NON-Unified memory
> architecture? I am guessing this can be confusing to the driver since
> the=20
> frame buffer registers inside the SM501 need to be using offset ZERO
> instead=20
> of the 0xF8000000 like the MPC8280 sees.

I'm not sure, what you mean with NON-Unified memory. Note that the
TQM5200 uses the memory integrated in the SM501 as framebuffer. So
the SM501 is configured to use internal memory. If you want to use=20
external memory, you have to change the SM501 initialisation. Take
a look at the DRAM Control register of the SM501. Pin GPIO12 is
used during reset to enable or disable "Embedded Memory Control".

Please note, that the framebuffer driver does all register accesses
32-bit wide. Make sure your hardware supports this.

Maybe you have to change endianness (little/big).

Regards,
Martin

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: SM501 Frame Buffer driver on PPC
@ 2005-11-03 14:16 Martin Krause
  2005-11-04  4:34 ` Jarno Manninen
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Krause @ 2005-11-03 14:16 UTC (permalink / raw)
  To: Mark Chambers, Clemens Koller, Absolut Hunter; +Cc: linuxppc-embedded

Mark Chambers wrote on Thursday, November 03, 2005 3:06 PM:=20
> > The endianess on PCI on ppc is still an issue (I haven't
> > investigated this problem further during the last month).
> >=20
>=20
> There really shouldn't be an endian issue on SM501 since registers are
> 32 bit.  What we do have is the 5200 that does byte swapping on PCI
> for no good reason (IMHO)

We experienced a byte swapping issue on the SM501, too, although it
is connected via the local plus bus with the MPC5200 and not via PCI
bus.

In 16 bpp mode bytes appear to be swapped in a very ugly way.
Unfortunately we have no explanation for this, nor a real
workaround.

-- Martin Krause

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-11-04  4:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-03  1:40 SM501 Frame Buffer driver on PPC Absolut Hunter
2005-11-03  4:30 ` Dan Malek
2005-11-03 11:00 ` Clemens Koller
2005-11-03 14:05   ` Mark Chambers
  -- strict thread matches above, loose matches on Subject: below --
2005-11-03  8:19 Martin Krause
2005-11-03 14:16 Martin Krause
2005-11-04  4:34 ` Jarno Manninen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).