1 --- a/arch/cris/arch-v10/drivers/Kconfig
2 +++ b/arch/cris/arch-v10/drivers/Kconfig
3 @@ -450,11 +450,18 @@ config ETRAX_I2C
4 i2c_arg = I2C_READARG(STA013_READ_ADDR, reg);
5 val = ioctl(fd, _IO(ETRAXI2C_IOCTYPE, I2C_READREG), i2c_arg);
8 + bool "I2C GVC support"
9 + depends on ETRAX_ARCH_V10 && !ETRAX_I2C
10 + select ETRAX_I2C_USES_PB_NOT_PB_I2C
12 + Enables an I2C driver with Geert Vancompernolle improvement.
14 # this is true for most products since PB-I2C seems to be somewhat
16 config ETRAX_I2C_USES_PB_NOT_PB_I2C
17 bool "I2C uses PB not PB-I2C"
18 - depends on ETRAX_I2C
19 + depends on ETRAX_I2C || ETRAX_I2C_GVC
21 Select whether to use the special I2C mode in the PB I/O register or
22 not. This option needs to be selected in order to use some drivers
23 @@ -478,7 +485,7 @@ config ETRAX_I2C_CLK_PORT
25 config ETRAX_I2C_EEPROM
26 bool "I2C EEPROM (non-volatile RAM) support"
27 - depends on ETRAX_I2C
28 + depends on ETRAX_I2C || ETRAX_I2C_GVC
30 Enables I2C EEPROM (non-volatile RAM) on PB0 and PB1 using the I2C
31 driver. Select size option: Probed, 2k, 8k, 16k.
32 --- a/arch/cris/arch-v10/drivers/Makefile
33 +++ b/arch/cris/arch-v10/drivers/Makefile
36 obj-$(CONFIG_ETRAX_AXISFLASHMAP) += axisflashmap.o
37 obj-$(CONFIG_ETRAX_I2C) += i2c.o
38 +obj-$(CONFIG_ETRAX_I2C_GVC) += i2c_gvc.o
39 obj-$(CONFIG_ETRAX_I2C_EEPROM) += eeprom.o
40 obj-$(CONFIG_ETRAX_GPIO) += gpio.o
41 obj-$(CONFIG_ETRAX_DS1302) += ds1302.o