blob: a91da2b52d310113d6fba1ff48e8406f910ae38c [file] [log] [blame]
Yogesh Gaur318c32f2017-11-15 11:59:31 +05301/* Copyright 2013-2016 Freescale Semiconductor Inc.
2 * Copyright 2017 NXP
J. German Rivera43e4ae32015-01-06 13:19:02 -08003 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6#ifndef __FSL_DPMNG_CMD_H
7#define __FSL_DPMNG_CMD_H
8
9/* Command IDs */
Yogesh Gaur318c32f2017-11-15 11:59:31 +053010#define DPMNG_CMDID_GET_VERSION 0x8311
J. German Rivera43e4ae32015-01-06 13:19:02 -080011
12/* cmd, param, offset, width, type, arg_name */
13#define DPMNG_RSP_GET_VERSION(cmd, mc_ver_info) \
14do { \
15 MC_RSP_OP(cmd, 0, 0, 32, uint32_t, mc_ver_info->revision); \
16 MC_RSP_OP(cmd, 0, 32, 32, uint32_t, mc_ver_info->major); \
17 MC_RSP_OP(cmd, 1, 0, 32, uint32_t, mc_ver_info->minor); \
18} while (0)
19
J. German Rivera43e4ae32015-01-06 13:19:02 -080020#endif /* __FSL_DPMNG_CMD_H */