2018-10-18 12:28:19 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
|
|
* Copyright 2018 NXP
|
|
|
|
*/
|
|
|
|
|
2019-06-12 11:35:25 +00:00
|
|
|
#include <asm/arch/sci/sci.h>
|
2018-10-18 12:28:19 +00:00
|
|
|
#include <asm/mach-imx/sys_proto.h>
|
2020-05-04 13:16:50 +00:00
|
|
|
#include <asm/arch/power-domain.h>
|
|
|
|
#include <dm/platdata.h>
|
|
|
|
#include <dm/device-internal.h>
|
|
|
|
#include <dm/device.h>
|
|
|
|
#include <power-domain.h>
|
2018-10-18 12:28:19 +00:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
2018-10-18 12:28:22 +00:00
|
|
|
struct pass_over_info_t {
|
|
|
|
u16 barker;
|
|
|
|
u16 len;
|
|
|
|
u32 g_bt_cfg_shadow;
|
|
|
|
u32 card_address_mode;
|
|
|
|
u32 bad_block_count_met;
|
|
|
|
u32 g_ap_mu;
|
|
|
|
};
|
|
|
|
|
2019-08-26 08:12:09 +00:00
|
|
|
extern unsigned long boot_pointer[];
|
2019-06-12 11:35:26 +00:00
|
|
|
void build_info(void);
|
2018-10-18 12:28:19 +00:00
|
|
|
enum boot_device get_boot_device(void);
|
|
|
|
int print_bootinfo(void);
|
2019-06-12 11:35:25 +00:00
|
|
|
int sc_pm_setup_uart(sc_rsrc_t uart_rsrc, sc_pm_clock_rate_t clk_rate);
|
2020-05-04 13:16:50 +00:00
|
|
|
int imx8_power_domain_lookup_name(const char *name,
|
|
|
|
struct power_domain *power_domain);
|
2020-05-05 12:28:40 +00:00
|
|
|
void imx8_power_off_pd_devices(const char *permanent_on_devices[], int size);
|