From cc694062ec07528d507c30c8a72ad233049e287f Mon Sep 17 00:00:00 2001 From: David Wronek Date: Wed, 15 Jun 2022 17:45:19 +0300 Subject: [PATCH] soc: exynos: Add basic support for Exynos 7885 Signed-off-by: David Wronek --- include/soc/exynos7885.h | 12 ++++++++++++ soc/Kconfig | 8 ++++++++ soc/Makefile | 1 + soc/exynos/exynos7885.c | 11 +++++++++++ 4 files changed, 32 insertions(+) create mode 100644 include/soc/exynos7885.h create mode 100644 soc/exynos/exynos7885.c diff --git a/include/soc/exynos7885.h b/include/soc/exynos7885.h new file mode 100644 index 0000000..4e1ff0b --- /dev/null +++ b/include/soc/exynos7885.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2022, David Wronek + */ + +#ifndef EXYNOS7885_H_ /* Include guard */ +#define EXYNOS7885_H_ + +#define DECON_F_BASE 0x14860000 +#define HW_SW_TRIG_CONTROL 0x70 + +#endif // EXYNOS7885_H_ diff --git a/soc/Kconfig b/soc/Kconfig index 9dde64d..4b30d6d 100644 --- a/soc/Kconfig +++ b/soc/Kconfig @@ -16,6 +16,14 @@ choice help Say Y if your device uses Apple T7000 SoC + + config EXYNOS_7885 + bool "Support for Exynos 7885" + default n + select EXYNOS + help + Say Y if your device uses Samsung Exynos7885 SoC + config EXYNOS_8895 bool "Support for Exynos 8895" default n diff --git a/soc/Makefile b/soc/Makefile index f0f0aa0..b5dcf11 100644 --- a/soc/Makefile +++ b/soc/Makefile @@ -1,3 +1,4 @@ lib-$(CONFIG_APPLE_T7000) += apple/t7000.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/exynos7885.c b/soc/exynos/exynos7885.c new file mode 100644 index 0000000..cbbb3e7 --- /dev/null +++ b/soc/exynos/exynos7885.c @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2022, David Wronek + */ + +#include + +void soc_init(void) { + /* Allow framebuffer to be written to */ + *(int*) (DECON_F_BASE + HW_SW_TRIG_CONTROL) = 0x1281; +}