hh.org updates
[hh.org.git] / arch / arm / mach-pxa / palmt3 / palmt3.c
blobcf68bf0c18bf68a335deaf4ff547040be4630aae
1 /*
2 * Hardware definitions for Palm Tungsten T3
4 * Based on Palm LD patch
6 */
8 #include <linux/kernel.h>
9 #include <linux/init.h>
10 #include <asm/mach/arch.h>
11 #include <asm/mach-types.h>
12 #include <asm/arch/hardware.h>
13 #include <asm/mach/map.h>
14 #include <asm/domain.h>
16 #include <linux/device.h>
17 #include <linux/fb.h>
19 #include <asm/arch/pxa-dmabounce.h>
20 #include <asm/arch/pxafb.h>
21 #include <asm/arch/pxa-regs.h>
23 #include "../generic.h"
25 #define DEBUG
27 static void palm_backlight_power(int on)
29 /* TODO */
32 static struct pxafb_mach_info palmt3lcd __initdata = {
33 .pixclock = 80000,
34 .xres = 320,
35 .yres = 480,
36 .bpp = 16,
37 .hsync_len = 4,
38 .left_margin = 31,
39 .right_margin = 3,
40 .vsync_len = 1,
41 .upper_margin = 8,
42 .lower_margin = 7,
43 .sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT,
45 .lccr0 = 0x003008F9,
46 .lccr3 = 0x03700004,
48 .pxafb_backlight_power = palm_backlight_power,
51 static void __init palm_init(void)
53 set_pxa_fb_info(&palmt3lcd);
56 MACHINE_START(T3XSCALE, "Palm Tungsten T3")
57 /* Maintainer: Vladimir Pouzanov <farcaller@gmail.com> */
58 .phys_ram = 0xa0000000,
59 .phys_io = 0x40000000,
60 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
61 .map_io = pxa_map_io,
62 .init_irq = pxa_init_irq,
63 .timer = &pxa_timer,
64 .init_machine = palm_init
65 MACHINE_END