xref: /openbmc/linux/drivers/net/wireless/ti/wl1251/boot.h (revision 2b27bdcc)
12b27bdccSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
290921014SLuciano Coelho /*
390921014SLuciano Coelho  * This file is part of wl1251
490921014SLuciano Coelho  *
590921014SLuciano Coelho  * Copyright (C) 2008 Nokia Corporation
690921014SLuciano Coelho  */
790921014SLuciano Coelho 
890921014SLuciano Coelho #ifndef __BOOT_H__
990921014SLuciano Coelho #define __BOOT_H__
1090921014SLuciano Coelho 
1190921014SLuciano Coelho #include "wl1251.h"
1290921014SLuciano Coelho 
1390921014SLuciano Coelho int wl1251_boot_soft_reset(struct wl1251 *wl);
1490921014SLuciano Coelho int wl1251_boot_init_seq(struct wl1251 *wl);
1590921014SLuciano Coelho int wl1251_boot_run_firmware(struct wl1251 *wl);
1690921014SLuciano Coelho void wl1251_boot_target_enable_interrupts(struct wl1251 *wl);
1790921014SLuciano Coelho int wl1251_boot(struct wl1251 *wl);
1890921014SLuciano Coelho 
1990921014SLuciano Coelho /* number of times we try to read the INIT interrupt */
2090921014SLuciano Coelho #define INIT_LOOP 20000
2190921014SLuciano Coelho 
2290921014SLuciano Coelho /* delay between retries */
2390921014SLuciano Coelho #define INIT_LOOP_DELAY 50
2490921014SLuciano Coelho 
2590921014SLuciano Coelho #endif
26