Rajan Vaja | 5529a01 | 2018-01-17 02:39:23 -0800 | [diff] [blame] | 1 | /* |
Michal Simek | 2a47faa | 2023-04-14 08:43:51 +0200 | [diff] [blame] | 2 | * Copyright (c) 2018-2022, Arm Limited and Contributors. All rights reserved. |
Jay Buddhabhatti | 5b672d9 | 2023-03-23 05:02:50 -0700 | [diff] [blame] | 3 | * Copyright (c) 2022-2023, Advanced Micro Devices, Inc. All rights reserved. |
Rajan Vaja | 5529a01 | 2018-01-17 02:39:23 -0800 | [diff] [blame] | 4 | * |
| 5 | * SPDX-License-Identifier: BSD-3-Clause |
| 6 | */ |
| 7 | |
| 8 | /* |
| 9 | * ZynqMP system level PM-API functions for pin control. |
| 10 | */ |
| 11 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 12 | #ifndef PM_API_IOCTL_H |
| 13 | #define PM_API_IOCTL_H |
Rajan Vaja | 5529a01 | 2018-01-17 02:39:23 -0800 | [diff] [blame] | 14 | |
| 15 | #include "pm_common.h" |
| 16 | |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 17 | //RPU operation mode |
| 18 | #define PM_RPU_MODE_LOCKSTEP 0U |
| 19 | #define PM_RPU_MODE_SPLIT 1U |
Rajan Vaja | 5529a01 | 2018-01-17 02:39:23 -0800 | [diff] [blame] | 20 | |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 21 | //RPU boot mem |
| 22 | #define PM_RPU_BOOTMEM_LOVEC 0U |
| 23 | #define PM_RPU_BOOTMEM_HIVEC 1U |
Rajan Vaja | 5529a01 | 2018-01-17 02:39:23 -0800 | [diff] [blame] | 24 | |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 25 | //RPU tcm mpde |
| 26 | #define PM_RPU_TCM_SPLIT 0U |
| 27 | #define PM_RPU_TCM_COMB 1U |
Rajan Vaja | 5529a01 | 2018-01-17 02:39:23 -0800 | [diff] [blame] | 28 | |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 29 | //tap delay signal type |
| 30 | #define PM_TAPDELAY_NAND_DQS_IN 0U |
| 31 | #define PM_TAPDELAY_NAND_DQS_OUT 1U |
| 32 | #define PM_TAPDELAY_QSPI 2U |
| 33 | #define PM_TAPDELAY_MAX 3U |
Rajan Vaja | aea41bb | 2018-01-17 02:39:24 -0800 | [diff] [blame] | 34 | |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 35 | //tap delay bypass |
| 36 | #define PM_TAPDELAY_BYPASS_DISABLE 0U |
| 37 | #define PM_TAPDELAY_BYPASS_ENABLE 1U |
Rajan Vaja | aea41bb | 2018-01-17 02:39:24 -0800 | [diff] [blame] | 38 | |
Rajan Vaja | aea41bb | 2018-01-17 02:39:24 -0800 | [diff] [blame] | 39 | enum tap_delay_type { |
| 40 | PM_TAPDELAY_INPUT, |
| 41 | PM_TAPDELAY_OUTPUT, |
| 42 | }; |
| 43 | |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 44 | //dll reset type |
| 45 | #define PM_DLL_RESET_ASSERT 0U |
| 46 | #define PM_DLL_RESET_RELEASE 1U |
| 47 | #define PM_DLL_RESET_PULSE 2U |
Rajan Vaja | aea41bb | 2018-01-17 02:39:24 -0800 | [diff] [blame] | 48 | |
Rajan Vaja | 5529a01 | 2018-01-17 02:39:23 -0800 | [diff] [blame] | 49 | enum pm_ret_status pm_api_ioctl(enum pm_node_id nid, |
Venkatesh Yadav Abbarapu | e7c4538 | 2022-05-19 14:49:49 +0530 | [diff] [blame] | 50 | uint32_t ioctl_id, |
| 51 | uint32_t arg1, |
| 52 | uint32_t arg2, |
| 53 | uint32_t *value); |
Prasad Kummari | e078311 | 2023-04-26 11:02:07 +0530 | [diff] [blame] | 54 | enum pm_ret_status tfa_ioctl_bitmask(uint32_t *bit_mask); |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 55 | #endif /* PM_API_IOCTL_H */ |