Skip to contentSkip to conversation

SM501 Frame Buffer driver on PPC

DISCUSSION Absolut Hunter 4 participants 4 messages Nov 3, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 2 lines · Absolut Hunter

Has anyone used the SM501 driver with this type of NON-Unified memory architecture?

What do you mean, non-unified?

Quoted 3 lines

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.

The SM501 PCI driver assumes the addresses are from the PCI
base address, not from zero. Properly using the local bus address
in a similar way should work just fine.

Thanks.

	-- Dan
#2 lore raw
In reply to Absolut Hunter

Hello, Russell,

Quoted 3 lines

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.

I am using the SM501 on PCI on Kernel 2.6 and updated several things in the driver - not really the same contstruction area as you are working on. But if you need some code, please let me know (off-list). I posted some things in the past in this list and on fb-devel, too - just have a look.

The endianess on PCI on ppc is still an issue (I haven't investigated this problem further during the last month).

I hope that I'll find some time to setup a webpage to publish that stuff, soon...

Best regards,

Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany

http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19

#3 lore raw
Quoted 3 lines

The endianess on PCI on ppc is still an issue (I haven't investigated this problem further during the last month).

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)

--Mark Chambers