Bo Lv | 72d0e90 | 2023-01-02 14:27:34 +0000 | [diff] [blame^] | 1 | /* 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 */ |
| 18 | enum { |
| 19 | STORAGE_PARAM_TYPE = 1, |
| 20 | BL2PARMA_PARAM_TYPE = 2, |
| 21 | /* other */ |
| 22 | }; |
| 23 | |
| 24 | struct 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 | |
| 30 | struct param_e *param_of(int type); |
| 31 | |
| 32 | #endif |