firmware/br-ext-chip-goke/board/gk7205v200/kernel/patches/00_drivers-i2c-busses-Kconf...

41 lines
1.2 KiB
Diff

--- linux-4.9.37/drivers/i2c/busses/Kconfig 2017-07-12 16:42:41.000000000 +0300
+++ linux-4.9.y/drivers/i2c/busses/Kconfig 2021-06-07 13:01:33.000000000 +0300
@@ -555,6 +555,16 @@
This is a very simple bitbanging I2C driver utilizing the
arch-neutral GPIO API to control the SCL and SDA lines.
+config I2C_GOKE
+ tristate "Goke I2C Controller"
+ depends on ARCH_GOKE
+ help
+ Say Y here to include support for Goke I2C controller in the
+ Goke SoCs.
+
+ This driver can also be built as a module. If so, the module
+ will be called i2c.
+
config I2C_HIGHLANDER
tristate "Highlander FPGA SMBus interface"
depends on SH_HIGHLANDER
@@ -1214,4 +1224,20 @@
This driver can also be built as a module. If so, the module will be
called as i2c-opal.
+config DMA_MSG_MIN_LEN
+ int "Goke I2C support DMA minimum LEN"
+ depends on I2C_GOKE
+ range 1 4090
+ default 5
+ help
+ The i2c_msg minimum LEN of i2c support DMA,range from 1 to 4091
+
+config DMA_MSG_MAX_LEN
+ int "Goke I2C support DMA maximum LEN"
+ depends on I2C_GOKE
+ range DMA_MSG_MIN_LEN 4090
+ default 4090
+ help
+ The i2c_msg maximum LEN of i2c support DMA,range from i2c_msg minimum LEN to 4090,
+ because DMA for 0xFFC one-time largest data transfers;
endmenu