blob: f885bd9e5cdc8f7f89cae59e0afc1ee29b5b2006 [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,
Bichao Zheng8951e442023-07-13 13:21:29 +080020 BOOTINFO_PAGE_TYPE = 2,
21 BL2PARMA_PARAM_TYPE = 3,
Bo Lv72d0e902023-01-02 14:27:34 +000022 /* other */
23};
24
25struct param_e {
26 unsigned int type;
27 unsigned int len; /* must be 8 bytes align */
28 unsigned char data[1]; /* user defined parameter */
29};
30
31struct param_e *param_of(int type);
32
33#endif