soc: exynos: Add basic support for Exynos 7885

Signed-off-by: David Wronek <w.david0@protonmail.com>
This commit is contained in:
David Wronek 2022-06-15 17:45:19 +03:00 committed by ivoszbg
parent e246a8d60a
commit cc694062ec
4 changed files with 32 additions and 0 deletions

12
include/soc/exynos7885.h Normal file
View File

@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, David Wronek <w.david0@protonmail.com>
*/
#ifndef EXYNOS7885_H_ /* Include guard */
#define EXYNOS7885_H_
#define DECON_F_BASE 0x14860000
#define HW_SW_TRIG_CONTROL 0x70
#endif // EXYNOS7885_H_

View File

@ -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

View File

@ -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

11
soc/exynos/exynos7885.c Normal file
View File

@ -0,0 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, David Wronek <w.david0@protonmail.com>
*/
#include <soc/exynos7885.h>
void soc_init(void) {
/* Allow framebuffer to be written to */
*(int*) (DECON_F_BASE + HW_SW_TRIG_CONTROL) = 0x1281;
}