mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2024-11-24 21:20:08 +00:00
soc: exynos: Add basic support for Exynos 9810
Signed-off-by: Markuss Broks <markuss.broks@gmail.com>
This commit is contained in:
parent
fd8ed2d1b8
commit
ad48f247fb
12
include/soc/exynos9810.h
Normal file
12
include/soc/exynos9810.h
Normal 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_
|
@ -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,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
11
soc/exynos/exynos9810.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user