LIB := $(obj)libvideo.a
-COBJS-y += ati_radeon_fb.o
+COBJS-$(CONFIG_ATI_RADEON_FB) += ati_radeon_fb.o
COBJS-$(CONFIG_ATMEL_LCD) += atmel_lcdfb.o
-COBJS-y += cfb_console.o
-COBJS-y += ct69000.o
-COBJS-y += mb862xx.o
-COBJS-y += sed13806.o
-COBJS-y += sed156x.o
-COBJS-y += sm501.o
-COBJS-y += smiLynxEM.o
+COBJS-$(CONFIG_CFB_CONSOLE) += cfb_console.o
+COBJS-$(CONFIG_VIDEO_CT69000) += ct69000.o
+COBJS-$(CONFIG_VIDEO_MB862xx) += mb862xx.o
+COBJS-$(CONFIG_VIDEO_SED13806) += sed13806.o
+COBJS-$(CONFIG_SED156X) += sed156x.o
+COBJS-$(CONFIG_VIDEO_SM501) += sm501.o
+COBJS-$(CONFIG_VIDEO_SMI_LYNXEM) += smiLynxEM.o
COBJS-y += videomodes.o
COBJS := $(COBJS-y)
#include <common.h>
-#ifdef CONFIG_ATI_RADEON_FB
-
#include <command.h>
#include <pci.h>
#include <asm/processor.h>
OUTREG(PALETTE_INDEX, index);
OUTREG(PALETTE_DATA, (r << 16) | (g << 8) | b);
}
-#endif
#include <common.h>
-#ifdef CONFIG_CFB_CONSOLE
-
#include <malloc.h>
/*****************************************************************************/
/* No console dev available */
return 0;
}
-#endif /* CONFIG_CFB_CONSOLE */
#include <video_fb.h>
#include "videomodes.h"
-#ifdef CONFIG_VIDEO_CT69000
-
/* debug */
#undef VGA_DEBUG
#undef VGA_DUMP_REG
out32r (pGD->pciBase + BR08_o, (dim_y << 16) + dim_x); /* start the BITBlt */
video_wait_bitblt (pGD->pciBase + BR04_o);
}
-
-#endif /* CONFIG_CT69000 */
-
#endif /* CONFIG_VIDEO */
#include <common.h>
-#if defined(CONFIG_VIDEO_MB862xx)
-
#include <asm/io.h>
#include <pci.h>
#include <video_fb.h>
DE_WR_FIFO ((height << 16) | width);
de_wait (); /* sync */
}
-#endif /* CONFIG_VIDEO_MB862xx */
#include <common.h>
-#ifdef CONFIG_VIDEO_SED13806
-
#include <video_fb.h>
#include <sed13806.h>
writeByte (LCD_CURSOR_CNTL, 1);
}
#endif
-#endif
#include <sed156x.h>
-#ifdef CONFIG_SED156X
-
/* configure according to the selected display */
#if defined(CONFIG_SED156X_PG12864Q)
#define LCD_WIDTH 128
sed156x_sync();
sed156x_cmd_transfer(LCD_ON); /* Turn display ON */
}
-
-#endif /* CONFIG_SED156X */
#include <common.h>
-#ifdef CONFIG_VIDEO_SM501
-
#include <video_fb.h>
#include <sm501.h>
)
{
}
-
-#endif /* CONFIG_VIDEO_SM501 */
#include <common.h>
-#if defined(CONFIG_VIDEO_SMI_LYNXEM)
-
#include <pci.h>
#include <video_fb.h>
#include "videomodes.h"
out8 (SMI_LUT_RGB, b>>2); /* blue */
udelay (10);
}
-
-#endif /* CONFIG_VIDEO_SMI_LYNXEM */