diff --git a/include/soc/exynos9610.h b/include/soc/exynos9610.h new file mode 100644 index 0000000..50f3548 --- /dev/null +++ b/include/soc/exynos9610.h @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2024 Chimac Alexandru + */ + +#ifndef EXYNOS9610_H_ // Include guard +#define EXYNOS9610_H_ + +#define DECON_F_BASE 0x148B0000 +#define HW_SW_TRIG_CONTROL 0x70 + +#endif // EXYNOS9610_H_ diff --git a/soc/Kconfig b/soc/Kconfig index 11d2da7..ae15cfc 100644 --- a/soc/Kconfig +++ b/soc/Kconfig @@ -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 diff --git a/soc/Makefile b/soc/Makefile index 1f3b650..bf9edb6 100644 --- a/soc/Makefile +++ b/soc/Makefile @@ -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 diff --git a/soc/exynos/exynos9610.c b/soc/exynos/exynos9610.c new file mode 100644 index 0000000..20758bb --- /dev/null +++ b/soc/exynos/exynos9610.c @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2024 Alexandru Chimac + */ + +#include + +void soc_init(void) { + *(int *) (DECON_F_BASE + HW_SW_TRIG_CONTROL) = 0x1281; +}