bpck_usb_firmware: Micro Solutions Backpack USB firmware loader
RFC PATCH 1/1 bpck_usb_firmware: Micro Solutions Backpack USB firmware loader
Add driver for loading firmware into Micro Solutions USB optical and hard drives. Once the firmware is loaded, they are USB mass storage compliant and will be handled by the usb-storage driver.
Signed-off-by Ondrej Zary <[email protected]>
--- drivers/usb/misc/Kconfig | 8 ++ drivers/usb/misc/Makefile | 1 + drivers/usb/misc/bpck_usb_firmware.c | 113 +++++++++++++++++++++++++++ drivers/usb/misc/ezusb.c | 6 -- include/linux/usb/ezusb.h | 3 + 5 files changed, 125 insertions(+), 6 deletions(-) create mode 100644 drivers/usb/misc/bpck_usb_firmware.c
drivers/usb/misc/Kconfig +8 -0
@@ -311,3 +311,11 @@ config USB_ONBOARD_HUB this config will enable the driver and it will automatically match the state of the USB subsystem. If this driver is a module it will be called onboard_usb_hub. + +config USB_BACKPACK_FW + tristate "Micro Solutions Backpack firmware loading support" + select USB_EZUSB_FX2 + help + This driver loads firmware for Micro Solutions Backpack USB optical + and hard drives. Once the firmware is loaded, they're USB mass + storage compliant and thus handled by the usb-storage driver.
drivers/usb/misc/Makefile +1 -0
@@ -34,3 +34,4 @@ obj-$(CONFIG_USB_SISUSBVGA) += sisusbvga/ obj-$(CONFIG_USB_LINK_LAYER_TEST) += lvstest.o obj-$(CONFIG_BRCM_USB_PINMAP) += brcmstb-usb-pinmap.o obj-$(CONFIG_USB_ONBOARD_HUB) += onboard_usb_hub.o +obj-$(CONFIG_USB_BACKPACK_FW) += bpck_usb_firmware.o
drivers/usb/misc/bpck_usb_firmware.c new file +113 -0
113 lines not on this page · raw message
drivers/usb/misc/ezusb.c +0 -6
@@ -124,11 +124,6 @@ int ezusb_fx1_ihex_firmware_download(struct usb_device *dev, }EXPORT_SYMBOL_GPL (ezusb_fx1_ihex_firmware_download); -#if 0 -/* -* Once someone one needs these fx2 functions, uncomment them -* and add them to ezusb.h and all should be good. -*/ static struct ezusb_fx_type ezusb_fx2 = { .cpucs_reg =0xE600 , .max_internal_adress =0x3FFF ,
@@ -146,6 +141,5 @@ int ezusb_fx2_ihex_firmware_download(struct usb_device *dev,return ezusb_ihex_firmware_download (dev, ezusb_fx2, firmware_path); }EXPORT_SYMBOL_GPL (ezusb_fx2_ihex_firmware_download); -#endif MODULE_LICENSE ("GPL" );
include/linux/usb/ezusb.h +3 -0
@@ -5,5 +5,8 @@extern int ezusb_fx1_set_reset (struct usb_device *dev,unsigned char reset_bit);extern int ezusb_fx1_ihex_firmware_download (struct usb_device *dev,const char *firmware_path); +extern int ezusb_fx2_set_reset (struct usb_device *dev,unsigned char reset_bit); +extern int ezusb_fx2_ihex_firmware_download (struct usb_device *dev, +const char *firmware_path);#endif /* __EZUSB_H */
Signature · 1 line
Ondrej Zary