blob: 4a4ffef22f4e38111fb2878a8b31cf509705451b [file] [log] [blame]
Thomas Gleixner2b27bdc2019-05-29 16:57:50 -07001/* SPDX-License-Identifier: GPL-2.0-only */
Kalle Valo2f01a1f2009-04-29 23:33:31 +03002/*
Kalle Valo80301cd2009-06-12 14:17:39 +03003 * This file is part of wl1251
Kalle Valo2f01a1f2009-04-29 23:33:31 +03004 *
5 * Copyright (C) 2008 Nokia Corporation
Kalle Valo2f01a1f2009-04-29 23:33:31 +03006 */
7
8#ifndef __BOOT_H__
9#define __BOOT_H__
10
Kalle Valo13674112009-06-12 14:17:25 +030011#include "wl1251.h"
Kalle Valo2f01a1f2009-04-29 23:33:31 +030012
Kalle Valo80301cd2009-06-12 14:17:39 +030013int wl1251_boot_soft_reset(struct wl1251 *wl);
14int wl1251_boot_init_seq(struct wl1251 *wl);
15int wl1251_boot_run_firmware(struct wl1251 *wl);
16void wl1251_boot_target_enable_interrupts(struct wl1251 *wl);
Kalle Valo0e71bb02009-08-07 13:33:57 +030017int wl1251_boot(struct wl1251 *wl);
Kalle Valo2f01a1f2009-04-29 23:33:31 +030018
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