mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2024-11-10 06:00:07 +00:00
soc: exynos: Add basic support for Exynos 7885
Signed-off-by: David Wronek <w.david0@protonmail.com>
This commit is contained in:
parent
e246a8d60a
commit
cc694062ec
12
include/soc/exynos7885.h
Normal file
12
include/soc/exynos7885.h
Normal 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_
|
@ -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
|
||||
|
@ -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
11
soc/exynos/exynos7885.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user