soc: exynos: Add basic support for Exynos 7420

Signed-off-by: Faiz Faadhillah <faiz.faadhillah@gmail.com>
This commit is contained in:
Faiz Faadhillah 2022-06-29 12:59:54 +07:00
parent 3643d6a0c8
commit 1f62b4e5ac
4 changed files with 29 additions and 0 deletions

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

@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, Faiz Faadhillah <faiz.faadhillah@gmail.com>
*/
#ifndef EXYNOS7420_H_ /* Include guard */
#define EXYNOS7420_H_
#define DECON_F_BASE 0x13930000
#define HW_SW_TRIG_CONTROL 0x6b0
#endif // EXYNOS7420_H_

View File

@ -16,6 +16,12 @@ choice
help
Say Y if your device uses Apple T7000 SoC
config EXYNOS_7420
bool "Support for Exynos 7420"
default n
select EXYNOS
help
Say Y if your device uses Samsung Exynos7420 SoC
config EXYNOS_7885
bool "Support for Exynos 7885"

View File

@ -1,4 +1,5 @@
lib-$(CONFIG_APPLE_T7000) += apple/t7000.o
lib-$(CONFIG_EXYNOS_7420) += exynos/exynos7420.o
lib-$(CONFIG_EXYNOS_7885) += exynos/exynos7885.o
lib-$(CONFIG_EXYNOS_8895) += exynos/exynos8895.o
lib-$(CONFIG_EXYNOS_9810) += exynos/exynos9810.o

10
soc/exynos/exynos7420.c Normal file
View File

@ -0,0 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, Faiz Faadhillah <faiz.faadhillah@gmail.com>
*/
#include <soc/exynos7420.h>
void soc_init(void) {
*(int*) (DECON_F_BASE + HW_SW_TRIG_CONTROL) = 0x2058;
}