Support for the exynos990 and the Samsung S20

This commit is contained in:
halal-beef 2023-07-16 10:20:06 +01:00
parent c4044f40fa
commit 5901622aaa
8 changed files with 55 additions and 1 deletions

View File

@ -42,6 +42,13 @@ menu "Device Support"
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
endmenu
menu "Device Specific Addresses"
@ -54,6 +61,7 @@ menu "Device Specific Addresses"
default 0x090000000 if SAMSUNG_ZEROFLTE
default 0x090000000 if SAMSUNG_DREAMLTE
default 0x090000000 if SAMSUNG_STARLTE
default 0x090000000 if SAMSUNG_X1S
config FRAMEBUFFER_BASE
hex "Framebuffer Base Address (for SimpleFB)"
@ -64,6 +72,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
config FRAMEBUFFER_WIDTH
int "Framebuffer Width (for SimpleFB)"
@ -74,6 +83,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
config FRAMEBUFFER_HEIGHT
int "Framebuffer Height (for SimpleFB)"
@ -84,6 +94,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
config FRAMEBUFFER_STRIDE
int "Framebuffer Stride (for SimpleFB)"
@ -94,5 +105,6 @@ menu "Device Specific Addresses"
default 4 if SAMSUNG_ZEROFLTE
default 4 if SAMSUNG_DREAMLTE
default 4 if SAMSUNG_STARLTE
default 4 if SAMSUNG_X1S
endmenu

View File

@ -4,3 +4,4 @@ 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

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

@ -43,5 +43,12 @@ 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
endchoice

View File

@ -3,3 +3,4 @@ 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_EXYNOS_990) += exynos/exynos990.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;
}