Skip to content

Commit

Permalink
board: starlte: Add support for Samsung Galaxy S9
Browse files Browse the repository at this point in the history
Also while we're at it, do some cleanup.
Signed-off-by: Markuss Broks <[email protected]>
  • Loading branch information
nergzd723 authored and ivoszbg committed Jun 14, 2022
1 parent ad48f24 commit 9850f87
Show file tree
Hide file tree
Showing 26 changed files with 27 additions and 47 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ lib/*.a*
.config*
*.cmd
*/*.cmd

include/config/auto.conf
include/generated/autoconf.h
include/config
14 changes: 12 additions & 2 deletions board/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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
1 change: 1 addition & 0 deletions board/Makefile
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions board/samsung/board-starlte.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, Markuss Broks <[email protected]>
*/

void board_init(void) {

}
3 changes: 3 additions & 0 deletions configs/starlte_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONFIG_CROSS_COMPILE="aarch64-linux-gnu-"
CONFIG_EXYNOS_9810=y
CONFIG_SAMSUNG_STARLTE=y
Empty file removed include/config/apple/n61ap.h
Empty file.
Empty file removed include/config/apple/silicon.h
Empty file.
Empty file removed include/config/apple/t7000.h
Empty file.
15 changes: 0 additions & 15 deletions include/config/auto.conf

This file was deleted.

11 changes: 0 additions & 11 deletions include/config/auto.conf.cmd

This file was deleted.

Empty file removed include/config/cross/compile.h
Empty file.
Empty file removed include/config/default/loglevel.h
Empty file.
Empty file removed include/config/enable/logging.h
Empty file.
Empty file removed include/config/exynos.h
Empty file.
Empty file removed include/config/exynos/8895.h
Empty file.
Empty file removed include/config/framebuffer/base.h
Empty file.
Empty file.
Empty file.
Empty file removed include/config/framebuffer/width.h
Empty file.
Empty file removed include/config/logging/time.h
Empty file.
Empty file removed include/config/payload/entry.h
Empty file.
Empty file removed include/config/payload/size.h
Empty file.
Empty file removed include/config/samsung/dreamlte.h
Empty file.
Empty file removed include/config/simple/fb.h
Empty file.
3 changes: 0 additions & 3 deletions include/config/tristate.conf

This file was deleted.

15 changes: 0 additions & 15 deletions include/generated/autoconf.h

This file was deleted.

0 comments on commit 9850f87

Please sign in to comment.