Re: How to get framebuffer output on x50V

From: Fisherss <fisherssml_at_gmail.com>
Date: Wed, 23 Nov 2005 01:33:30 +0800

It's an older one, but I think it will work with modified code :)

Angel Sánchez Morales wrote:
> I'll try the new file tomorrow (i hope i have time...), the kernel
> tree from your site is up to date, isn't it?
> Also the instructions i have to follow are the ones on your site, i
> only have to compile the kernel and boot linux with haret as usual.
>
> Filipe, if you don't find anyone to contact tell me anything, i'll try
> to search too :)
>
>
> Fisherss wrote:
>>
>>
>> Filipe Cardoso Lana wrote:
>>
>>> well fisherss, have you added to your image on the site ?
>>
>> no I haven't, I haven't recompiled with this code because I can't
>> test it, my one is x50, not x50v.
>>
>>
>>
>>> */Fisherss <fisherssml_at_gmail.com>/* escreveu:
>>>
>>> Hi everyone
>>>
>>> The guy who has got framebuffer output on x50V told me some
>>> details today :)
>>>
>>> To make you kernel image support x50v framebuffer, use the attached
>>> file to replace your aximx30_lcd.c and then recompile you
>>> kernel, you
>>> should get some thing on the LCD.
>>>
>>> NOTE: Set your x50v to mirror mode under WINCE before loading the
>>> kernel image.
>>>
>>>
>>> Fisherss
>>> /*
>>> * LCD driver for Dell Axim X30
>>> *
>>> * Authors: Giuseppe Zompatori
>>> *
>>> * based on previous work, see below:
>>> *
>>> * Machine initialization for Dell Axim X3
>>> *
>>> * Authors: Andrew Zabolotny
>>> *
>>> * For now this is mostly a placeholder file; since I don't own an
>>> Axim X3
>>> * it is supposed the project to be overtaken by somebody else. The
>>> code
>>> * in here is *supposed* to work so that you can at least boot to
>>> the command
>>> * line, but there is no guarantee.
>>> *
>>> * This file is subject to the terms and conditions of the GNU
>>> General Public
>>> * License. See the file COPYING in the main directory of this
>>> archive for
>>> * more details.
>>> */
>>>
>>> #include
>>> #include
>>> #include
>>> #include
>>> #include
>>> #include
>>>
>>> #include
>>> #include
>>> #include
>>> #include
>>> #include "asm/arch/pxa-regs.h"
>>> #include "asm/arch/pxafb.h"
>>>
>>> static int aximx30_lcd_set_power (struct lcd_device *lm, int setp)
>>> {
>>> return 0;
>>> }
>>>
>>> static int aximx30_lcd_get_power (struct lcd_device *lm)
>>> {
>>> return 0;
>>> }
>>>
>>> static struct pxafb_mach_info aximx30_fb_info =
>>> {
>>> .pi xclock = 0, // --
>>> .bpp = 16, // ??
>>> .xres = 480, // PPL + 1
>>> .yres = 640, // LPP + 1
>>> .hsync_len = 64, // HSW + 1
>>> .vsync_len = 5, // VSW + 1
>>> .left_margin = 17, // BLW + 1
>>> .upper_margin = 1, // BFW
>>> .right_margin = 87, // ELW + 1
>>> .lower_margin = 4, // EFW
>>> .sync = 0, // --
>>> .lccr0 = 0x01b008f9, // yes that's ugly, but it's due a limitation
>>> of the
>>> .lccr3 = 0x04f00001 // pxafb driver assuming pxa25x fbs...
>>> };
>>>
>>> struct lcd_properties aximx30_lcd_properties =
>>> {
>>> .owner = THIS_MODULE,
>>> .set_power = aximx30_lcd_set_power,
>>> .get_power = aximx30_lcd_get_power,
>>> /* @@ more here @@ */
>>> };
>>>
>>> static int aximx30_backlight_set_power (struct backlight_device
>>> *bm, int on)
>>> {
>>> return 0;
>>> }
>>>
>>> static int aximx30_backlight_get_power (struct backlight_device
>>> *bm)
>>> {
>>> return 0;
>>> }
>>>
>>> static struct backlight_properties aximx30_backlight_properties =
>>> {
>>> .owner = THIS_MODULE,
>>> .set_power = aximx30_backlight_set_power,
>>> .get_power = aximx30_backlight_get_power,
>>> };
>>>
>>> static struct lcd_device *pxafb_lcd_device;
>>> static struct backlight_device *pxafb_backlight_device;
>>>
>>> static int __init
>>> aximx30_lcd_init (void)
>>> {
>>> // if (! machine_is_x30 ())
>>> // return -ENODEV;
>>>
>>> set_pxa_fb_info(&aximx30_fb_info);
>>> pxafb_lcd_device = lcd_device_register("pxafb", NULL,
>>> &aximx30_lcd_properties);
>>> // if (IS_ERR (pxafb_lcd_device))
>>> // return PTR_ERR (pxafb_lcd_device);
>>> pxafb_backlight_device = backlight_device_register("pxafb", NULL,
>>> &aximx30_backlight_properties);
>>> // if (IS_ERR (pxafb_backlight_device)) {
>>> // lcd_device_unregister (pxafb_lcd_device);
>>> // return PTR_ERR (pxafb_backlight_device);
>>> // }
>>>
>>> return 0;
>>> }
>>>
>>> static void __exit
>>> aximx30_lcd_exit (void)
>>> {
>>> lcd_device_unregister (pxafb_lcd_device);
>>> backlight_device_unregister (pxafb_backlight_device);
>>> }
>>>
>>> module_init (aximx30_lcd_init);
>>> module_exit (aximx30_lcd_exit);
>>>
>>> MODULE_AUTHOR("Giuseppe Zompatori ");
>>> MODULE_DESCRIPTION("Dell Axim X30 Core frambuffer driver");
>>> MODULE_LICENSE("GPL");
>>>
>>> -- _______________________________________________
>>> Aximx50-port mailing list
>>> Aximx50-port_at_handhelds.org
>>> https://www.handhelds.org/mailman/listinfo/aximx50-port
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> Yahoo! Acesso Grátis: Internet rápida e grátis.
>>> Instale o discador agora!
>>> <http://us.rd.yahoo.com/mail/br/tagline/discador/*http://br.acesso.yahoo.com/>
>>
>>
>>
>>
Received on Tue Nov 22 2005 - 12:40:03 EST

This archive was generated by hypermail 2.2.0 : Tue Nov 22 2005 - 12:40:06 EST