mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 09:44:13 +00:00
59e0032ba4
Signed-off-by: Hector Martin <marcan@marcan.st>
40 lines
1.1 KiB
C
40 lines
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);
|
|
}
|