Yogesh Gaur | 318c32f | 2017-11-15 11:59:31 +0530 | [diff] [blame] | 1 | /* Copyright 2013-2016 Freescale Semiconductor Inc. |
| 2 | * Copyright 2017 NXP |
J. German Rivera | 43e4ae3 | 2015-01-06 13:19:02 -0800 | [diff] [blame] | 3 | * |
| 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 Gaur | 318c32f | 2017-11-15 11:59:31 +0530 | [diff] [blame] | 10 | #define DPMNG_CMDID_GET_VERSION 0x8311 |
J. German Rivera | 43e4ae3 | 2015-01-06 13:19:02 -0800 | [diff] [blame] | 11 | |
| 12 | /* cmd, param, offset, width, type, arg_name */ |
| 13 | #define DPMNG_RSP_GET_VERSION(cmd, mc_ver_info) \ |
| 14 | do { \ |
| 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 Rivera | 43e4ae3 | 2015-01-06 13:19:02 -0800 | [diff] [blame] | 20 | #endif /* __FSL_DPMNG_CMD_H */ |