Thomas Gleixner | 2b27bdc | 2019-05-29 16:57:50 -0700 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Kalle Valo | 2f01a1f | 2009-04-29 23:33:31 +0300 | [diff] [blame] | 2 | /* |
Kalle Valo | 80301cd | 2009-06-12 14:17:39 +0300 | [diff] [blame] | 3 | * This file is part of wl1251 |
Kalle Valo | 2f01a1f | 2009-04-29 23:33:31 +0300 | [diff] [blame] | 4 | * |
| 5 | * Copyright (C) 2008 Nokia Corporation |
Kalle Valo | 2f01a1f | 2009-04-29 23:33:31 +0300 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __BOOT_H__ |
| 9 | #define __BOOT_H__ |
| 10 | |
Kalle Valo | 1367411 | 2009-06-12 14:17:25 +0300 | [diff] [blame] | 11 | #include "wl1251.h" |
Kalle Valo | 2f01a1f | 2009-04-29 23:33:31 +0300 | [diff] [blame] | 12 | |
Kalle Valo | 80301cd | 2009-06-12 14:17:39 +0300 | [diff] [blame] | 13 | int wl1251_boot_soft_reset(struct wl1251 *wl); |
| 14 | int wl1251_boot_init_seq(struct wl1251 *wl); |
| 15 | int wl1251_boot_run_firmware(struct wl1251 *wl); |
| 16 | void wl1251_boot_target_enable_interrupts(struct wl1251 *wl); |
Kalle Valo | 0e71bb0 | 2009-08-07 13:33:57 +0300 | [diff] [blame] | 17 | int wl1251_boot(struct wl1251 *wl); |
Kalle Valo | 2f01a1f | 2009-04-29 23:33:31 +0300 | [diff] [blame] | 18 | |
| 19 | /* number of times we try to read the INIT interrupt */ |
| 20 | #define INIT_LOOP 20000 |
| 21 | |
| 22 | /* delay between retries */ |
| 23 | #define INIT_LOOP_DELAY 50 |
| 24 | |
| 25 | #endif |