[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] VGA controller in Microblaze
Hi Pablo,
On Wed, Mar 25, 2009 at 8:50 PM, <pcolodron@xxxxxxxx> wrote:
> Hi Inaki,
>
> That is what I was checking just right now :) I have found out that although
> it enters in function 'platform_driver_register', it does not enter in
> function 'xilinxfb_platform_probe', which is the one that initialize the
> framebuffer. I don't know why this happens but I'll try to figure it out...
> Thanks a lot for your help Inaki. I'll let you know my progress.
The problem is that you have not registered a platform device - that
is the kernel doesn't know you have a xilinx_fb device in the system,
so it never calls the _probe() function.
To do this, look in arch/microblaze/platform/common - you need to
create a file called xilinxfb.c here. Link it in to the Makefile of
this directory.
This code must create a platform_device structure, and then call
platform_device_register() on that object.
There are other examples in this same directory for other devices -
e.g. xilinx_spi.c. The pattern should be clear.
Regards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/