USB: serial: xr: add support for XR21B1411
authorJohan Hovold <johan@kernel.org>
Mon, 12 Apr 2021 09:55:53 +0000 (11:55 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 13 Apr 2021 16:36:35 +0000 (18:36 +0200)
commit4099d4ba476325100fcafb139fc6c49d0441bc7c
tree1cb6ac53cf0eaa2342bff10001b0b9342bd2c42a
parent607f67183742eeb45e316e89dc7fec64d6288308
USB: serial: xr: add support for XR21B1411

The single-port XR21B1411 is similar to the XR21B142X type but uses
12-bit registers and 16-bit register addresses, the register requests
are different and are directed at the device rather than interface, and
5 and 6-bit words are not supported.

The register layout is very similar to XR21B142X except that most
registers are offset by 0xc00 (corresponding to a channel index of 12 in
the MSB of wIndex). As the device is single-port so that the derived
channel index is 0, the current register accessors can be reused after
simply changing the address width.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/xr_serial.c