Prabhakar Kushwaha | cfd9fbf | 2015-03-19 09:20:45 -0700 | [diff] [blame] | 1 | /* Copyright 2013-2015 Freescale Semiconductor Inc. |
J. German Rivera | 43e4ae3 | 2015-01-06 13:19:02 -0800 | [diff] [blame] | 2 | * |
| 3 | * SPDX-License-Identifier: GPL-2.0+ |
| 4 | */ |
| 5 | #ifndef __FSL_DPMNG_CMD_H |
| 6 | #define __FSL_DPMNG_CMD_H |
| 7 | |
| 8 | /* Command IDs */ |
| 9 | #define DPMNG_CMDID_GET_VERSION 0x831 |
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 */ |