upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.7 KiB
50 lines
1.7 KiB
10 years ago
|
/* Copyright 2014 Freescale Semiconductor Inc.
|
||
|
*
|
||
|
* SPDX-License-Identifier: GPL-2.0+
|
||
|
*/
|
||
|
#ifndef __FSL_DPMNG_CMD_H
|
||
|
#define __FSL_DPMNG_CMD_H
|
||
|
|
||
|
/* Command IDs */
|
||
|
#define DPMNG_CMDID_GET_VERSION 0x831
|
||
|
#define DPMNG_CMDID_RESET_AIOP 0x832
|
||
|
#define DPMNG_CMDID_LOAD_AIOP 0x833
|
||
|
#define DPMNG_CMDID_RUN_AIOP 0x834
|
||
|
#define DPMNG_CMDID_RESET_MC_PORTAL 0x835
|
||
|
|
||
|
/* cmd, param, offset, width, type, arg_name */
|
||
|
#define DPMNG_RSP_GET_VERSION(cmd, mc_ver_info) \
|
||
|
do { \
|
||
|
MC_RSP_OP(cmd, 0, 0, 32, uint32_t, mc_ver_info->revision); \
|
||
|
MC_RSP_OP(cmd, 0, 32, 32, uint32_t, mc_ver_info->major); \
|
||
|
MC_RSP_OP(cmd, 1, 0, 32, uint32_t, mc_ver_info->minor); \
|
||
|
} while (0)
|
||
|
|
||
|
/* cmd, param, offset, width, type, arg_name */
|
||
|
#define DPMNG_CMD_RESET_AIOP(cmd, container_id, aiop_tile_id) \
|
||
|
do { \
|
||
|
MC_CMD_OP(cmd, 0, 0, 32, int, aiop_tile_id); \
|
||
|
MC_CMD_OP(cmd, 0, 32, 32, int, container_id); \
|
||
|
} while (0)
|
||
|
|
||
|
/* cmd, param, offset, width, type, arg_name */
|
||
|
#define DPMNG_CMD_LOAD_AIOP(cmd, container_id, aiop_tile_id, img_size, \
|
||
|
img_iova) \
|
||
|
do { \
|
||
|
MC_CMD_OP(cmd, 0, 0, 32, int, aiop_tile_id); \
|
||
|
MC_CMD_OP(cmd, 0, 32, 32, int, container_id); \
|
||
|
MC_CMD_OP(cmd, 1, 0, 32, uint32_t, img_size); \
|
||
|
MC_CMD_OP(cmd, 2, 0, 64, uint64_t, img_iova); \
|
||
|
} while (0)
|
||
|
|
||
|
/* cmd, param, offset, width, type, arg_name */
|
||
|
#define DPMNG_CMD_RUN_AIOP(cmd, container_id, aiop_tile_id, cfg) \
|
||
|
do { \
|
||
|
MC_CMD_OP(cmd, 0, 0, 32, int, aiop_tile_id); \
|
||
|
MC_CMD_OP(cmd, 0, 32, 32, int, container_id); \
|
||
|
MC_CMD_OP(cmd, 1, 0, 32, uint32_t, cfg->cores_mask); \
|
||
|
MC_CMD_OP(cmd, 2, 0, 64, uint64_t, cfg->options); \
|
||
|
} while (0)
|
||
|
|
||
|
#endif /* __FSL_DPMNG_CMD_H */
|