Merge pull request #6 from halal-beef/master

Support for the exynos990 and the Samsung S20
This commit is contained in:
Ivaylo Ivanov 2023-07-18 15:01:20 +03:00 committed by GitHub
commit d85632eb76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 58 additions and 4 deletions

View File

@ -41,6 +41,13 @@ menu "Device Support"
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"
default n
depends on EXYNOS_990
help
Say Y if you want to include support for Samsung Galaxy S20
config SAMSUNG_J5LTE
bool "Support for Samsung Galaxy J5 2015"
@ -60,8 +67,10 @@ menu "Device Specific Addresses"
default 0x090000000 if SAMSUNG_ZEROFLTE
default 0x090000000 if SAMSUNG_DREAMLTE
default 0x090000000 if SAMSUNG_STARLTE
default 0x090000000 if SAMSUNG_X1S
default 0x090000000 if SAMSUNG_J5LTE
config FRAMEBUFFER_BASE
hex "Framebuffer Base Address (for SimpleFB)"
depends on SIMPLE_FB
@ -71,6 +80,7 @@ menu "Device Specific Addresses"
default 0x0e2a00000 if SAMSUNG_ZEROFLTE
default 0x0cc000000 if SAMSUNG_DREAMLTE
default 0x0cc000000 if SAMSUNG_STARLTE
default 0x0F1000000 if SAMSUNG_X1S
default 0x08e000000 if SAMSUNG_J5LTE
config FRAMEBUFFER_WIDTH
@ -82,6 +92,7 @@ menu "Device Specific Addresses"
default 1440 if SAMSUNG_ZEROFLTE
default 1440 if SAMSUNG_DREAMLTE
default 1440 if SAMSUNG_STARLTE
default 1440 if SAMSUNG_X1S
default 720 if SAMSUNG_J5LTE
config FRAMEBUFFER_HEIGHT
@ -93,6 +104,7 @@ menu "Device Specific Addresses"
default 2560 if SAMSUNG_ZEROFLTE
default 2960 if SAMSUNG_DREAMLTE
default 2960 if SAMSUNG_STARLTE
default 3200 if SAMSUNG_X1S
default 1280 if SAMSUNG_J5LTE
config FRAMEBUFFER_STRIDE
@ -104,6 +116,7 @@ menu "Device Specific Addresses"
default 4 if SAMSUNG_ZEROFLTE
default 4 if SAMSUNG_DREAMLTE
default 4 if SAMSUNG_STARLTE
default 4 if SAMSUNG_X1S
default 4 if SAMSUNG_J5LTE
endmenu

View File

@ -4,4 +4,5 @@ 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_J5LTE) += samsung/board-j5lte.o
lib-$(CONFIG_SAMSUNG_X1S) += samsung/board-x1s.o
lib-$(CONFIG_SAMSUNG_J5LTE) += samsung/board-j5lte.o

View File

@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, halal-beef <78730004+halal-beef@users.noreply.github.com>
*/
void board_init(void) {
}

3
configs/x1s_defconfig Normal file
View File

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

12
include/soc/exynos990.h Normal file
View File

@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, halal-beef <78730004+halal-beef@users.noreply.github.com>
*/
#ifndef EXYNOS990_H_ /* Include guard */
#define EXYNOS990_H_
#define DECON_F_BASE 0x19050000
#define HW_SW_TRIG_CONTROL 0x70
#endif // EXYNOS990_H_

View File

@ -47,6 +47,13 @@ choice
select EXYNOS
help
Say Y if your device uses Samsung Exynos9810 SoC
config EXYNOS_990
bool "Support for Exynos 990"
default n
select EXYNOS
help
Say Y if your device uses Samsung Exynos990 SoC
config QC32_8916
bool "Support for QUALCOMM MSM8916"
@ -54,5 +61,4 @@ choice
select QUALCOMM
help
Say Y if your device uses this Qualcomm SoC
endchoice
endchoice

View File

@ -3,4 +3,5 @@ lib-$(CONFIG_EXYNOS_7420) += exynos/exynos7420.o
lib-$(CONFIG_EXYNOS_7885) += exynos/exynos7885.o
lib-$(CONFIG_EXYNOS_8895) += exynos/exynos8895.o
lib-$(CONFIG_EXYNOS_9810) += exynos/exynos9810.o
lib-$(CONFIG_QC32_8916) += qualcomm/msm8916.o
lib-$(CONFIG_EXYNOS_990) += exynos/exynos990.o
lib-$(CONFIG_QC32_8916) += qualcomm/msm8916.o

10
soc/exynos/exynos990.c Normal file
View File

@ -0,0 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, halal-beef <78730004+halal-beef@users.noreply.github.com>
*/
#include <soc/exynos990.h>
void soc_init(void) {
*(int*) (DECON_F_BASE + HW_SW_TRIG_CONTROL) = 0x1281;
}