| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * wmfw.h - Wolfson firmware format information |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2012 Wolfson Microelectronics plc |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 10 | | - * published by the Free Software Foundation. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #ifndef __WMFW_H |
|---|
| .. | .. |
|---|
| 73 | 70 | __be32 ver; |
|---|
| 74 | 71 | } __packed; |
|---|
| 75 | 72 | |
|---|
| 73 | +struct wmfw_v3_id_hdr { |
|---|
| 74 | + __be32 core_id; |
|---|
| 75 | + __be32 block_rev; |
|---|
| 76 | + __be32 vendor_id; |
|---|
| 77 | + __be32 id; |
|---|
| 78 | + __be32 ver; |
|---|
| 79 | +} __packed; |
|---|
| 80 | + |
|---|
| 76 | 81 | struct wmfw_adsp1_id_hdr { |
|---|
| 77 | 82 | struct wmfw_id_hdr fw; |
|---|
| 78 | 83 | __be32 zm; |
|---|
| .. | .. |
|---|
| 85 | 90 | __be32 zm; |
|---|
| 86 | 91 | __be32 xm; |
|---|
| 87 | 92 | __be32 ym; |
|---|
| 93 | + __be32 n_algs; |
|---|
| 94 | +} __packed; |
|---|
| 95 | + |
|---|
| 96 | +struct wmfw_halo_id_hdr { |
|---|
| 97 | + struct wmfw_v3_id_hdr fw; |
|---|
| 98 | + __be32 xm_base; |
|---|
| 99 | + __be32 xm_size; |
|---|
| 100 | + __be32 ym_base; |
|---|
| 101 | + __be32 ym_size; |
|---|
| 88 | 102 | __be32 n_algs; |
|---|
| 89 | 103 | } __packed; |
|---|
| 90 | 104 | |
|---|
| .. | .. |
|---|
| 104 | 118 | __be32 zm; |
|---|
| 105 | 119 | __be32 xm; |
|---|
| 106 | 120 | __be32 ym; |
|---|
| 121 | +} __packed; |
|---|
| 122 | + |
|---|
| 123 | +struct wmfw_halo_alg_hdr { |
|---|
| 124 | + struct wmfw_alg_hdr alg; |
|---|
| 125 | + __be32 xm_base; |
|---|
| 126 | + __be32 xm_size; |
|---|
| 127 | + __be32 ym_base; |
|---|
| 128 | + __be32 ym_size; |
|---|
| 107 | 129 | } __packed; |
|---|
| 108 | 130 | |
|---|
| 109 | 131 | struct wmfw_adsp_alg_data { |
|---|
| .. | .. |
|---|
| 154 | 176 | |
|---|
| 155 | 177 | #define WMFW_ADSP1 1 |
|---|
| 156 | 178 | #define WMFW_ADSP2 2 |
|---|
| 179 | +#define WMFW_HALO 4 |
|---|
| 157 | 180 | |
|---|
| 158 | 181 | #define WMFW_ABSOLUTE 0xf0 |
|---|
| 159 | 182 | #define WMFW_ALGORITHM_DATA 0xf2 |
|---|
| 183 | +#define WMFW_METADATA 0xfc |
|---|
| 160 | 184 | #define WMFW_NAME_TEXT 0xfe |
|---|
| 161 | 185 | #define WMFW_INFO_TEXT 0xff |
|---|
| 162 | 186 | |
|---|
| .. | .. |
|---|
| 169 | 193 | #define WMFW_ADSP2_XM 5 |
|---|
| 170 | 194 | #define WMFW_ADSP2_YM 6 |
|---|
| 171 | 195 | |
|---|
| 196 | +#define WMFW_HALO_PM_PACKED 0x10 |
|---|
| 197 | +#define WMFW_HALO_XM_PACKED 0x11 |
|---|
| 198 | +#define WMFW_HALO_YM_PACKED 0x12 |
|---|
| 199 | + |
|---|
| 172 | 200 | #endif |
|---|