From 1f62b4e5ac62889e0524e5666bd9750d70f843cd Mon Sep 17 00:00:00 2001 From: Faiz Faadhillah Date: Wed, 29 Jun 2022 12:59:54 +0700 Subject: [PATCH] soc: exynos: Add basic support for Exynos 7420 Signed-off-by: Faiz Faadhillah --- include/soc/exynos7420.h | 12 ++++++++++++ soc/Kconfig | 6 ++++++ soc/Makefile | 1 + soc/exynos/exynos7420.c | 10 ++++++++++ 4 files changed, 29 insertions(+) create mode 100644 include/soc/exynos7420.h create mode 100644 soc/exynos/exynos7420.c diff --git a/include/soc/exynos7420.h b/include/soc/exynos7420.h new file mode 100644 index 0000000..b4f2e84 --- /dev/null +++ b/include/soc/exynos7420.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2022, Faiz Faadhillah + */ + +#ifndef EXYNOS7420_H_ /* Include guard */ +#define EXYNOS7420_H_ + +#define DECON_F_BASE 0x13930000 +#define HW_SW_TRIG_CONTROL 0x6b0 + +#endif // EXYNOS7420_H_ diff --git a/soc/Kconfig b/soc/Kconfig index 4b30d6d..8daf36d 100644 --- a/soc/Kconfig +++ b/soc/Kconfig @@ -16,6 +16,12 @@ choice help Say Y if your device uses Apple T7000 SoC + config EXYNOS_7420 + bool "Support for Exynos 7420" + default n + select EXYNOS + help + Say Y if your device uses Samsung Exynos7420 SoC config EXYNOS_7885 bool "Support for Exynos 7885" diff --git a/soc/Makefile b/soc/Makefile index b5dcf11..5cee501 100644 --- a/soc/Makefile +++ b/soc/Makefile @@ -1,4 +1,5 @@ lib-$(CONFIG_APPLE_T7000) += apple/t7000.o +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 diff --git a/soc/exynos/exynos7420.c b/soc/exynos/exynos7420.c new file mode 100644 index 0000000..32df69b --- /dev/null +++ b/soc/exynos/exynos7420.c @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2022, Faiz Faadhillah + */ + +#include + +void soc_init(void) { + *(int*) (DECON_F_BASE + HW_SW_TRIG_CONTROL) = 0x2058; +}