2018-11-27 09:45:43 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 naehrwert
|
2024-05-19 08:07:06 +01:00
|
|
|
* Copyright (c) 2018-2024 CTCaer
|
2018-11-27 09:45:43 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms and conditions of the GNU General Public License,
|
|
|
|
* version 2, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _HW_INIT_H_
|
|
|
|
#define _HW_INIT_H_
|
|
|
|
|
2020-06-14 14:45:45 +01:00
|
|
|
#include <utils/types.h>
|
2018-11-27 09:45:43 +00:00
|
|
|
|
2021-04-11 07:18:55 +01:00
|
|
|
#define BL_MAGIC_CRBOOT_SLD 0x30444C53 // SLD0, seamless display type 0.
|
2022-12-19 03:22:55 +00:00
|
|
|
#define BL_MAGIC_L4TLDR_SLD 0x31444C53 // SLD1, seamless display type 1.
|
2021-04-11 07:18:55 +01:00
|
|
|
|
2021-10-01 12:32:42 +01:00
|
|
|
extern u32 hw_rst_status;
|
|
|
|
extern u32 hw_rst_reason;
|
|
|
|
|
2020-07-17 16:08:27 +01:00
|
|
|
void hw_init();
|
2024-05-19 08:49:25 +01:00
|
|
|
void hw_deinit(bool coreboot, u32 magic);
|
2024-05-19 08:07:06 +01:00
|
|
|
void hw_config_arbiter(bool reset);
|
2020-06-26 16:42:31 +01:00
|
|
|
u32 hw_get_chip_id();
|
2018-11-27 09:45:43 +00:00
|
|
|
|
|
|
|
#endif
|