xref: /OK3568_Linux_fs/kernel/drivers/net/wireless/ti/wl1251/boot.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * This file is part of wl1251
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright (C) 2008 Nokia Corporation
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #ifndef __BOOT_H__
9*4882a593Smuzhiyun #define __BOOT_H__
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #include "wl1251.h"
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun int wl1251_boot_soft_reset(struct wl1251 *wl);
14*4882a593Smuzhiyun int wl1251_boot_init_seq(struct wl1251 *wl);
15*4882a593Smuzhiyun int wl1251_boot_run_firmware(struct wl1251 *wl);
16*4882a593Smuzhiyun void wl1251_boot_target_enable_interrupts(struct wl1251 *wl);
17*4882a593Smuzhiyun int wl1251_boot(struct wl1251 *wl);
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun /* number of times we try to read the INIT interrupt */
20*4882a593Smuzhiyun #define INIT_LOOP 20000
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun /* delay between retries */
23*4882a593Smuzhiyun #define INIT_LOOP_DELAY 50
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun #endif
26