mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-08-15 05:18:32 +00:00
board: add support for nothing phone (2)
Co-authored-by: user0-07161 <user0thenyancat@proton.me> board-pong: add video scale add copyright sort alphabetically
This commit is contained in:
1 parent
4d7f618ed3
commit
c67e8ad9d2
5 files changed
+49
No files matched your search
@@ -39,6 +39,7 @@ environment in case of a forced and buggy bootloader.
|
||||
- Essential
|
||||
|
||||
### Nothing
|
||||
- Pong
|
||||
- Tetris
|
||||
|
||||
### QEMU
|
||||
|
||||
@@ -70,6 +70,13 @@ menu "Device Support"
|
||||
help
|
||||
Say Y if you want to include support for Nokia 3
|
||||
|
||||
config NOTHING_PONG
|
||||
bool "Support for Nothing Phone (2)"
|
||||
default n
|
||||
depends on SM8450
|
||||
help
|
||||
Say Y if you want to include support for Nothing Phone (2)
|
||||
|
||||
config NOTHING_TETRIS
|
||||
bool "Support for CMF Phone 1"
|
||||
default n
|
||||
|
||||
@@ -8,6 +8,7 @@ lib-$(CONFIG_ITEL_P682LPN) += itel/board-p682lpn.o
|
||||
lib-$(CONFIG_LENOVO_TB373FU) += lenovo/board-tb373fu.o
|
||||
lib-$(CONFIG_MOTOROLA_TUNDRA) += motorola/board-tundra.o
|
||||
lib-$(CONFIG_NOKIA_ESSENTIAL) += nokia/board-essential.o
|
||||
lib-$(CONFIG_NOTHING_PONG) += nothing/board-pong.o
|
||||
lib-$(CONFIG_NOTHING_TETRIS) += nothing/board-tetris.o
|
||||
lib-$(CONFIG_QEMU_BOARD_VIRT) += qemu/board-virt.o
|
||||
lib-$(CONFIG_REALME_RMX3511) += realme/board-rmx3511.o
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright (c) 2026, Ivan <ivan@int4.cc>
|
||||
*
|
||||
* Parts of this code are adapted from board/samsung/board-r0q.c
|
||||
*/
|
||||
|
||||
#include <board.h>
|
||||
#include <util.h>
|
||||
#include <drivers/framework.h>
|
||||
#include <lib/simplefb.h>
|
||||
|
||||
static struct video_info pong_fb = {
|
||||
.format = FB_FORMAT_ARGB8888,
|
||||
.width = 1080,
|
||||
.height = 2412,
|
||||
.stride = 4,
|
||||
.scale = 2,
|
||||
.address = (void *)0xb8000000
|
||||
};
|
||||
|
||||
static const struct device pong_devices[] = {
|
||||
{ "simplefb", &pong_fb, "fb" },
|
||||
};
|
||||
|
||||
struct board_data board_ops = {
|
||||
.name = "nothing-pong",
|
||||
.ops = {
|
||||
},
|
||||
.devices = pong_devices,
|
||||
.num_devices = ARRAY_SIZE(pong_devices),
|
||||
.quirks = 0
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
CONFIG_POSITION_INDEPENDENT=y
|
||||
CONFIG_LINUX_KRNL_HEADER_IMG=y
|
||||
CONFIG_SM8450=y
|
||||
CONFIG_NOTHING_PONG=y
|
||||
CONFIG_TEXT_BASE=0xa8000000
|
||||
CONFIG_PAYLOAD_ENTRY=0x80b900000
|
||||
CONFIG_RAMDISK_ENTRY=0xb6915000
|
||||
Reference in new issue
Block a user