blob: f59437378f73bdf753b5f6cd4cccf93d2eee3259 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* SPDX-License-Identifier: GPL-2.0+
*
* Copyright 2019 Broadcom Ltd.
*/
#ifndef _TPL_PARAMS_H
#define _TPL_PARAMS_H
#include "boot_blob.h"
#define EF_JTAG_LOAD 0x1
typedef struct tpl_params_s {
void *environment;
uint32_t early_flags;
uint32_t ddr_size; /* in MB */
uint8_t boot_device;
} tpl_params;
extern uint32_t boot_params;
#if defined(CONFIG_TPL_BUILD)
extern tpl_params* tplparams;
#endif
#define TPL_PARAMS_ADDR ((CONFIG_TPL_TEXT_BASE - BOOT_BLOB_MAX_ENV_SIZE - sizeof(tpl_params) \
- 0x100)&~0xff)
#define IS_JTAG_LOADED(params) ((params) & EF_JTAG_LOAD)
#endif
|