summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/st/cw1200/fwio.h
blob: c287160a492e652bef3acf66edff6a961090f6e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Firmware API for mac80211 ST-Ericsson CW1200 drivers
 *
 * Copyright (c) 2010, ST-Ericsson
 * Author: Dmitry Tarnyagin <dmitry.tarnyagin@lockless.no>
 *
 * Based on:
 * ST-Ericsson UMAC CW1200 driver which is
 * Copyright (c) 2010, ST-Ericsson
 * Author: Ajitpal Singh <ajitpal.singh@stericsson.com>
 */

#ifndef FWIO_H_INCLUDED
#define FWIO_H_INCLUDED

#define BOOTLOADER_CW1X60       "boot_cw1x60.bin"
#define FIRMWARE_CW1X60		"wsm_cw1x60.bin"
#define FIRMWARE_CUT22		"wsm_22.bin"
#define FIRMWARE_CUT20		"wsm_20.bin"
#define FIRMWARE_CUT11		"wsm_11.bin"
#define FIRMWARE_CUT10		"wsm_10.bin"
#define SDD_FILE_CW1X60		"sdd_cw1x60.bin"
#define SDD_FILE_22		"sdd_22.bin"
#define SDD_FILE_20		"sdd_20.bin"
#define SDD_FILE_11		"sdd_11.bin"
#define SDD_FILE_10		"sdd_10.bin"

int cw1200_load_firmware(struct cw1200_common *priv);

/* SDD definitions */
#define SDD_PTA_CFG_ELT_ID 0xEB
#define SDD_REFERENCE_FREQUENCY_ELT_ID 0xc5
u32 cw1200_dpll_from_clk(u16 clk);

#endif