Skip to content

Commit acd6199

Browse files
wentongwugregkh
authored andcommitted
usb: Add support for Intel LJCA device
Implements the USB part of Intel USB-I2C/GPIO/SPI adapter device named "La Jolla Cove Adapter" (LJCA). The communication between the various LJCA module drivers and the hardware will be muxed/demuxed by this driver. Three modules ( I2C, GPIO, and SPI) are supported currently. Each sub-module of LJCA device is identified by type field within the LJCA message header. The sub-modules of LJCA can use ljca_transfer() to issue a transfer between host and hardware. And ljca_register_event_cb is exported to LJCA sub-module drivers for hardware event subscription. The minimum code in ASL that covers this board is Scope (\_SB.PCI0.DWC3.RHUB.HS01) { Device (GPIO) { Name (_ADR, Zero) Name (_STA, 0x0F) } Device (I2C) { Name (_ADR, One) Name (_STA, 0x0F) } Device (SPI) { Name (_ADR, 0x02) Name (_STA, 0x0F) } } Signed-off-by: Wentong Wu <[email protected]> Reviewed-by: Sakari Ailus <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Tested-by: Hans de Goede <[email protected]> Reviewed-by: Oliver Neukum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent efa33cd commit acd6199

File tree

4 files changed

+1061
-0
lines changed

4 files changed

+1061
-0
lines changed

drivers/usb/misc/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,19 @@ config APPLE_MFI_FASTCHARGE
165165

166166
It is safe to say M here.
167167

168+
config USB_LJCA
169+
tristate "Intel La Jolla Cove Adapter support"
170+
select AUXILIARY_BUS
171+
depends on USB && ACPI
172+
help
173+
This adds support for Intel La Jolla Cove USB-I2C/SPI/GPIO
174+
Master Adapter (LJCA). Additional drivers such as I2C_LJCA,
175+
GPIO_LJCA and SPI_LJCA must be enabled in order to use the
176+
functionality of the device.
177+
178+
This driver can also be built as a module. If so, the module
179+
will be called usb-ljca.
180+
168181
source "drivers/usb/misc/sisusbvga/Kconfig"
169182

170183
config USB_LD

drivers/usb/misc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ obj-$(CONFIG_USB_EMI26) += emi26.o
1111
obj-$(CONFIG_USB_EMI62) += emi62.o
1212
obj-$(CONFIG_USB_EZUSB_FX2) += ezusb.o
1313
obj-$(CONFIG_APPLE_MFI_FASTCHARGE) += apple-mfi-fastcharge.o
14+
obj-$(CONFIG_USB_LJCA) += usb-ljca.o
1415
obj-$(CONFIG_USB_IDMOUSE) += idmouse.o
1516
obj-$(CONFIG_USB_IOWARRIOR) += iowarrior.o
1617
obj-$(CONFIG_USB_ISIGHTFW) += isight_firmware.o

0 commit comments

Comments
 (0)