diff --git a/README.md b/README.md index 321b206..16d3f92 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ environment in case of a forced and buggy bootloader. ### Amazon - PW3 +### Blackview +- Tab15Pro + ### Google - Taimen diff --git a/board/Kconfig b/board/Kconfig index ce6eec2..05b766a 100644 --- a/board/Kconfig +++ b/board/Kconfig @@ -14,6 +14,13 @@ menu "Device Support" help Say Y if you want to include support for iPhone 6 + config BLACKVIEW_TAB15PRO + bool "Support for Blackview Tab 15 Pro" + default n + depends on UMS9230 + help + Say Y if you want to include support for Blackview Tab 15 Pro + config GOOGLE_TAIMEN bool "Support for Google Pixel 2 XL" default n diff --git a/board/Makefile b/board/Makefile index 8be1857..14819e7 100644 --- a/board/Makefile +++ b/board/Makefile @@ -1,5 +1,6 @@ lib-$(CONFIG_AMAZON_PW3) += amazon/board-pw3.o lib-$(CONFIG_APPLE_N61AP) += apple/board-n61ap.o +lib-$(CONFIG_BLACKVIEW_TAB15PRO) += blackview/board-tab15pro.o lib-$(CONFIG_GOOGLE_TAIMEN) += google/board-taimen.o lib-$(CONFIG_HUAWEI_AGASSI2) += huawei/board-agassi2.o lib-$(CONFIG_INFINIX_X6710) += infinix/board-x6710.o diff --git a/board/blackview/board-tab15pro.c b/board/blackview/board-tab15pro.c new file mode 100644 index 0000000..a2c6c2f --- /dev/null +++ b/board/blackview/board-tab15pro.c @@ -0,0 +1,35 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2026, Akari Tsuyukusa + */ + +#include +#include +#include + +#ifdef CONFIG_SIMPLE_FB +static struct video_info tab15pro_fb = { + .format = FB_FORMAT_RGB565, + .width = 1200, + .height = 1920, + .stride = 2, + .address = (void *)0x9e000000, + .scale = 2, +}; +#endif + +int tab15pro_drv(void) +{ +#ifdef CONFIG_SIMPLE_FB + REGISTER_DRIVER("simplefb", simplefb_probe, &tab15pro_fb); +#endif + return 0; +} + +struct board_data board_ops = { + .name = "blackview-tab15pro", + .ops = { + .drivers_init = tab15pro_drv + }, + .quirks = 0 +}; diff --git a/configs/tab15pro_defconfig b/configs/tab15pro_defconfig new file mode 100644 index 0000000..518b562 --- /dev/null +++ b/configs/tab15pro_defconfig @@ -0,0 +1,7 @@ +CONFIG_UMS9230=y +CONFIG_SIMPLE_FB=y +CONFIG_BLACKVIEW_TAB15PRO=y +CONFIG_LINUX_KRNL_HEADER_IMG=y +CONFIG_TEXT_BASE=0x80080000 +CONFIG_PAYLOAD_ENTRY=0x90000000 +CONFIG_RAMDISK_ENTRY=0xa0000000