From ad48f247fbab51bf098c5d4025bacdc10d47e25a Mon Sep 17 00:00:00 2001 From: Markuss Broks Date: Tue, 14 Jun 2022 18:30:11 +0300 Subject: [PATCH] soc: exynos: Add basic support for Exynos 9810 Signed-off-by: Markuss Broks --- include/soc/exynos9810.h | 12 ++++++++++++ soc/Kconfig | 7 +++++++ soc/Makefile | 1 + soc/exynos/exynos9810.c | 11 +++++++++++ 4 files changed, 31 insertions(+) create mode 100644 include/soc/exynos9810.h create mode 100644 soc/exynos/exynos9810.c diff --git a/include/soc/exynos9810.h b/include/soc/exynos9810.h new file mode 100644 index 00000000..95358902 --- /dev/null +++ b/include/soc/exynos9810.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2022, Markuss Broks + */ + +#ifndef EXYNOS9810_H_ /* Include guard */ +#define EXYNOS9810_H_ + +#define DECON_F_BASE 0x16030000 +#define HW_SW_TRIG_CONTROL 0x70 + +#endif // EXYNOS9810_H_ diff --git a/soc/Kconfig b/soc/Kconfig index 8f913083..9dde64d5 100644 --- a/soc/Kconfig +++ b/soc/Kconfig @@ -22,5 +22,12 @@ choice select EXYNOS help Say Y if your device uses Samsung Exynos8895 SoC + + config EXYNOS_9810 + bool "Support for Exynos 9810" + default n + select EXYNOS + help + Say Y if your device uses Samsung Exynos9810 SoC endchoice diff --git a/soc/Makefile b/soc/Makefile index 018c5805..f0f0aa0c 100644 --- a/soc/Makefile +++ b/soc/Makefile @@ -1,2 +1,3 @@ lib-$(CONFIG_APPLE_T7000) += apple/t7000.o lib-$(CONFIG_EXYNOS_8895) += exynos/exynos8895.o +lib-$(CONFIG_EXYNOS_9810) += exynos/exynos9810.o diff --git a/soc/exynos/exynos9810.c b/soc/exynos/exynos9810.c new file mode 100644 index 00000000..cbd749fc --- /dev/null +++ b/soc/exynos/exynos9810.c @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2022, Markuss Broks + */ + +#include + +void soc_init(void) { + /* Allow framebuffer to be written to */ + *(int*) (DECON_F_BASE + HW_SW_TRIG_CONTROL) = 0x1281; +}