e45d8e534b
libertas: add support for Marvell SD8688 chip Use RxPD->pkt_ptr to locate eth803 header in the packet received since SD8688/v10 firmware allows a gap between RxPD and eth803 header. Set SDIO block size to 256 for CMD53. The maximum block size for SD8688 WLAN function is set to 512 in TPLFE_MAX_BLK_SIZE. But using 512 as block size results upto 2K bytes data (4 blocks) being transferred and causes buffer overflow in firmware. Both changes above are backward compatible with earlier firmware versions for SD8385/SD8686. The SDIO_DEVICE_IDs for SD8688 chip are added in include/linux/mmc/sdio_ids.h Signed-off-by: Kiran Divekar <dkiran@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
31 lines
975 B
C
31 lines
975 B
C
/*
|
|
* SDIO Classes, Interface Types, Manufacturer IDs, etc.
|
|
*/
|
|
|
|
#ifndef MMC_SDIO_IDS_H
|
|
#define MMC_SDIO_IDS_H
|
|
|
|
/*
|
|
* Standard SDIO Function Interfaces
|
|
*/
|
|
|
|
#define SDIO_CLASS_NONE 0x00 /* Not a SDIO standard interface */
|
|
#define SDIO_CLASS_UART 0x01 /* standard UART interface */
|
|
#define SDIO_CLASS_BT_A 0x02 /* Type-A BlueTooth std interface */
|
|
#define SDIO_CLASS_BT_B 0x03 /* Type-B BlueTooth std interface */
|
|
#define SDIO_CLASS_GPS 0x04 /* GPS standard interface */
|
|
#define SDIO_CLASS_CAMERA 0x05 /* Camera standard interface */
|
|
#define SDIO_CLASS_PHS 0x06 /* PHS standard interface */
|
|
#define SDIO_CLASS_WLAN 0x07 /* WLAN interface */
|
|
#define SDIO_CLASS_ATA 0x08 /* Embedded SDIO-ATA std interface */
|
|
|
|
/*
|
|
* Vendors and devices. Sort key: vendor first, device next.
|
|
*/
|
|
|
|
#define SDIO_VENDOR_ID_MARVELL 0x02df
|
|
#define SDIO_DEVICE_ID_MARVELL_LIBERTAS 0x9103
|
|
#define SDIO_DEVICE_ID_MARVELL_8688WLAN 0x9104
|
|
#define SDIO_DEVICE_ID_MARVELL_8688BT 0x9105
|
|
|
|
#endif
|