diff options
author | Stefan Schmidt <stefan@osg.samsung.com> | 2018-02-14 16:17:48 +0100 |
---|---|---|
committer | Stefan Schmidt <stefan@osg.samsung.com> | 2018-02-15 14:47:45 +0100 |
commit | 60b99945ce21e7acb6da225b48d6c374010272f5 (patch) | |
tree | c99acad6a185f7c2af30c3aed7283939511ae5d3 | |
parent | b2cbd38f5e3b084206f2923e42f864fe8809e160 (diff) | |
download | linux-mcp2210-mcp2210-matthew-king.tar.gz |
TODO listmcp2210-matthew-king
-rw-r--r-- | drivers/spi/mcp2210.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/spi/mcp2210.c b/drivers/spi/mcp2210.c index 4152f8510f32d..f6a49168cddb0 100644 --- a/drivers/spi/mcp2210.c +++ b/drivers/spi/mcp2210.c @@ -106,6 +106,24 @@ static int mcp2210_probe(struct usb_interface *intf, if (!master) goto err_spi; + + /* TODO + * 1) Setup GP0 or GP1 as chip select pins + * 2) Setup GP6 as external interupt pin, if needed + * 3) How to configure power up settings (PID/VID, string descriptors, + * chip settings and SPI transfer paramters-> NVRAM storage) + * -> Userspace libusb based config utility + * 4) Setup GP2 for USB suspend and resume + * 5) Go with USB bus powered only mode for now + */ + + + /* Default SPI config after reset + * 1 Mbit + * 4 bytes transfer per SPI transaction + * GP1 as chip select line + */ + dev->master = master; master->bus_num = -1; master->num_chipselect = 4; |