mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-19 02:03:06 +00:00
e71ad13474
Signed-off-by: Mario Hros <git@reversity.org>
40 lines
No EOL
1.1 KiB
C
40 lines
No EOL
1.1 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
|
|
#include "cpu_regs.h"
|
|
#include "utils.h"
|
|
|
|
static void init_common_blizzard(void)
|
|
{
|
|
reg_set(SYS_IMP_APL_EHID0, EHID0_BLI_UNK32);
|
|
}
|
|
|
|
void init_t8112_blizzard(void)
|
|
{
|
|
init_common_blizzard();
|
|
|
|
reg_mask(SYS_IMP_APL_EHID9, EHID9_DEV_2_THROTTLE_LIMIT_MASK, EHID9_DEV_2_THROTTLE_LIMIT(60));
|
|
reg_set(SYS_IMP_APL_EHID9, EHID9_DEV_2_THROTTLE_ENABLE);
|
|
reg_set(SYS_IMP_APL_EHID18, EHID18_BLZ_UNK34);
|
|
}
|
|
|
|
void init_t6020_blizzard(void)
|
|
{
|
|
init_common_blizzard();
|
|
|
|
reg_mask(SYS_IMP_APL_EHID9, EHID9_DEV_2_THROTTLE_LIMIT_MASK, EHID9_DEV_2_THROTTLE_LIMIT(62));
|
|
reg_set(SYS_IMP_APL_EHID9, EHID9_DEV_2_THROTTLE_ENABLE);
|
|
reg_set(SYS_IMP_APL_EHID18, EHID18_BLZ_UNK34);
|
|
|
|
reg_mask(SYS_IMP_APL_HID5, HID5_BLZ_UNK_19_18_MASK, HID5_BLZ_UNK18);
|
|
}
|
|
|
|
void init_t6021_blizzard(void)
|
|
{
|
|
init_common_blizzard();
|
|
|
|
reg_mask(SYS_IMP_APL_EHID9, EHID9_DEV_2_THROTTLE_LIMIT_MASK, EHID9_DEV_2_THROTTLE_LIMIT(62));
|
|
reg_set(SYS_IMP_APL_EHID9, EHID9_DEV_2_THROTTLE_ENABLE);
|
|
reg_set(SYS_IMP_APL_EHID18, EHID18_BLZ_UNK34);
|
|
|
|
reg_mask(SYS_IMP_APL_HID5, HID5_BLZ_UNK_19_18_MASK, HID5_BLZ_UNK19);
|
|
} |