blob: 6f1fc8f999d1f2cc4364432adf04bcd98e040c5a [file] [log] [blame]
Peng Fan29c9dd32018-10-18 14:28:19 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2018 NXP
4 */
5
Anatolij Gustschinef156d22019-06-12 13:35:25 +02006#include <asm/arch/sci/sci.h>
Peng Fan29c9dd32018-10-18 14:28:19 +02007#include <asm/mach-imx/sys_proto.h>
Peng Fanb48acc52020-05-04 21:16:50 +08008#include <asm/arch/power-domain.h>
9#include <dm/platdata.h>
10#include <dm/device-internal.h>
11#include <dm/device.h>
12#include <power-domain.h>
Peng Fan29c9dd32018-10-18 14:28:19 +020013#include <linux/types.h>
14
Peng Fan14b4cd22018-10-18 14:28:22 +020015struct pass_over_info_t {
16 u16 barker;
17 u16 len;
18 u32 g_bt_cfg_shadow;
19 u32 card_address_mode;
20 u32 bad_block_count_met;
21 u32 g_ap_mu;
22};
23
Peng Fan3d6ea862019-08-26 08:12:09 +000024extern unsigned long boot_pointer[];
Anatolij Gustschin21f27472019-06-12 13:35:26 +020025void build_info(void);
Peng Fan29c9dd32018-10-18 14:28:19 +020026enum boot_device get_boot_device(void);
27int print_bootinfo(void);
Anatolij Gustschinef156d22019-06-12 13:35:25 +020028int sc_pm_setup_uart(sc_rsrc_t uart_rsrc, sc_pm_clock_rate_t clk_rate);
Peng Fanb48acc52020-05-04 21:16:50 +080029int imx8_power_domain_lookup_name(const char *name,
30 struct power_domain *power_domain);
Peng Fan1b9729a2020-05-05 20:28:40 +080031void imx8_power_off_pd_devices(const char *permanent_on_devices[], int size);
Peng Fan2d65a162020-05-05 20:28:43 +080032bool m4_parts_booted(void);