mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-08-15 05:18:32 +00:00
board: Add support for the Samsung Galaxy S22
This commit is contained in:
@@ -165,6 +165,13 @@ menu "Device Support"
|
||||
help
|
||||
Say Y if you want to include support for Samsung Galaxy Tab S6 Lite
|
||||
|
||||
config SAMSUNG_R0Q
|
||||
bool "Support for Samsung Galaxy S22"
|
||||
default n
|
||||
depends on SM8450
|
||||
help
|
||||
Say Y if you want to include support for Samsung Galaxy S22
|
||||
|
||||
config SAMSUNG_R8S
|
||||
bool "Support for Samsung Galaxy S20 FE"
|
||||
default n
|
||||
|
||||
@@ -19,5 +19,6 @@ lib-$(CONFIG_SAMSUNG_X1S) += samsung/board-x1s.o
|
||||
lib-$(CONFIG_SAMSUNG_J5LTE) += samsung/board-j5lte.o
|
||||
lib-$(CONFIG_SAMSUNG_J4LTE) += samsung/board-j4lte.o
|
||||
lib-$(CONFIG_SAMSUNG_GTA4XL) += samsung/board-gta4xl.o
|
||||
lib-$(CONFIG_SAMSUNG_R0Q) += samsung/board-r0q.o
|
||||
lib-$(CONFIG_SAMSUNG_R8S) += samsung/board-r8s.o
|
||||
lib-$(CONFIG_VOLLA_ALGIZ) += volla/board-algiz.o
|
||||
|
||||
31
board/samsung/board-r0q.c
Normal file
31
board/samsung/board-r0q.c
Normal file
@@ -0,0 +1,31 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
|
||||
#include <board.h>
|
||||
#include <drivers/framework.h>
|
||||
#include <lib/simplefb.h>
|
||||
|
||||
#ifdef CONFIG_SIMPLE_FB
|
||||
static struct video_info r0q_fb = {
|
||||
.format = FB_FORMAT_ARGB8888,
|
||||
.width = 1080,
|
||||
.height = 2340,
|
||||
.stride = 4,
|
||||
.address = (void *)0xb8000000
|
||||
};
|
||||
#endif
|
||||
|
||||
int r0q_drv(void)
|
||||
{
|
||||
#ifdef CONFIG_SIMPLE_FB
|
||||
REGISTER_DRIVER("simplefb", simplefb_probe, &r0q_fb);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct board_data board_ops = {
|
||||
.name = "samsung-r0q",
|
||||
.ops = {
|
||||
.drivers_init = r0q_drv
|
||||
},
|
||||
.quirks = 0
|
||||
};
|
||||
6
configs/r0q_defconfig
Normal file
6
configs/r0q_defconfig
Normal file
@@ -0,0 +1,6 @@
|
||||
CONFIG_POSITION_INDEPENDENT=y
|
||||
CONFIG_SM8450=y
|
||||
CONFIG_SAMSUNG_R0Q=y
|
||||
CONFIG_TEXT_BASE=0x87000000
|
||||
CONFIG_PAYLOAD_ENTRY=0x80b900000
|
||||
CONFIG_RAMDISK_ENTRY=0xb6915000
|
||||
@@ -132,6 +132,12 @@ config QUALCOMM
|
||||
select QUALCOMM
|
||||
help
|
||||
Say Y if your device uses this Qualcomm SoC
|
||||
|
||||
config SM8450
|
||||
bool "Support for QUALCOMM SM8450"
|
||||
select QUALCOMM
|
||||
help
|
||||
Say Y if your device uses this Qualcomm SoC
|
||||
|
||||
config QEMU_SOC_VIRT
|
||||
bool "Support for QEMU virt aarch64 SoC"
|
||||
|
||||
Reference in New Issue
Block a user