soc: Add basic support for Exynos9610

Signed-off-by: Alexandru Chimac <alexchimac@protonmail.com>
This commit is contained in:
chmcax 2024-09-14 22:58:22 +03:00
parent 54d3d93a92
commit 0d2f55d9f6
4 changed files with 30 additions and 0 deletions

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 help
Say Y if your device uses Samsung Exynos8895 SoC 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 config EXYNOS_9810
bool "Support for Exynos 9810" bool "Support for Exynos 9810"
default n 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_7570) += exynos/exynos7570.o
lib-$(CONFIG_EXYNOS_7885) += exynos/exynos7885.o lib-$(CONFIG_EXYNOS_7885) += exynos/exynos7885.o
lib-$(CONFIG_EXYNOS_8895) += exynos/exynos8895.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_9810) += exynos/exynos9810.o
lib-$(CONFIG_EXYNOS_990) += exynos/exynos990.o lib-$(CONFIG_EXYNOS_990) += exynos/exynos990.o
lib-$(CONFIG_QC32_8916) += qualcomm/msm8916.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;
}