-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 342648 b: refs/heads/master c: e10f871 h: refs/heads/master v: v3
- Loading branch information
Mark Brown
committed
Oct 5, 2012
1 parent
c8a0efd
commit dfed50a
Showing
3 changed files
with
295 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 09d5d5880eb436d623013a1e3c32ad33ae8e6b09 | ||
refs/heads/master: e10f871190ce2f912317c874a56b9cc417e46e84 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* wmfw.h - Wolfson firmware format information | ||
* | ||
* Copyright 2012 Wolfson Microelectronics plc | ||
* | ||
* Author: Mark Brown <broonie@opensource.wolfsonmicro.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#ifndef __WMFW_H | ||
#define __WMFW_H | ||
|
||
#include <linux/types.h> | ||
|
||
struct wmfw_header { | ||
char magic[4]; | ||
__le32 len; | ||
__le16 rev; | ||
u8 core; | ||
u8 ver; | ||
} __packed; | ||
|
||
struct wmfw_footer { | ||
__le64 timestamp; | ||
__le32 checksum; | ||
} __packed; | ||
|
||
struct wmfw_adsp1_sizes { | ||
__le32 dm; | ||
__le32 pm; | ||
__le32 zm; | ||
} __packed; | ||
|
||
struct wmfw_region { | ||
union { | ||
__be32 type; | ||
__le32 offset; | ||
}; | ||
__le32 len; | ||
u8 data[]; | ||
} __packed; | ||
|
||
#define WMFW_ADSP1 1 | ||
|
||
#define WMFW_ABSOLUTE 0xf0 | ||
#define WMFW_NAME_TEXT 0xfe | ||
#define WMFW_INFO_TEXT 0xff | ||
|
||
#define WMFW_ADSP1_PM 2 | ||
#define WMFW_ADSP1_DM 3 | ||
#define WMFW_ADSP1_ZM 4 | ||
|
||
#endif |