Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ environment in case of a forced and buggy bootloader.
- ZEROFLTE
- DREAMLTE
- STARLTE
- STAR2LTE
- X1S
- J5LTE
- J4LTE
Expand Down
7 changes: 7 additions & 0 deletions board/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ menu "Device Support"
depends on EXYNOS_9810
help
Say Y if you want to include support for Samsung Galaxy S9

config SAMSUNG_STAR2LTE
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+

config SAMSUNG_X1S
bool "Support for Samsung Galaxy S20"
Expand Down
1 change: 1 addition & 0 deletions board/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ 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_STAR2LTE) += samsung/board-star2lte.o
lib-$(CONFIG_SAMSUNG_X1S) += samsung/board-x1s.o
lib-$(CONFIG_SAMSUNG_J5LTE) += samsung/board-j5lte.o
lib-$(CONFIG_SAMSUNG_J4LTE) += samsung/board-j4lte.o
Expand Down
47 changes: 47 additions & 0 deletions board/samsung/board-star2lte.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, Markuss Broks <[email protected]>
* Copyright (c) 2024, Ivaylo Ivanov <[email protected]>
* Copyright (c) 2025, Leah <[email protected]>
*/
#include <board.h>
#include <drivers/framework.h>
#include <lib/simplefb.h>

#define DECON_F_BASE 0x16030000
#define HW_SW_TRIG_CONTROL 0x70

// Early initialization
int star2lte_init(void)
{
/* Allow framebuffer to be written to */
*(int*) (DECON_F_BASE + HW_SW_TRIG_CONTROL) = 0x1281;
return 0;
}

#ifdef CONFIG_SIMPLE_FB
static struct video_info star2lte_fb = {
.format = FB_FORMAT_ARGB8888,
.width = 1440,
.height = 2960,
.stride = 4,
.address = (void *)0xcc000000
};
#endif

int star2lte_drv(void)
{
#ifdef CONFIG_SIMPLE_FB
REGISTER_DRIVER("simplefb", simplefb_probe, &star2lte_fb);
#endif
return 0;
}

struct board_data board_ops = {
.name = "samsung-star2lte",
.ops = {
.early_init = star2lte_init,
.drivers_init = star2lte_drv,
},
.quirks = 0
};
6 changes: 6 additions & 0 deletions configs/star2lte_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CONFIG_POSITION_INDEPENDENT=y
CONFIG_EXYNOS_9810=y
CONFIG_SAMSUNG_STAR2LTE=y
CONFIG_TEXT_BASE=0x87000000
CONFIG_PAYLOAD_ENTRY=0x90000000
CONFIG_RAMDISK_ENTRY=0x84000000