190921014SLuciano Coelho /* 290921014SLuciano Coelho * This file is part of wl1251 390921014SLuciano Coelho * 490921014SLuciano Coelho * Copyright (C) 2008 Nokia Corporation 590921014SLuciano Coelho * 690921014SLuciano Coelho * This program is free software; you can redistribute it and/or 790921014SLuciano Coelho * modify it under the terms of the GNU General Public License 890921014SLuciano Coelho * version 2 as published by the Free Software Foundation. 990921014SLuciano Coelho * 1090921014SLuciano Coelho * This program is distributed in the hope that it will be useful, but 1190921014SLuciano Coelho * WITHOUT ANY WARRANTY; without even the implied warranty of 1290921014SLuciano Coelho * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1390921014SLuciano Coelho * General Public License for more details. 1490921014SLuciano Coelho * 1590921014SLuciano Coelho * You should have received a copy of the GNU General Public License 1690921014SLuciano Coelho * along with this program; if not, write to the Free Software 1790921014SLuciano Coelho * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 1890921014SLuciano Coelho * 02110-1301 USA 1990921014SLuciano Coelho * 2090921014SLuciano Coelho */ 2190921014SLuciano Coelho 2290921014SLuciano Coelho #ifndef __BOOT_H__ 2390921014SLuciano Coelho #define __BOOT_H__ 2490921014SLuciano Coelho 2590921014SLuciano Coelho #include "wl1251.h" 2690921014SLuciano Coelho 2790921014SLuciano Coelho int wl1251_boot_soft_reset(struct wl1251 *wl); 2890921014SLuciano Coelho int wl1251_boot_init_seq(struct wl1251 *wl); 2990921014SLuciano Coelho int wl1251_boot_run_firmware(struct wl1251 *wl); 3090921014SLuciano Coelho void wl1251_boot_target_enable_interrupts(struct wl1251 *wl); 3190921014SLuciano Coelho int wl1251_boot(struct wl1251 *wl); 3290921014SLuciano Coelho 3390921014SLuciano Coelho /* number of times we try to read the INIT interrupt */ 3490921014SLuciano Coelho #define INIT_LOOP 20000 3590921014SLuciano Coelho 3690921014SLuciano Coelho /* delay between retries */ 3790921014SLuciano Coelho #define INIT_LOOP_DELAY 50 3890921014SLuciano Coelho 3990921014SLuciano Coelho #endif 40