board: Add support for Lenovo Idea Tab Pro

* Needs to be unlocked via an exploit
* mkbootimg --kernel uniLoader.lz4 --header_version 4 --out boot.img
* Has very slow fastboot (usb 1.1 speeds slow), so flashing via the
  SoC flash mode or fastbootd is recommended
* fastboot flash boot boot.img reboot

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
This commit is contained in:
Igor Belwon authored and Ивайло Иванов committed 2026-05-01 14:30:38 +03:00
1 parent 35a425b5d3
commit 93d43c3a82
4 files changed
+81

No files matched your search

+7
View File
@@ -42,6 +42,13 @@ menu "Device Support"
help
Say Y if you want to include support for itel Vision 3 Plus
config LENOVO_TB373FU
bool "Support for Lenovo Idea Tab Pro"
default n
depends on MT6897
help
Say Y if you want to include support for the Lenovo Idea Tab Pro
config NOKIA_ESSENTIAL
bool "Support for Nokia 3"
default n
+1
View File
@@ -4,6 +4,7 @@ lib-$(CONFIG_GOOGLE_TAIMEN) += google/board-taimen.o
lib-$(CONFIG_HUAWEI_AGASSI2) += huawei/board-agassi2.o
lib-$(CONFIG_INFINIX_X6710) += infinix/board-x6710.o
lib-$(CONFIG_ITEL_P682LPN) += itel/board-p682lpn.o
lib-$(CONFIG_LENOVO_TB373FU) += lenovo/board-tb373fu.o
lib-$(CONFIG_NOKIA_ESSENTIAL) += nokia/board-essential.o
lib-$(CONFIG_NOTHING_TETRIS) += nothing/board-tetris.o
lib-$(CONFIG_QEMU_BOARD_VIRT) += qemu/board-virt.o
+65
View File
@@ -0,0 +1,65 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2026, Igor Belwon <igor.belwon@mentallysanemainliners.org>
*/
#include <board.h>
#include <drivers/framework.h>
#include <lib/debug.h>
#include <lib/simplefb.h>
#define WDT_BASE 0x1c00a000
#define WDT_MODE_KEY 0x22000000
#define WDT_MODE_EN (1 << 0)
void tb373fu_disable_wdt(void)
{
uint32_t reg;
reg = readl((void*)WDT_BASE);
if (reg & WDT_MODE_EN)
{
reg &= ~WDT_MODE_EN;
reg |= WDT_MODE_KEY;
writel(reg, (void*)WDT_BASE);
printk(KERN_INFO, "%s: disabled watchdog timer.\n", __func__);
}
else
printk(KERN_ERR, "%s: watchdog is already disabled.\n", __func__);
return;
}
#ifdef CONFIG_SIMPLE_FB
static struct video_info tb373fu_fb = {
.format = FB_FORMAT_ARGB8888,
.width = 2944,
.height = 1840,
.stride = 4,
.address = (void *)0xfc16f000
};
#endif
int tb373fu_drv(void)
{
#ifdef CONFIG_SIMPLE_FB
REGISTER_DRIVER("simplefb", simplefb_probe, &tb373fu_fb);
#endif
return 0;
}
int tb373fu_late_init(void)
{
tb373fu_disable_wdt();
return 0;
}
struct board_data board_ops = {
.name = "lenovo-tb373fu",
.ops = {
.drivers_init = tb373fu_drv,
.late_init = tb373fu_late_init,
},
.quirks = 0
};
+8
View File
@@ -0,0 +1,8 @@
# CONFIG_COMPRESS_GZIP is not set
CONFIG_COMPRESS_LZ4=y
# CONFIG_LIBFDT is not set
CONFIG_MT6897=y
CONFIG_LENOVO_TB373FU=y
CONFIG_TEXT_BASE=0x40000000
CONFIG_PAYLOAD_ENTRY=0x60000000
CONFIG_RAMDISK_ENTRY=0x51100000