fw.c 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (c) 2014-2015,2017 Qualcomm Atheros, Inc.
  3. * Copyright (c) 2018, The Linux Foundation. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. #include <linux/firmware.h>
  18. #include <linux/module.h>
  19. #include <linux/crc32.h>
  20. #include "wil6210.h"
  21. #include "fw.h"
  22. MODULE_FIRMWARE(WIL_FW_NAME_DEFAULT);
  23. MODULE_FIRMWARE(WIL_FW_NAME_SPARROW_PLUS);
  24. MODULE_FIRMWARE(WIL_BOARD_FILE_NAME);
  25. MODULE_FIRMWARE(WIL_FW_NAME_TALYN);
  26. MODULE_FIRMWARE(WIL_BRD_NAME_TALYN);
  27. static
  28. void wil_memset_toio_32(volatile void __iomem *dst, u32 val,
  29. size_t count)
  30. {
  31. volatile u32 __iomem *d = dst;
  32. for (count += 4; count > 4; count -= 4)
  33. __raw_writel(val, d++);
  34. }
  35. #include "fw_inc.c"