blob: df2148a53c7e43fcacad0798090df23e24347dbe [file] [log] [blame]
Peng Fanbbcd2c42022-07-26 16:40:39 +08001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2022 NXP
4 */
5
6#ifndef __ARCH_IMX9_SYS_PROTO_H
Andre Przywaraccbd20d2023-05-15 14:52:10 +01007#define __ARCH_IMX9_SYS_PROTO_H
Peng Fanbbcd2c42022-07-26 16:40:39 +08008
9#include <asm/mach-imx/sys_proto.h>
10
Ye Li7b248152024-09-19 12:01:26 +080011enum imx9_soc_voltage_mode {
12 VOLT_LOW_DRIVE = 0,
13 VOLT_NOMINAL_DRIVE,
14 VOLT_OVER_DRIVE,
Peng Fanaca2f882025-04-28 18:37:34 +080015 VOLT_SUPER_OVER_DRIVE,
Ye Li7b248152024-09-19 12:01:26 +080016};
17
Peng Fan65563792022-07-26 16:41:02 +080018void soc_power_init(void);
Peng Fan6d929962022-07-26 16:41:03 +080019bool m33_is_rom_kicked(void);
20int m33_prepare(void);
Ye Li7b248152024-09-19 12:01:26 +080021
22enum imx9_soc_voltage_mode soc_target_voltage_mode(void);
23
24#define is_voltage_mode(mode) (soc_target_voltage_mode() == (mode))
25
Peng Fanbbcd2c42022-07-26 16:40:39 +080026#endif