~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/video/via/hw.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
732
732
        struct _lcd_ver_scaling_factor lcd_ver_scaling_factor;
733
733
};
734
734
 
735
 
struct pll_config {
736
 
        u16 multiplier;
 
735
struct pll_limit {
 
736
        u16 multiplier_min;
 
737
        u16 multiplier_max;
737
738
        u8 divisor;
738
739
        u8 rshift;
739
740
};
740
741
 
741
 
struct pll_map {
742
 
        u32 clk;
743
 
        struct pll_config cle266_pll;
744
 
        struct pll_config k800_pll;
745
 
        struct pll_config cx700_pll;
746
 
        struct pll_config vx855_pll;
747
 
};
748
 
 
749
742
struct rgbLUT {
750
743
        u8 red;
751
744
        u8 green;
893
886
/* VT3410 chipset*/
894
887
#define VX900_FUNCTION3     0x3410
895
888
 
896
 
#define NUM_TOTAL_PLL_TABLE ARRAY_SIZE(pll_value)
897
 
 
898
889
struct IODATA {
899
890
        u8 Index;
900
891
        u8 Mask;
912
903
        const char *name;
913
904
};
914
905
 
915
 
extern unsigned int viafb_second_virtual_xres;
916
906
extern int viafb_SAMM_ON;
917
907
extern int viafb_dual_fb;
918
908
extern int viafb_LCD2_ON;
938
928
void viafb_unlock_crt(void);
939
929
void viafb_load_fetch_count_reg(int h_addr, int bpp_byte, int set_iga);
940
930
void viafb_write_regx(struct io_reg RegTable[], int ItemNum);
941
 
u32 viafb_get_clk_value(int clk);
942
931
void viafb_load_FIFO_reg(int set_iga, int hor_active, int ver_active);
943
932
void viafb_set_dpa_gfx(int output_interface, struct GFX_DPA_SETTING\
944
933
                                        *p_gfx_dpa_setting);
951
940
void __devinit viafb_init_dac(int set_iga);
952
941
int viafb_get_pixclock(int hres, int vres, int vmode_refresh);
953
942
int viafb_get_refresh(int hres, int vres, u32 float_refresh);
954
 
void viafb_update_device_setting(int hres, int vres, int bpp,
955
 
                           int vmode_refresh, int flag);
 
943
void viafb_update_device_setting(int hres, int vres, int bpp, int flag);
956
944
 
957
945
void viafb_set_iga_path(void);
958
946
void viafb_set_primary_color_register(u8 index, u8 red, u8 green, u8 blue);