linux-mips
[Top] [All Lists]

Re: framebuffer for au1000 based board.

To: linux-mips@linux-mips.org
Subject: Re: framebuffer for au1000 based board.
From: Maxim Moroz <maxim@kde.ru>
Date: Sat, 03 Sep 2005 08:16:04 +0400
In-reply-to: <e603bacb50427983d7330a58abccb4fa@embeddedalley.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <43190B15.7080301@kde.ru> <e603bacb50427983d7330a58abccb4fa@embeddedalley.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla Thunderbird 1.0.6-1.1am (X11/20050721)
Dan Malek пишет:


On Sep 2, 2005, at 10:31 PM, Maxim Moroz wrote:

Hello, I'm writing framebuffer (800x600@16bpp) for au1000 based board for latest linux-2.6.13 mips kernel.
video memory is located at address 0xbe00_0000.
The problem is that I cannot correctly mmap video memory to userspace.


What happens if you just use /dev/mem and that address?

mmap was taken from au1500 lcd framebuffer driver(code follows)


Bad choice. Neither the Au1000 nor the Au1500 have internal frame
buffers, so in both cases these are going to be board specific devices.
Since the Au1500 has a PCI bridge, I suspect that driver is designed
to work with the 36-bit address from the Au1500 core. You are going
to have to write a custom mmap() function that does the proper mapping
for your board design. Also, the Au1000 had some challenging bus
interface issues to things like graphics controllers and you have to
choose the proper memory controller configuration and hardware
design to even have a chance at this working.

Good Luck, you may have lots of work ahead of you very specific
to your board design :-)


-- Dan

The choice is not bad. au1000 also has 36 bit addresses.
I was toooooo bad using address 0xbe00_0000.
changed to 0x1e00_0000 and got working video.
Thanks all who made such perfect port to au1x00 processors!
Really pleased to work with them... Heh.. Tried blackfin some time ago.
that was horrible :-D

He-he, board is almost working already.

Best Regards,
Maxim Moroz.


<Prev in Thread] Current Thread [Next in Thread>