dm: x86: video: Add a driver-model driver for ivybridge graphics
[oweals/u-boot.git] / drivers / video / smiLynxEM.c
index 20f9beb0172ad6809d471201a7077f0165bec864..1880cccac2618b816fb650ae0c744acd3a5943c7 100644 (file)
@@ -2,23 +2,7 @@
  * (C) Copyright 1997-2002 ELTEC Elektronik AG
  * Frank Gottschling <fgottschling@eltec.de>
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.        See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /*
@@ -40,8 +24,6 @@
 
 #include <common.h>
 
-#if defined(CONFIG_VIDEO_SMI_LYNXEM)
-
 #include <pci.h>
 #include <video_fb.h>
 #include "videomodes.h"
@@ -149,9 +131,6 @@ static char SMI_PCR [] = {
 };
 static char SMI_MCR[] = {
        0x60, 0x01, 0x61, 0x00,
-#ifdef CONFIG_HMI1001
-       0x62, 0x74, /* Memory type is not configured by pins on HMI1001 */
-#endif
 };
 
 static char SMI_HCR[] = {
@@ -598,7 +577,7 @@ void *video_hw_init (void)
 
        tmp = 0;
 
-       videomode = CFG_DEFAULT_VIDEO_MODE;
+       videomode = CONFIG_SYS_DEFAULT_VIDEO_MODE;
        /* get video mode via environment */
        if ((penv = getenv ("videomode")) != NULL) {
                /* deceide if it is a string */
@@ -617,7 +596,7 @@ void *video_hw_init (void)
                                break;
                }
                if (i == VESA_MODES_COUNT) {
-                       printf ("no VESA Mode found, switching to mode 0x%x ", CFG_DEFAULT_VIDEO_MODE);
+                       printf ("no VESA Mode found, switching to mode 0x%x ", CONFIG_SYS_DEFAULT_VIDEO_MODE);
                        i = 0;
                }
                res_mode =
@@ -671,7 +650,7 @@ void *video_hw_init (void)
                break;
        }
 
-       pGD->isaBase = CFG_ISA_IO;
+       pGD->isaBase = CONFIG_SYS_ISA_IO;
        pGD->pciBase = pci_mem_base;
        pGD->dprBase = (pci_mem_base + 0x400000 + 0x8000);
        pGD->vprBase = (pci_mem_base + 0x400000 + 0xc000);
@@ -854,5 +833,3 @@ void video_set_lut (
        out8 (SMI_LUT_RGB, b>>2);    /* blue */
        udelay (10);
 }
-
-#endif /* CONFIG_VIDEO_SMI_LYNXEM */