btmrvl: add platform specific wakeup interrupt support
On some arm-based platforms, we need to configure platform specific parameters by device tree node and also define our node as a child node of parent SDIO host controller. This patch parses these parameters from device tree. It includes calibration data download to firmware, wakeup pin configured to firmware, and soc specific wake up gpio, which will be set as wakeup interrupt pin. Signed-off-by: Xinming Hu <huxm@marvell.com> Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:

committed by
Marcel Holtmann

szülő
0065d1c5ac
commit
bb7f4f0bce
@@ -62,6 +62,10 @@
|
||||
|
||||
#define FIRMWARE_READY 0xfedc
|
||||
|
||||
struct btmrvl_plt_wake_cfg {
|
||||
int irq_bt;
|
||||
bool wake_by_bt;
|
||||
};
|
||||
|
||||
struct btmrvl_sdio_card_reg {
|
||||
u8 cfg;
|
||||
@@ -97,6 +101,8 @@ struct btmrvl_sdio_card {
|
||||
u16 sd_blksz_fw_dl;
|
||||
u8 rx_unit;
|
||||
struct btmrvl_private *priv;
|
||||
struct device_node *plt_of_node;
|
||||
struct btmrvl_plt_wake_cfg *plt_wake_cfg;
|
||||
};
|
||||
|
||||
struct btmrvl_sdio_device {
|
||||
|
Reference in New Issue
Block a user