mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2024-11-24 05:00:10 +00:00
soc: exynos: Add basic support for Exynos 7420
Signed-off-by: Faiz Faadhillah <faiz.faadhillah@gmail.com>
This commit is contained in:
parent
3643d6a0c8
commit
1f62b4e5ac
12
include/soc/exynos7420.h
Normal file
12
include/soc/exynos7420.h
Normal 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_
|
@ -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"
|
||||
|
@ -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
10
soc/exynos/exynos7420.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user