blob: e18c88da09729daee7acc0b277c39bd49032dfe4 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Yogesh Gaur1a0c4ae2018-05-09 10:52:17 +05302/* Copyright 2013-2016 Freescale Semiconductor, Inc.
Yogesh Gaur318c32f2017-11-15 11:59:31 +05303 * Copyright 2017 NXP
J. German Rivera43e4ae32015-01-06 13:19:02 -08004 */
5#ifndef __FSL_DPMNG_CMD_H
6#define __FSL_DPMNG_CMD_H
7
8/* Command IDs */
Yogesh Gaur318c32f2017-11-15 11:59:31 +05309#define DPMNG_CMDID_GET_VERSION 0x8311
J. German Rivera43e4ae32015-01-06 13:19:02 -080010
11/* cmd, param, offset, width, type, arg_name */
12#define DPMNG_RSP_GET_VERSION(cmd, mc_ver_info) \
13do { \
14 MC_RSP_OP(cmd, 0, 0, 32, uint32_t, mc_ver_info->revision); \
15 MC_RSP_OP(cmd, 0, 32, 32, uint32_t, mc_ver_info->major); \
16 MC_RSP_OP(cmd, 1, 0, 32, uint32_t, mc_ver_info->minor); \
17} while (0)
18
J. German Rivera43e4ae32015-01-06 13:19:02 -080019#endif /* __FSL_DPMNG_CMD_H */