mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-08-15 05:18:32 +00:00
board: add support for OnePlus 13r (giulia)
This commit is contained in:
@@ -119,6 +119,13 @@ menu "Device Support"
|
||||
developers may want to leave this on to avoid holding down
|
||||
the power button every time.
|
||||
|
||||
config ONEPLUS_GIULIA
|
||||
bool "Support for OnePlus 13R"
|
||||
default n
|
||||
depends on SM8650
|
||||
help
|
||||
Say Y if you want to include support for OnePlus 13R
|
||||
|
||||
config QEMU_BOARD_VIRT
|
||||
bool "Support for QEMU virt platform (aarch64)"
|
||||
default n
|
||||
|
||||
@@ -12,6 +12,7 @@ lib-$(CONFIG_NOKIA_ESSENTIAL) += nokia/board-essential.o
|
||||
lib-$(CONFIG_NOTHING_PONG) += nothing/board-pong.o
|
||||
lib-$(CONFIG_NOTHING_SPACEWAR) += nothing/board-spacewar.o
|
||||
lib-$(CONFIG_NOTHING_TETRIS) += nothing/board-tetris.o
|
||||
lib-$(CONFIG_ONEPLUS_GIULIA) += oneplus/board-giulia.o
|
||||
lib-$(CONFIG_QEMU_BOARD_VIRT) += qemu/board-virt.o
|
||||
lib-$(CONFIG_REALME_RMX3511) += realme/board-rmx3511.o
|
||||
lib-$(CONFIG_SAMSUNG_A3XELTE) += samsung/board-a3xelte.o
|
||||
|
||||
32
board/oneplus/board-giulia.c
Normal file
32
board/oneplus/board-giulia.c
Normal file
@@ -0,0 +1,32 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright (c) 2026, Aleksey Solovyev <avsoloviev@gmail.com>
|
||||
*/
|
||||
|
||||
#include <board.h>
|
||||
#include <util.h>
|
||||
#include <drivers/framework.h>
|
||||
#include <lib/debug.h>
|
||||
#include <lib/simplefb.h>
|
||||
|
||||
static struct video_info giulia_fb = {
|
||||
.format = FB_FORMAT_ARGB8888,
|
||||
.width = 1264,
|
||||
.height = 2780,
|
||||
.stride = 4,
|
||||
.address = (void *)0xd5100000,
|
||||
.scale = 2
|
||||
};
|
||||
|
||||
static const struct device giulia_devices[] = {
|
||||
{ "simplefb", &giulia_fb, "fb" },
|
||||
};
|
||||
|
||||
struct board_data board_ops = {
|
||||
.name = "oneplus-giulia",
|
||||
.ops = {
|
||||
},
|
||||
.devices = giulia_devices,
|
||||
.num_devices = ARRAY_SIZE(giulia_devices),
|
||||
.quirks = 0
|
||||
};
|
||||
8
configs/giulia_defconfig
Normal file
8
configs/giulia_defconfig
Normal file
@@ -0,0 +1,8 @@
|
||||
CONFIG_POSITION_INDEPENDENT=y
|
||||
CONFIG_LINUX_KRNL_HEADER_IMG=y
|
||||
# CONFIG_COMPRESS_GZIP is not set
|
||||
CONFIG_SM8650=y
|
||||
CONFIG_ONEPLUS_GIULIA=y
|
||||
CONFIG_TEXT_BASE=0xe1bb0000
|
||||
CONFIG_PAYLOAD_ENTRY=0xb8000000
|
||||
CONFIG_RAMDISK_ENTRY=0xb0000000
|
||||
Reference in New Issue
Block a user