Peng Fan | 29c9dd3 | 2018-10-18 14:28:19 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright 2018 NXP |
| 4 | */ |
| 5 | |
Peng Fan | 2e0644a | 2023-04-28 12:08:09 +0800 | [diff] [blame] | 6 | #include <firmware/imx/sci/sci.h> |
Peng Fan | 29c9dd3 | 2018-10-18 14:28:19 +0200 | [diff] [blame] | 7 | #include <asm/mach-imx/sys_proto.h> |
Peng Fan | b48acc5 | 2020-05-04 21:16:50 +0800 | [diff] [blame] | 8 | #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 Fan | 29c9dd3 | 2018-10-18 14:28:19 +0200 | [diff] [blame] | 13 | #include <linux/types.h> |
| 14 | |
Peng Fan | 14b4cd2 | 2018-10-18 14:28:22 +0200 | [diff] [blame] | 15 | struct 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 Fan | 3d6ea86 | 2019-08-26 08:12:09 +0000 | [diff] [blame] | 24 | extern unsigned long boot_pointer[]; |
Anatolij Gustschin | 21f2747 | 2019-06-12 13:35:26 +0200 | [diff] [blame] | 25 | void build_info(void); |
Igor Opaniuk | 33651ac | 2023-08-21 22:33:41 +0300 | [diff] [blame] | 26 | int ahab_close(void); |
Peng Fan | 29c9dd3 | 2018-10-18 14:28:19 +0200 | [diff] [blame] | 27 | int print_bootinfo(void); |
Anatolij Gustschin | ef156d2 | 2019-06-12 13:35:25 +0200 | [diff] [blame] | 28 | int sc_pm_setup_uart(sc_rsrc_t uart_rsrc, sc_pm_clock_rate_t clk_rate); |
Peng Fan | b48acc5 | 2020-05-04 21:16:50 +0800 | [diff] [blame] | 29 | int imx8_power_domain_lookup_name(const char *name, |
| 30 | struct power_domain *power_domain); |
Peng Fan | 1b9729a | 2020-05-05 20:28:40 +0800 | [diff] [blame] | 31 | void imx8_power_off_pd_devices(const char *permanent_on_devices[], int size); |
Peng Fan | 2d65a16 | 2020-05-05 20:28:43 +0800 | [diff] [blame] | 32 | bool m4_parts_booted(void); |