2019-05-29 16:57:50 -07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2009-04-29 13:33:31 -07:00
|
|
|
/*
|
2009-06-12 04:17:39 -07:00
|
|
|
* This file is part of wl1251
|
2009-04-29 13:33:31 -07:00
|
|
|
*
|
|
|
|
* Copyright (C) 2008 Nokia Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __BOOT_H__
|
|
|
|
#define __BOOT_H__
|
|
|
|
|
2009-06-12 04:17:25 -07:00
|
|
|
#include "wl1251.h"
|
2009-04-29 13:33:31 -07:00
|
|
|
|
2009-06-12 04:17:39 -07:00
|
|
|
int wl1251_boot_soft_reset(struct wl1251 *wl);
|
|
|
|
int wl1251_boot_init_seq(struct wl1251 *wl);
|
|
|
|
int wl1251_boot_run_firmware(struct wl1251 *wl);
|
|
|
|
void wl1251_boot_target_enable_interrupts(struct wl1251 *wl);
|
2009-08-07 03:33:57 -07:00
|
|
|
int wl1251_boot(struct wl1251 *wl);
|
2009-04-29 13:33:31 -07:00
|
|
|
|
|
|
|
/* number of times we try to read the INIT interrupt */
|
|
|
|
#define INIT_LOOP 20000
|
|
|
|
|
|
|
|
/* delay between retries */
|
|
|
|
#define INIT_LOOP_DELAY 50
|
|
|
|
|
|
|
|
#endif
|