soc: exynos: Add basic support for Exynos 9810

Signed-off-by: Markuss Broks <markuss.broks@gmail.com>
This commit is contained in:
Markuss Broks 2022-06-14 18:30:11 +03:00 committed by ivoszbg
parent fd8ed2d1b8
commit ad48f247fb
4 changed files with 31 additions and 0 deletions

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

@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, Markuss Broks <markuss.broks@gmail.com>
*/
#ifndef EXYNOS9810_H_ /* Include guard */
#define EXYNOS9810_H_
#define DECON_F_BASE 0x16030000
#define HW_SW_TRIG_CONTROL 0x70
#endif // EXYNOS9810_H_

View File

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

View File

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

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

@ -0,0 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, Markuss Broks <markuss.broks@gmail.com>
*/
#include <soc/exynos9810.h>
void soc_init(void) {
/* Allow framebuffer to be written to */
*(int*) (DECON_F_BASE + HW_SW_TRIG_CONTROL) = 0x1281;
}