Commit 174a13aa authored by Lars Poeschel's avatar Lars Poeschel Committed by Samuel Ortiz

i2c: Add viperboard i2c master driver

This adds the mfd cell to use the i2c part of the Nano River Technologies
viperboard as i2c master.
Signed-off-by: default avatarLars Poeschel <poeschel@lemonage.de>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 9d5b72de
...@@ -818,6 +818,16 @@ config I2C_TINY_USB ...@@ -818,6 +818,16 @@ config I2C_TINY_USB
This driver can also be built as a module. If so, the module This driver can also be built as a module. If so, the module
will be called i2c-tiny-usb. will be called i2c-tiny-usb.
config I2C_VIPERBOARD
tristate "Viperboard I2C master support"
depends on MFD_VIPERBOARD && USB
help
Say yes here to access the I2C part of the Nano River
Technologies Viperboard as I2C master.
See viperboard API specification and Nano
River Tech's viperboard.h for detailed meaning
of the module parameters.
comment "Other I2C/SMBus bus drivers" comment "Other I2C/SMBus bus drivers"
config I2C_ACORN config I2C_ACORN
......
...@@ -79,6 +79,7 @@ obj-$(CONFIG_I2C_PARPORT) += i2c-parport.o ...@@ -79,6 +79,7 @@ obj-$(CONFIG_I2C_PARPORT) += i2c-parport.o
obj-$(CONFIG_I2C_PARPORT_LIGHT) += i2c-parport-light.o obj-$(CONFIG_I2C_PARPORT_LIGHT) += i2c-parport-light.o
obj-$(CONFIG_I2C_TAOS_EVM) += i2c-taos-evm.o obj-$(CONFIG_I2C_TAOS_EVM) += i2c-taos-evm.o
obj-$(CONFIG_I2C_TINY_USB) += i2c-tiny-usb.o obj-$(CONFIG_I2C_TINY_USB) += i2c-tiny-usb.o
obj-$(CONFIG_I2C_VIPERBOARD) += i2c-viperboard.o
# Other I2C/SMBus bus drivers # Other I2C/SMBus bus drivers
obj-$(CONFIG_I2C_ACORN) += i2c-acorn.o obj-$(CONFIG_I2C_ACORN) += i2c-acorn.o
......
This diff is collapsed.
...@@ -41,6 +41,9 @@ static struct mfd_cell vprbrd_devs[] = { ...@@ -41,6 +41,9 @@ static struct mfd_cell vprbrd_devs[] = {
{ {
.name = "viperboard-gpio", .name = "viperboard-gpio",
}, },
{
.name = "viperboard-i2c",
},
}; };
static int vprbrd_probe(struct usb_interface *interface, static int vprbrd_probe(struct usb_interface *interface,
......
...@@ -42,6 +42,8 @@ ...@@ -42,6 +42,8 @@
#define VPRBRD_USB_TYPE_OUT 0x40 #define VPRBRD_USB_TYPE_OUT 0x40
#define VPRBRD_USB_TYPE_IN 0xc0 #define VPRBRD_USB_TYPE_IN 0xc0
#define VPRBRD_USB_TIMEOUT_MS 100 #define VPRBRD_USB_TIMEOUT_MS 100
#define VPRBRD_USB_REQUEST_I2C_FREQ 0xe6
#define VPRBRD_USB_REQUEST_I2C 0xe9
#define VPRBRD_USB_REQUEST_MAJOR 0xea #define VPRBRD_USB_REQUEST_MAJOR 0xea
#define VPRBRD_USB_REQUEST_MINOR 0xeb #define VPRBRD_USB_REQUEST_MINOR 0xeb
#define VPRBRD_USB_REQUEST_GPIOA 0xed #define VPRBRD_USB_REQUEST_GPIOA 0xed
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment