Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

intelfb: add preliminary i2c support

[07/07] intelfb: adds an option to enable I2C support in the intelfb driver. Also adds
the intel_i2c.c file to the Makefile.

Signed-off-by: Dennis Munsie <dmunsie@cecropia.com>

authored by

Dennis Munsie and committed by
Dave Airlie
1f6e8449 41c9480a

+21 -3
+18 -2
drivers/video/Kconfig
··· 809 809 depends on FB && EXPERIMENTAL && PCI && X86 810 810 select AGP 811 811 select AGP_INTEL 812 + select I2C_ALGOBIT if FB_INTEL_I2C 813 + select I2C if FB_INTEL_I2C 812 814 select FB_MODE_HELPERS 813 815 select FB_CFB_FILLRECT 814 816 select FB_CFB_COPYAREA ··· 820 818 830M/845G/852GM/855GM/865G chipsets. 821 819 Say Y if you have and plan to use such a board. 822 820 823 - To compile this driver as a module, choose M here: the 821 + If you say Y here and want DDC/I2C support you must first say Y to 822 + "I2C support" and "I2C bit-banging support" in the character devices 823 + section. 824 + 825 + If you say M here then "I2C support" and "I2C bit-banging support" 826 + can be build either as modules or built-in. 827 + 828 + To compile this driver as a module, choose M here: the 824 829 module will be called intelfb. 825 830 826 831 config FB_INTEL_DEBUG 827 - bool "Intel driver Debug Messages" 832 + bool "Intel driver Debug Messages" 828 833 depends on FB_INTEL 829 834 ---help--- 830 835 Say Y here if you want the Intel driver to output all sorts 831 836 of debugging informations to provide to the maintainer when 832 837 something goes wrong. 838 + 839 + config FB_INTEL_I2C 840 + bool "DDC/I2C for Intel framebuffer support" 841 + depends on FB_INTEL 842 + default y 843 + help 844 + Say Y here if you want DDC/I2C support for your on-board Intel graphics. 833 845 834 846 config FB_MATROX 835 847 tristate "Matrox acceleration"
+3 -1
drivers/video/intelfb/Makefile
··· 1 1 obj-$(CONFIG_FB_INTEL) += intelfb.o 2 2 3 - intelfb-objs := intelfbdrv.o intelfbhw.o 3 + intelfb-y := intelfbdrv.o intelfbhw.o 4 + intelfb-$(CONFIG_FB_INTEL_I2C) += intelfb_i2c.o 5 + intelfb-objs := $(intelfb-y) 4 6 5 7 ifdef CONFIG_FB_INTEL_DEBUG 6 8 #EXTRA_CFLAGS += -DDEBUG -DVERBOSE -DREGDUMP