blob: 330a20da8a96a37011370142a62055fd949b777b [file] [log] [blame]
Bo Lv72d0e902023-01-02 14:27:34 +00001/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2/*
3 * Copyright (c) 2019 Amlogic, Inc. All rights reserved.
4 */
5
6#ifndef __BLXX2BL33_PARAM_H__
7#define __BLXX2BL33_PARAM_H__
8#include <common.h>
9
10/* !!! don't try to modify the Micro unless make a consistency with blxx */
11
12#define BL2E2BL33_PARAM_START (0x0e00000)
13#define BL2E2BL33_PARAM_END (0x1000000)
14
15#define BLXX2BL33_PARAM_DEBUG (0)
16
17/* define the parameter type here and make sure the same with blxx */
18enum {
19 STORAGE_PARAM_TYPE = 1,
20 BL2PARMA_PARAM_TYPE = 2,
21 /* other */
22};
23
24struct param_e {
25 unsigned int type;
26 unsigned int len; /* must be 8 bytes align */
27 unsigned char data[1]; /* user defined parameter */
28};
29
30struct param_e *param_of(int type);
31
32#endif