aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/via/hw.c
diff options
context:
space:
mode:
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-03-20 21:46:24 -0400
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-03-21 17:47:22 -0400
commit0523656eed6941a1a0e6b8de36ca73f44d2142c0 (patch)
tree48f44dcb400c515dcc1aea0f6c9d03845aff8131 /drivers/video/via/hw.c
parent486d4c08dd2eb29b26b4a27f8056155a7a639861 (diff)
viafb: kill crt_setting_information
As the iga path is the only remaining information which is also handled by the active devices there is no reason to keep it. Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/via/hw.c')
-rw-r--r--drivers/video/via/hw.c28
1 files changed, 13 insertions, 15 deletions
diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c
index c4d2136ae338..0098270ac425 100644
--- a/drivers/video/via/hw.c
+++ b/drivers/video/via/hw.c
@@ -770,13 +770,14 @@ static u32 get_lcd_devices(int output_interface)
770/*Set IGA path for each device*/ 770/*Set IGA path for each device*/
771void viafb_set_iga_path(void) 771void viafb_set_iga_path(void)
772{ 772{
773 int crt_iga_path = 0;
773 774
774 if (viafb_SAMM_ON == 1) { 775 if (viafb_SAMM_ON == 1) {
775 if (viafb_CRT_ON) { 776 if (viafb_CRT_ON) {
776 if (viafb_primary_dev == CRT_Device) 777 if (viafb_primary_dev == CRT_Device)
777 viaparinfo->crt_setting_info->iga_path = IGA1; 778 crt_iga_path = IGA1;
778 else 779 else
779 viaparinfo->crt_setting_info->iga_path = IGA2; 780 crt_iga_path = IGA2;
780 } 781 }
781 782
782 if (viafb_DVI_ON) { 783 if (viafb_DVI_ON) {
@@ -793,8 +794,7 @@ void viafb_set_iga_path(void)
793 UNICHROME_CLE266)) { 794 UNICHROME_CLE266)) {
794 viaparinfo-> 795 viaparinfo->
795 lvds_setting_info->iga_path = IGA2; 796 lvds_setting_info->iga_path = IGA2;
796 viaparinfo-> 797 crt_iga_path = IGA1;
797 crt_setting_info->iga_path = IGA1;
798 viaparinfo-> 798 viaparinfo->
799 tmds_setting_info->iga_path = IGA1; 799 tmds_setting_info->iga_path = IGA1;
800 } else 800 } else
@@ -814,10 +814,10 @@ void viafb_set_iga_path(void)
814 viafb_SAMM_ON = 0; 814 viafb_SAMM_ON = 0;
815 815
816 if (viafb_CRT_ON && viafb_LCD_ON) { 816 if (viafb_CRT_ON && viafb_LCD_ON) {
817 viaparinfo->crt_setting_info->iga_path = IGA1; 817 crt_iga_path = IGA1;
818 viaparinfo->lvds_setting_info->iga_path = IGA2; 818 viaparinfo->lvds_setting_info->iga_path = IGA2;
819 } else if (viafb_CRT_ON && viafb_DVI_ON) { 819 } else if (viafb_CRT_ON && viafb_DVI_ON) {
820 viaparinfo->crt_setting_info->iga_path = IGA1; 820 crt_iga_path = IGA1;
821 viaparinfo->tmds_setting_info->iga_path = IGA2; 821 viaparinfo->tmds_setting_info->iga_path = IGA2;
822 } else if (viafb_LCD_ON && viafb_DVI_ON) { 822 } else if (viafb_LCD_ON && viafb_DVI_ON) {
823 viaparinfo->tmds_setting_info->iga_path = IGA1; 823 viaparinfo->tmds_setting_info->iga_path = IGA1;
@@ -826,7 +826,7 @@ void viafb_set_iga_path(void)
826 viaparinfo->lvds_setting_info->iga_path = IGA2; 826 viaparinfo->lvds_setting_info->iga_path = IGA2;
827 viaparinfo->lvds_setting_info2->iga_path = IGA2; 827 viaparinfo->lvds_setting_info2->iga_path = IGA2;
828 } else if (viafb_CRT_ON) { 828 } else if (viafb_CRT_ON) {
829 viaparinfo->crt_setting_info->iga_path = IGA1; 829 crt_iga_path = IGA1;
830 } else if (viafb_LCD_ON) { 830 } else if (viafb_LCD_ON) {
831 viaparinfo->lvds_setting_info->iga_path = IGA2; 831 viaparinfo->lvds_setting_info->iga_path = IGA2;
832 } else if (viafb_DVI_ON) { 832 } else if (viafb_DVI_ON) {
@@ -837,7 +837,7 @@ void viafb_set_iga_path(void)
837 viaparinfo->shared->iga1_devices = 0; 837 viaparinfo->shared->iga1_devices = 0;
838 viaparinfo->shared->iga2_devices = 0; 838 viaparinfo->shared->iga2_devices = 0;
839 if (viafb_CRT_ON) { 839 if (viafb_CRT_ON) {
840 if (viaparinfo->crt_setting_info->iga_path == IGA1) 840 if (crt_iga_path == IGA1)
841 viaparinfo->shared->iga1_devices |= VIA_CRT; 841 viaparinfo->shared->iga1_devices |= VIA_CRT;
842 else 842 else
843 viaparinfo->shared->iga2_devices |= VIA_CRT; 843 viaparinfo->shared->iga2_devices |= VIA_CRT;
@@ -2072,8 +2072,6 @@ void __devinit viafb_init_chip_info(int chip_type)
2072 init_tmds_chip_info(); 2072 init_tmds_chip_info();
2073 init_lvds_chip_info(); 2073 init_lvds_chip_info();
2074 2074
2075 viaparinfo->crt_setting_info->iga_path = IGA1;
2076
2077 /*Set IGA path for each device */ 2075 /*Set IGA path for each device */
2078 viafb_set_iga_path(); 2076 viafb_set_iga_path();
2079 2077
@@ -2450,15 +2448,15 @@ int viafb_setmode(struct VideoModeTable *vmode_tbl, int video_bpp,
2450 2448
2451 /* CRT set mode */ 2449 /* CRT set mode */
2452 if (viafb_CRT_ON) { 2450 if (viafb_CRT_ON) {
2453 if (viafb_SAMM_ON && (viaparinfo->crt_setting_info->iga_path == 2451 if (viafb_SAMM_ON &&
2454 IGA2)) { 2452 viaparinfo->shared->iga2_devices & VIA_CRT) {
2455 viafb_fill_crtc_timing(crt_timing1, vmode_tbl1, 2453 viafb_fill_crtc_timing(crt_timing1, vmode_tbl1,
2456 video_bpp1 / 8, 2454 video_bpp1 / 8, IGA2);
2457 viaparinfo->crt_setting_info->iga_path);
2458 } else { 2455 } else {
2459 viafb_fill_crtc_timing(crt_timing, vmode_tbl, 2456 viafb_fill_crtc_timing(crt_timing, vmode_tbl,
2460 video_bpp / 8, 2457 video_bpp / 8,
2461 viaparinfo->crt_setting_info->iga_path); 2458 (viaparinfo->shared->iga1_devices & VIA_CRT)
2459 ? IGA1 : IGA2);
2462 } 2460 }
2463 2461
2464 /* Patch if set_hres is not 8 alignment (1366) to viafb_setmode 2462 /* Patch if set_hres is not 8 alignment (1366) to viafb_setmode