Peng Fan | bbcd2c4 | 2022-07-26 16:40:39 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) 2022 NXP |
| 4 | */ |
| 5 | |
| 6 | #ifndef __ARCH_IMX9_SYS_PROTO_H |
Andre Przywara | ccbd20d | 2023-05-15 14:52:10 +0100 | [diff] [blame] | 7 | #define __ARCH_IMX9_SYS_PROTO_H |
Peng Fan | bbcd2c4 | 2022-07-26 16:40:39 +0800 | [diff] [blame] | 8 | |
| 9 | #include <asm/mach-imx/sys_proto.h> |
| 10 | |
Ye Li | 7b24815 | 2024-09-19 12:01:26 +0800 | [diff] [blame^] | 11 | enum imx9_soc_voltage_mode { |
| 12 | VOLT_LOW_DRIVE = 0, |
| 13 | VOLT_NOMINAL_DRIVE, |
| 14 | VOLT_OVER_DRIVE, |
| 15 | }; |
| 16 | |
Peng Fan | 6556379 | 2022-07-26 16:41:02 +0800 | [diff] [blame] | 17 | void soc_power_init(void); |
Peng Fan | 6d92996 | 2022-07-26 16:41:03 +0800 | [diff] [blame] | 18 | bool m33_is_rom_kicked(void); |
| 19 | int m33_prepare(void); |
Ye Li | 7b24815 | 2024-09-19 12:01:26 +0800 | [diff] [blame^] | 20 | |
| 21 | enum imx9_soc_voltage_mode soc_target_voltage_mode(void); |
| 22 | |
| 23 | #define is_voltage_mode(mode) (soc_target_voltage_mode() == (mode)) |
| 24 | |
Peng Fan | bbcd2c4 | 2022-07-26 16:40:39 +0800 | [diff] [blame] | 25 | #endif |