Add support for c1s (Samsung Galaxy Note20)

This commit is contained in:
BotchedRPR 2023-08-09 13:56:10 +02:00
parent ed246836e9
commit 6f83a56d5e
No known key found for this signature in database
GPG Key ID: 00CDBD78575F8ED7
4 changed files with 26 additions and 1 deletions

View File

@ -7,6 +7,13 @@ menu "Device Support"
help
Say Y if you want to include support for iPhone 6
config SAMSUNG_C1S
bool "Support for Samsung Galaxy Note20"
default n
depends on EXYNOS_990
help
Say Y if you want to include support for Samsung Galaxy Note20
config SAMSUNG_NOBLELTE
bool "Support for Samsung Galaxy Note5"
default n
@ -62,6 +69,7 @@ menu "Device Specific Addresses"
config PAYLOAD_ENTRY
hex "Payload Entry Address"
default 0x830000000 if APPLE_N61AP
default 0x090000000 if SAMSUNG_C1S
default 0x050000000 if SAMSUNG_NOBLELTE
default 0x090000000 if SAMSUNG_JACKPOTLTE
default 0x090000000 if SAMSUNG_ZEROFLTE
@ -75,6 +83,7 @@ menu "Device Specific Addresses"
hex "Framebuffer Base Address (for SimpleFB)"
depends on SIMPLE_FB
default 0x83e900000 if APPLE_N61AP
default 0x0F1000000 if SAMSUNG_C1S
default 0x0e2a00000 if SAMSUNG_NOBLELTE
default 0x0ec000000 if SAMSUNG_JACKPOTLTE
default 0x0e2a00000 if SAMSUNG_ZEROFLTE
@ -87,6 +96,7 @@ menu "Device Specific Addresses"
int "Framebuffer Width (for SimpleFB)"
depends on SIMPLE_FB
default 752 if APPLE_N61AP
default 1080 if SAMSUNG_C1S
default 1440 if SAMSUNG_NOBLELTE
default 1080 if SAMSUNG_JACKPOTLTE
default 1440 if SAMSUNG_ZEROFLTE
@ -99,6 +109,7 @@ menu "Device Specific Addresses"
int "Framebuffer Height (for SimpleFB)"
depends on SIMPLE_FB
default 1334 if APPLE_N61AP
default 2400 if SAMSUNG_C1S
default 2560 if SAMSUNG_NOBLELTE
default 2220 if SAMSUNG_JACKPOTLTE
default 2560 if SAMSUNG_ZEROFLTE
@ -111,6 +122,7 @@ menu "Device Specific Addresses"
int "Framebuffer Stride (for SimpleFB)"
depends on SIMPLE_FB
default 4 if APPLE_N61AP
default 4 if SAMSUNG_C1S
default 4 if SAMSUNG_NOBLELTE
default 4 if SAMSUNG_JACKPOTLTE
default 4 if SAMSUNG_ZEROFLTE

View File

@ -1,8 +1,9 @@
lib-$(CONFIG_APPLE_N61AP) += apple/board-n61ap.o
lib-$(CONFIG_SAMSUNG_C1S) += samsung/board-c1s.o
lib-$(CONFIG_SAMSUNG_NOBLELTE) += samsung/board-noblelte.o
lib-$(CONFIG_SAMSUNG_JACKPOTLTE) += samsung/board-jackpotlte.o
lib-$(CONFIG_SAMSUNG_ZEROFLTE) += samsung/board-zeroflte.o
lib-$(CONFIG_SAMSUNG_DREAMLTE) += samsung/board-dreamlte.o
lib-$(CONFIG_SAMSUNG_STARLTE) += samsung/board-starlte.o
lib-$(CONFIG_SAMSUNG_X1S) += samsung/board-x1s.o
lib-$(CONFIG_SAMSUNG_J5LTE) += samsung/board-j5lte.o
lib-$(CONFIG_SAMSUNG_J5LTE) += samsung/board-j5lte.o

9
board/samsung/board-c1s.c Executable file
View File

@ -0,0 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) BotchedRPR <thenxguy0@gmail.com>
*
*/
void board_init(void) {
}

3
configs/c1s_defconfig Executable file
View File

@ -0,0 +1,3 @@
CONFIG_CROSS_COMPILE="aarch64-linux-gnu-"
CONFIG_EXYNOS_990=y
CONFIG_SAMSUNG_C1S=y