2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2018-05-09 05:22:17 +00:00
|
|
|
/* Copyright 2013-2016 Freescale Semiconductor, Inc.
|
2017-11-15 06:29:31 +00:00
|
|
|
* Copyright 2017 NXP
|
2015-01-06 21:19:02 +00:00
|
|
|
*/
|
|
|
|
#ifndef __FSL_DPMNG_CMD_H
|
|
|
|
#define __FSL_DPMNG_CMD_H
|
|
|
|
|
|
|
|
/* Command IDs */
|
2017-11-15 06:29:31 +00:00
|
|
|
#define DPMNG_CMDID_GET_VERSION 0x8311
|
2015-01-06 21:19:02 +00:00
|
|
|
|
|
|
|
/* 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)
|
|
|
|
|
|
|
|
#endif /* __FSL_DPMNG_CMD_H */
|