Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Yogesh Gaur | 1a0c4ae | 2018-05-09 10:52:17 +0530 | [diff] [blame] | 2 | /* Copyright 2013-2016 Freescale Semiconductor, Inc. |
Yogesh Gaur | 318c32f | 2017-11-15 11:59:31 +0530 | [diff] [blame] | 3 | * Copyright 2017 NXP |
J. German Rivera | 43e4ae3 | 2015-01-06 13:19:02 -0800 | [diff] [blame] | 4 | */ |
| 5 | #ifndef __FSL_DPMNG_CMD_H |
| 6 | #define __FSL_DPMNG_CMD_H |
| 7 | |
| 8 | /* Command IDs */ |
Yogesh Gaur | 318c32f | 2017-11-15 11:59:31 +0530 | [diff] [blame] | 9 | #define DPMNG_CMDID_GET_VERSION 0x8311 |
J. German Rivera | 43e4ae3 | 2015-01-06 13:19:02 -0800 | [diff] [blame] | 10 | |
| 11 | /* cmd, param, offset, width, type, arg_name */ |
| 12 | #define DPMNG_RSP_GET_VERSION(cmd, mc_ver_info) \ |
| 13 | do { \ |
| 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 Rivera | 43e4ae3 | 2015-01-06 13:19:02 -0800 | [diff] [blame] | 19 | #endif /* __FSL_DPMNG_CMD_H */ |