| 1 |
|
| 2 |
|
| 3 |
#ifndef __SOC_TI_AM335X_HEADER_H |
| 4 |
#define __SOC_TI_AM335X_HEADER_H |
| 5 |
|
| 6 |
#include <stdint.h> |
| 7 |
|
| 8 |
struct configuration_header_toc_item { |
| 9 |
|
| 10 |
|
| 11 |
uint32_t start; |
| 12 |
|
| 13 |
|
| 14 |
uint32_t size; |
| 15 |
|
| 16 |
|
| 17 |
uint32_t reserved[3]; |
| 18 |
|
| 19 |
|
| 20 |
char filename[12]; |
| 21 |
} __packed; |
| 22 |
|
| 23 |
struct configuration_header_settings { |
| 24 |
|
| 25 |
uint32_t key; |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
uint8_t valid; |
| 31 |
|
| 32 |
|
| 33 |
uint8_t version; |
| 34 |
|
| 35 |
|
| 36 |
uint16_t reserved; |
| 37 |
|
| 38 |
|
| 39 |
uint32_t flags; |
| 40 |
} __packed; |
| 41 |
|
| 42 |
struct gp_device_header { |
| 43 |
|
| 44 |
uint32_t size; |
| 45 |
|
| 46 |
|
| 47 |
uint32_t destination; |
| 48 |
} __packed; |
| 49 |
|
| 50 |
struct config_headers { |
| 51 |
|
| 52 |
struct configuration_header_toc_item toc_chsettings; |
| 53 |
struct configuration_header_toc_item toc_end; |
| 54 |
|
| 55 |
|
| 56 |
struct configuration_header_settings chsettings; |
| 57 |
} __packed; |
| 58 |
|
| 59 |
struct omap_image_headers { |
| 60 |
union { |
| 61 |
struct config_headers config_headers; |
| 62 |
uint8_t bytes[512]; |
| 63 |
}; |
| 64 |
struct gp_device_header image_header; |
| 65 |
}; |
| 66 |
|
| 67 |
#endif |