1 /* linux/include/asm/arch-nuc900/fb.h
3 * Copyright (c) 2008 Nuvoton technology corporation
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
13 * 2008/08/26 vincen.zswan modify this file for LCD.
16 #ifndef __ASM_ARM_FB_H
17 #define __ASM_ARM_FB_H
21 /* LCD Controller Hardware Desc */
23 unsigned int lcd_dccs
;
24 unsigned int lcd_device_ctrl
;
25 unsigned int lcd_mpulcd_cmd
;
26 unsigned int lcd_int_cs
;
27 unsigned int lcd_crtc_size
;
28 unsigned int lcd_crtc_dend
;
29 unsigned int lcd_crtc_hr
;
30 unsigned int lcd_crtc_hsync
;
31 unsigned int lcd_crtc_vr
;
32 unsigned int lcd_va_baddr0
;
33 unsigned int lcd_va_baddr1
;
34 unsigned int lcd_va_fbctrl
;
35 unsigned int lcd_va_scale
;
36 unsigned int lcd_va_test
;
37 unsigned int lcd_va_win
;
38 unsigned int lcd_va_stuff
;
41 /* LCD Display Description */
42 struct nuc900fb_display
{
48 unsigned short height
;
55 unsigned long pixclock
;
56 unsigned short left_margin
;
57 unsigned short right_margin
;
58 unsigned short hsync_len
;
59 unsigned short upper_margin
;
60 unsigned short lower_margin
;
61 unsigned short vsync_len
;
63 /* hardware special register value */
70 struct nuc900fb_mach_info
{
71 struct nuc900fb_display
*displays
;
72 unsigned num_displays
;
73 unsigned default_display
;
74 /* GPIO Setting Info */
76 unsigned gpio_dir_mask
;
78 unsigned gpio_data_mask
;
81 extern void __init
nuc900_fb_set_platdata(struct nuc900fb_mach_info
*);
83 #endif /* __ASM_ARM_FB_H */