blob: 7f42a388ee0288b3fe3267d37754faf4d01495dd [file] [log] [blame]
Patrick Georgiac959032020-05-05 22:49:26 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Gabe Blackddbfc642013-05-29 16:42:35 +02002
Elyes HAOUASa684d672020-08-24 14:06:44 +02003#include <commonlib/bsd/helpers.h>
Gabe Blackddbfc642013-05-29 16:42:35 +02004#include <stdint.h>
Julius Wernerec5e5e02014-08-20 15:29:56 -07005#include <symbols.h>
Gabe Blackddbfc642013-05-29 16:42:35 +02006
7#include "header.h"
8
Gabe Black1ef5ff22013-06-10 02:07:17 -04009// A symbol which defines how much of the image the iROM should load.
10extern char header_load_size;
11
Gabe Blackddbfc642013-05-29 16:42:35 +020012struct 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 Black1ef5ff22013-06-10 02:07:17 -040038 .size = (uintptr_t)&header_load_size,
Sam Lewis266c1362020-08-03 20:50:49 +100039 .destination = (uintptr_t)_sram
Gabe Blackddbfc642013-05-29 16:42:35 +020040 }
41};