mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-08-15 05:18:32 +00:00
board: Add support for Blackview Tab 15 Pro
Signed-off-by: Akari Tsuyukusa <akkun11.open@gmail.com>
This commit is contained in:
committed by
Igor Bełwon
parent
f41400cbdc
commit
6ded1cbd44
@@ -20,6 +20,9 @@ environment in case of a forced and buggy bootloader.
|
||||
### Amazon
|
||||
- PW3
|
||||
|
||||
### Blackview
|
||||
- Tab15Pro
|
||||
|
||||
### Google
|
||||
- Taimen
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
35
board/blackview/board-tab15pro.c
Normal file
35
board/blackview/board-tab15pro.c
Normal file
@@ -0,0 +1,35 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2026, Akari Tsuyukusa <akkun11.open@gmail.com>
|
||||
*/
|
||||
|
||||
#include <board.h>
|
||||
#include <drivers/framework.h>
|
||||
#include <lib/simplefb.h>
|
||||
|
||||
#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
|
||||
};
|
||||
7
configs/tab15pro_defconfig
Normal file
7
configs/tab15pro_defconfig
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user