18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * This file is part of wl1251 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2008 Nokia Corporation 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __BOOT_H__ 98c2ecf20Sopenharmony_ci#define __BOOT_H__ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#include "wl1251.h" 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciint wl1251_boot_soft_reset(struct wl1251 *wl); 148c2ecf20Sopenharmony_ciint wl1251_boot_init_seq(struct wl1251 *wl); 158c2ecf20Sopenharmony_ciint wl1251_boot_run_firmware(struct wl1251 *wl); 168c2ecf20Sopenharmony_civoid wl1251_boot_target_enable_interrupts(struct wl1251 *wl); 178c2ecf20Sopenharmony_ciint wl1251_boot(struct wl1251 *wl); 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci/* number of times we try to read the INIT interrupt */ 208c2ecf20Sopenharmony_ci#define INIT_LOOP 20000 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci/* delay between retries */ 238c2ecf20Sopenharmony_ci#define INIT_LOOP_DELAY 50 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#endif 26