2019-03-05 00:05:42 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 naehrwert
|
|
|
|
* Copyright (c) 2018 CTCaer
|
|
|
|
*
|
|
|
|
* 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-26 22:17:06 +02:00
|
|
|
#include <utils/types.h>
|
2019-03-05 00:05:42 +01:00
|
|
|
|
2021-05-12 23:38:34 +02:00
|
|
|
#define BL_MAGIC_CRBOOT_SLD 0x30444C53 // SLD0, seamless display type 0.
|
|
|
|
#define BL_MAGIC_BROKEN_HWI 0xBAADF00D // Broken hwinit.
|
|
|
|
|
2020-12-04 19:20:01 +01:00
|
|
|
void hw_init();
|
2021-05-12 23:38:34 +02:00
|
|
|
void hw_reinit_workaround(bool coreboot, u32 magic);
|
2020-12-04 19:20:01 +01:00
|
|
|
u32 hw_get_chip_id();
|
2019-03-05 00:05:42 +01:00
|
|
|
|
|
|
|
#endif
|