board: starlte: Add support for Samsung Galaxy S9

Also while we're at it, do some cleanup.
Signed-off-by: Markuss Broks <markuss.broks@gmail.com>
This commit is contained in:
Markuss Broks 2022-06-14 18:41:42 +03:00 committed by ivoszbg
parent ad48f247fb
commit 9850f8756b
26 changed files with 27 additions and 47 deletions

4
.gitignore vendored
View File

@ -11,4 +11,6 @@ lib/*.a*
.config*
*.cmd
*/*.cmd
include/config/auto.conf
include/generated/autoconf.h
include/config

View File

@ -7,15 +7,20 @@ menu "Device Support"
help
Say Y if you want to include support for iPhone 6
config SAMSUNG_DREAMLTE
bool "Support for Samsung Galaxy S8"
default n
depends on EXYNOS_8895
#select EXYNOS_8895
help
Say Y if you want to include support for Samsung Galaxy S8
config SAMSUNG_STARLTE
bool "Support for Samsung Galaxy S9"
default n
depends on EXYNOS_9810
help
Say Y if you want to include support for Samsung Galaxy S9
endmenu
menu "Device Specific Addresses"
@ -24,6 +29,7 @@ menu "Device Specific Addresses"
hex "Payload Entry Address"
default 0x830000000 if APPLE_N61AP
default 0x090000000 if SAMSUNG_DREAMLTE
default 0x090000000 if SAMSUNG_STARLTE
config PAYLOAD_SIZE
hex "Payload Size"
@ -34,23 +40,27 @@ menu "Device Specific Addresses"
depends on SIMPLE_FB
default 0x83e900000 if APPLE_N61AP
default 0x0cc000000 if SAMSUNG_DREAMLTE
default 0x0cc000000 if SAMSUNG_STARLTE
config FRAMEBUFFER_WIDTH
int "Framebuffer Width (for SimpleFB)"
depends on SIMPLE_FB
default 752 if APPLE_N61AP
default 1440 if SAMSUNG_DREAMLTE
default 1440 if SAMSUNG_STARLTE
config FRAMEBUFFER_HEIGHT
int "Framebuffer Height (for SimpleFB)"
depends on SIMPLE_FB
default 1334 if APPLE_N61AP
default 2960 if SAMSUNG_DREAMLTE
default 2960 if SAMSUNG_STARLTE
config FRAMEBUFFER_STRIDE
int "Framebuffer Stride (for SimpleFB)"
depends on SIMPLE_FB
default 4 if APPLE_N61AP
default 4 if SAMSUNG_DREAMLTE
default 4 if SAMSUNG_STARLTE
endmenu

View File

@ -1,2 +1,3 @@
lib-$(CONFIG_APPLE_N61AP) += apple/board-n61ap.o
lib-$(CONFIG_SAMSUNG_DREAMLTE) += samsung/board-dreamlte.o
lib-$(CONFIG_SAMSUNG_STARLTE) += samsung/board-starlte.o

View File

@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, Markuss Broks <markuss.broks@gmail.com>
*/
void board_init(void) {
}

View File

@ -0,0 +1,3 @@
CONFIG_CROSS_COMPILE="aarch64-linux-gnu-"
CONFIG_EXYNOS_9810=y
CONFIG_SAMSUNG_STARLTE=y

View File

@ -1,15 +0,0 @@
#
# Automatically generated make config: don't edit
# uniLoader Configuration
#
CONFIG_PAYLOAD_SIZE=0x2000000
CONFIG_PAYLOAD_ENTRY=0x090000000
CONFIG_EXYNOS=y
CONFIG_SIMPLE_FB=y
CONFIG_EXYNOS_8895=y
CONFIG_SAMSUNG_DREAMLTE=y
CONFIG_FRAMEBUFFER_STRIDE=4
CONFIG_FRAMEBUFFER_WIDTH=1440
CONFIG_FRAMEBUFFER_HEIGHT=2960
CONFIG_FRAMEBUFFER_BASE=0xcc000000
CONFIG_CROSS_COMPILE="aarch64-linux-gnu-"

View File

@ -1,11 +0,0 @@
deps_config := \
board/Kconfig \
soc/Kconfig \
lib/Kconfig \
Kconfig
include/config/auto.conf: \
$(deps_config)
$(deps_config): ;

View File

@ -1,3 +0,0 @@
#
# Automatically generated - do not edit

View File

@ -1,15 +0,0 @@
/*
* Automatically generated C config: don't edit
* uniLoader Configuration
*/
#define CONFIG_PAYLOAD_SIZE 0x2000000
#define CONFIG_PAYLOAD_ENTRY 0x090000000
#define CONFIG_EXYNOS 1
#define CONFIG_SIMPLE_FB 1
#define CONFIG_EXYNOS_8895 1
#define CONFIG_SAMSUNG_DREAMLTE 1
#define CONFIG_FRAMEBUFFER_STRIDE 4
#define CONFIG_FRAMEBUFFER_WIDTH 1440
#define CONFIG_FRAMEBUFFER_HEIGHT 2960
#define CONFIG_FRAMEBUFFER_BASE 0xcc000000
#define CONFIG_CROSS_COMPILE "aarch64-linux-gnu-"