Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Gabe Black | ddbfc64 | 2013-05-29 16:42:35 +0200 | [diff] [blame] | 2 | |
Elyes HAOUAS | a684d67 | 2020-08-24 14:06:44 +0200 | [diff] [blame] | 3 | #include <commonlib/bsd/helpers.h> |
Gabe Black | ddbfc64 | 2013-05-29 16:42:35 +0200 | [diff] [blame] | 4 | #include <stdint.h> |
Julius Werner | ec5e5e0 | 2014-08-20 15:29:56 -0700 | [diff] [blame] | 5 | #include <symbols.h> |
Gabe Black | ddbfc64 | 2013-05-29 16:42:35 +0200 | [diff] [blame] | 6 | |
| 7 | #include "header.h" |
| 8 | |
Gabe Black | 1ef5ff2 | 2013-06-10 02:07:17 -0400 | [diff] [blame] | 9 | // A symbol which defines how much of the image the iROM should load. |
| 10 | extern char header_load_size; |
| 11 | |
Gabe Black | ddbfc64 | 2013-05-29 16:42:35 +0200 | [diff] [blame] | 12 | struct omap_image_headers headers __attribute__((section(".header"))) = { |
| 13 | .config_headers = { |
| 14 | .toc_chsettings = { |
| 15 | .start = offsetof(struct omap_image_headers, |
| 16 | config_headers.chsettings), |
| 17 | .size = sizeof(struct configuration_header_settings), |
| 18 | .reserved = { 0, 0, 0 }, |
| 19 | .filename = "CHSETTINGS\0" |
| 20 | }, |
| 21 | .toc_end = { |
| 22 | .start = 0xffffffff, |
| 23 | .size = 0xffffffff, |
| 24 | .reserved = { 0xffffffff, 0xffffffff, 0xffffffff }, |
| 25 | .filename = { 0xff, 0xff, 0xff, 0xff, |
| 26 | 0xff, 0xff, 0xff, 0xff, |
| 27 | 0xff, 0xff, 0xff, 0xff } |
| 28 | }, |
| 29 | .chsettings = { |
| 30 | .key = 0xc0c0c0c1, |
| 31 | .valid = 0, |
| 32 | .version = 1, |
| 33 | .reserved = 0, |
| 34 | .flags = 0 |
| 35 | } |
| 36 | }, |
| 37 | .image_header = { |
Gabe Black | 1ef5ff2 | 2013-06-10 02:07:17 -0400 | [diff] [blame] | 38 | .size = (uintptr_t)&header_load_size, |
Sam Lewis | 266c136 | 2020-08-03 20:50:49 +1000 | [diff] [blame] | 39 | .destination = (uintptr_t)_sram |
Gabe Black | ddbfc64 | 2013-05-29 16:42:35 +0200 | [diff] [blame] | 40 | } |
| 41 | }; |