Skip to content

Commit

Permalink
soc: exynos: Add basic support for Exynos 9810
Browse files Browse the repository at this point in the history
Signed-off-by: Markuss Broks <[email protected]>
  • Loading branch information
nergzd723 authored and ivoszbg committed Jun 14, 2022
1 parent fd8ed2d commit ad48f24
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/soc/exynos9810.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, Markuss Broks <[email protected]>
*/

#ifndef EXYNOS9810_H_ /* Include guard */
#define EXYNOS9810_H_

#define DECON_F_BASE 0x16030000
#define HW_SW_TRIG_CONTROL 0x70

#endif // EXYNOS9810_H_
7 changes: 7 additions & 0 deletions soc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

1 change: 1 addition & 0 deletions soc/Makefile
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions soc/exynos/exynos9810.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, Markuss Broks <[email protected]>
*/

#include <soc/exynos9810.h>

void soc_init(void) {
/* Allow framebuffer to be written to */
*(int*) (DECON_F_BASE + HW_SW_TRIG_CONTROL) = 0x1281;
}

0 comments on commit ad48f24

Please sign in to comment.