blob: e4bf6a63424f7c54c1dcdf6b882a908940e5fdb1 [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,
15};
16
Peng Fan65563792022-07-26 16:41:02 +080017void soc_power_init(void);
Peng Fan6d929962022-07-26 16:41:03 +080018bool m33_is_rom_kicked(void);
19int m33_prepare(void);
Ye Li7b248152024-09-19 12:01:26 +080020
21enum imx9_soc_voltage_mode soc_target_voltage_mode(void);
22
23#define is_voltage_mode(mode) (soc_target_voltage_mode() == (mode))
24
Peng Fanbbcd2c42022-07-26 16:40:39 +080025#endif