Merge pull request #18 from chmcax/gta4xl

Add support for gta4xl (Galaxy Tab S6 Lite)
This commit is contained in:
Ivaylo Ivanov 2024-09-15 11:52:06 +03:00 committed by GitHub
commit 3fae0e9880
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 54 additions and 1 deletions

View File

@ -68,6 +68,13 @@ menu "Device Support"
depends on QC32_8916
help
Say Y if you want to include arm32 support for Samsung Galaxy J5 2015
config SAMSUNG_GTA4XL
bool "Support for Samsung Galaxy Tab S6 Lite"
default n
depends on EXYNOS_9610
help
Say Y if you want to include support for Samsung Galaxy Tab S6 Lite
endmenu
menu "Device Specific Addresses"
@ -88,6 +95,7 @@ menu "Device Specific Addresses"
default 0x090000000 if SAMSUNG_X1S
default 0x050000000 if SAMSUNG_J4LTE
default 0x090000000 if SAMSUNG_J5LTE
default 0x090000000 if SAMSUNG_GTA4XL
config FRAMEBUFFER_BASE
hex "Framebuffer Base Address (for SimpleFB)"
@ -102,6 +110,7 @@ menu "Device Specific Addresses"
default 0x0F1000000 if SAMSUNG_X1S
default 0x067000000 if SAMSUNG_J4LTE
default 0x08e000000 if SAMSUNG_J5LTE
default 0x0CA000000 if SAMSUNG_GTA4XL
config FRAMEBUFFER_WIDTH
int "Framebuffer Width (for SimpleFB)"
@ -116,6 +125,7 @@ menu "Device Specific Addresses"
default 1440 if SAMSUNG_X1S
default 720 if SAMSUNG_J4LTE
default 720 if SAMSUNG_J5LTE
default 1200 if SAMSUNG_GTA4XL
config FRAMEBUFFER_HEIGHT
int "Framebuffer Height (for SimpleFB)"
@ -130,6 +140,7 @@ menu "Device Specific Addresses"
default 3200 if SAMSUNG_X1S
default 1280 if SAMSUNG_J4LTE
default 1280 if SAMSUNG_J5LTE
default 2000 if SAMSUNG_GTA4XL
config FRAMEBUFFER_STRIDE
int "Framebuffer Stride (for SimpleFB)"
@ -144,6 +155,7 @@ menu "Device Specific Addresses"
default 4 if SAMSUNG_X1S
default 4 if SAMSUNG_J4LTE
default 3 if SAMSUNG_J5LTE
default 4 if SAMSUNG_GTA4XL
config FRAMEBUFFER_BGRA
bool "Framebuffer BGRA (for SimpleFB)"

View File

@ -8,3 +8,4 @@ lib-$(CONFIG_SAMSUNG_STARLTE) += samsung/board-starlte.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
lib-$(CONFIG_SAMSUNG_GTA4XL) += samsung/board-gta4xl.o

View File

@ -0,0 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2024 Alexandru Chimac <alexchimac@protonmail.com>
*/
void board_init(void) {
}

3
configs/gta4xl_defconfig Normal file
View File

@ -0,0 +1,3 @@
CONFIG_CROSS_COMPILE="aarch64-linux-gnu-"
CONFIG_EXYNOS_9610=y
CONFIG_SAMSUNG_GTA4XL=y

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

@ -0,0 +1,12 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2024 Chimac Alexandru <alexchimac@protonmail.com>
*/
#ifndef EXYNOS9610_H_ // Include guard
#define EXYNOS9610_H_
#define DECON_F_BASE 0x148B0000
#define HW_SW_TRIG_CONTROL 0x70
#endif // EXYNOS9610_H_

View File

@ -55,6 +55,13 @@ config QUALCOMM
help
Say Y if your device uses Samsung Exynos8895 SoC
config EXYNOS_9610
bool "Support for Exynos 9610"
default n
select EXYNOS
help
Say Y if your device uses Samsung Exynos9610 SoC
config EXYNOS_9810
bool "Support for Exynos 9810"
default n

View File

@ -4,6 +4,7 @@ lib-$(CONFIG_EXYNOS_7420) += exynos/exynos7420.o
lib-$(CONFIG_EXYNOS_7570) += exynos/exynos7570.o
lib-$(CONFIG_EXYNOS_7885) += exynos/exynos7885.o
lib-$(CONFIG_EXYNOS_8895) += exynos/exynos8895.o
lib-$(CONFIG_EXYNOS_9610) += exynos/exynos9610.o
lib-$(CONFIG_EXYNOS_9810) += exynos/exynos9810.o
lib-$(CONFIG_EXYNOS_990) += exynos/exynos990.o
lib-$(CONFIG_QC32_8916) += qualcomm/msm8916.o

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

@ -0,0 +1,10 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2024 Alexandru Chimac <alexchimac@protonmail.com>
*/
#include <soc/exynos9610.h>
void soc_init(void) {
*(int *) (DECON_F_BASE + HW_SW_TRIG_CONTROL) = 0x1281;
}