mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2024-11-22 03:55:19 +00:00
Compare commits
6 Commits
ed246836e9
...
7ed7b2b902
Author | SHA1 | Date | |
---|---|---|---|
|
7ed7b2b902 | ||
|
f7906fff57 | ||
|
c93df2826e | ||
|
db0f9e4bfd | ||
|
9d2a29835c | ||
|
6f83a56d5e |
@ -7,6 +7,13 @@ menu "Device Support"
|
|||||||
help
|
help
|
||||||
Say Y if you want to include support for iPhone 6
|
Say Y if you want to include support for iPhone 6
|
||||||
|
|
||||||
|
config SAMSUNG_C1S
|
||||||
|
bool "Support for Samsung Galaxy Note20"
|
||||||
|
default n
|
||||||
|
depends on EXYNOS_990
|
||||||
|
help
|
||||||
|
Say Y if you want to include support for Samsung Galaxy Note20
|
||||||
|
|
||||||
config SAMSUNG_NOBLELTE
|
config SAMSUNG_NOBLELTE
|
||||||
bool "Support for Samsung Galaxy Note5"
|
bool "Support for Samsung Galaxy Note5"
|
||||||
default n
|
default n
|
||||||
@ -55,6 +62,13 @@ menu "Device Support"
|
|||||||
depends on QC32_8916
|
depends on QC32_8916
|
||||||
help
|
help
|
||||||
Say Y if you want to include arm32 support for Samsung Galaxy J5 2015
|
Say Y if you want to include arm32 support for Samsung Galaxy J5 2015
|
||||||
|
|
||||||
|
config SAMSUNG_J4LTE
|
||||||
|
bool "Support for Samsung Galaxy J4 2018"
|
||||||
|
default n
|
||||||
|
depends on EXYNOS_7570
|
||||||
|
help
|
||||||
|
Say Y if you want to include arm64 support for Samsung Galaxy J4 2018
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "Device Specific Addresses"
|
menu "Device Specific Addresses"
|
||||||
@ -62,6 +76,7 @@ menu "Device Specific Addresses"
|
|||||||
config PAYLOAD_ENTRY
|
config PAYLOAD_ENTRY
|
||||||
hex "Payload Entry Address"
|
hex "Payload Entry Address"
|
||||||
default 0x830000000 if APPLE_N61AP
|
default 0x830000000 if APPLE_N61AP
|
||||||
|
default 0x090000000 if SAMSUNG_C1S
|
||||||
default 0x050000000 if SAMSUNG_NOBLELTE
|
default 0x050000000 if SAMSUNG_NOBLELTE
|
||||||
default 0x090000000 if SAMSUNG_JACKPOTLTE
|
default 0x090000000 if SAMSUNG_JACKPOTLTE
|
||||||
default 0x090000000 if SAMSUNG_ZEROFLTE
|
default 0x090000000 if SAMSUNG_ZEROFLTE
|
||||||
@ -69,12 +84,14 @@ menu "Device Specific Addresses"
|
|||||||
default 0x090000000 if SAMSUNG_STARLTE
|
default 0x090000000 if SAMSUNG_STARLTE
|
||||||
default 0x090000000 if SAMSUNG_X1S
|
default 0x090000000 if SAMSUNG_X1S
|
||||||
default 0x090000000 if SAMSUNG_J5LTE
|
default 0x090000000 if SAMSUNG_J5LTE
|
||||||
|
default 0x040000000 if SAMSUNG_J4LTE
|
||||||
|
|
||||||
|
|
||||||
config FRAMEBUFFER_BASE
|
config FRAMEBUFFER_BASE
|
||||||
hex "Framebuffer Base Address (for SimpleFB)"
|
hex "Framebuffer Base Address (for SimpleFB)"
|
||||||
depends on SIMPLE_FB
|
depends on SIMPLE_FB
|
||||||
default 0x83e900000 if APPLE_N61AP
|
default 0x83e900000 if APPLE_N61AP
|
||||||
|
default 0x0F1000000 if SAMSUNG_C1S
|
||||||
default 0x0e2a00000 if SAMSUNG_NOBLELTE
|
default 0x0e2a00000 if SAMSUNG_NOBLELTE
|
||||||
default 0x0ec000000 if SAMSUNG_JACKPOTLTE
|
default 0x0ec000000 if SAMSUNG_JACKPOTLTE
|
||||||
default 0x0e2a00000 if SAMSUNG_ZEROFLTE
|
default 0x0e2a00000 if SAMSUNG_ZEROFLTE
|
||||||
@ -82,11 +99,13 @@ menu "Device Specific Addresses"
|
|||||||
default 0x0cc000000 if SAMSUNG_STARLTE
|
default 0x0cc000000 if SAMSUNG_STARLTE
|
||||||
default 0x0F1000000 if SAMSUNG_X1S
|
default 0x0F1000000 if SAMSUNG_X1S
|
||||||
default 0x08e000000 if SAMSUNG_J5LTE
|
default 0x08e000000 if SAMSUNG_J5LTE
|
||||||
|
default 0x067000000 if SAMSUNG_J4LTE
|
||||||
|
|
||||||
config FRAMEBUFFER_WIDTH
|
config FRAMEBUFFER_WIDTH
|
||||||
int "Framebuffer Width (for SimpleFB)"
|
int "Framebuffer Width (for SimpleFB)"
|
||||||
depends on SIMPLE_FB
|
depends on SIMPLE_FB
|
||||||
default 752 if APPLE_N61AP
|
default 752 if APPLE_N61AP
|
||||||
|
default 1080 if SAMSUNG_C1S
|
||||||
default 1440 if SAMSUNG_NOBLELTE
|
default 1440 if SAMSUNG_NOBLELTE
|
||||||
default 1080 if SAMSUNG_JACKPOTLTE
|
default 1080 if SAMSUNG_JACKPOTLTE
|
||||||
default 1440 if SAMSUNG_ZEROFLTE
|
default 1440 if SAMSUNG_ZEROFLTE
|
||||||
@ -94,11 +113,13 @@ menu "Device Specific Addresses"
|
|||||||
default 1440 if SAMSUNG_STARLTE
|
default 1440 if SAMSUNG_STARLTE
|
||||||
default 1440 if SAMSUNG_X1S
|
default 1440 if SAMSUNG_X1S
|
||||||
default 720 if SAMSUNG_J5LTE
|
default 720 if SAMSUNG_J5LTE
|
||||||
|
default 720 if SAMSUNG_J4LTE
|
||||||
|
|
||||||
config FRAMEBUFFER_HEIGHT
|
config FRAMEBUFFER_HEIGHT
|
||||||
int "Framebuffer Height (for SimpleFB)"
|
int "Framebuffer Height (for SimpleFB)"
|
||||||
depends on SIMPLE_FB
|
depends on SIMPLE_FB
|
||||||
default 1334 if APPLE_N61AP
|
default 1334 if APPLE_N61AP
|
||||||
|
default 2400 if SAMSUNG_C1S
|
||||||
default 2560 if SAMSUNG_NOBLELTE
|
default 2560 if SAMSUNG_NOBLELTE
|
||||||
default 2220 if SAMSUNG_JACKPOTLTE
|
default 2220 if SAMSUNG_JACKPOTLTE
|
||||||
default 2560 if SAMSUNG_ZEROFLTE
|
default 2560 if SAMSUNG_ZEROFLTE
|
||||||
@ -106,11 +127,13 @@ menu "Device Specific Addresses"
|
|||||||
default 2960 if SAMSUNG_STARLTE
|
default 2960 if SAMSUNG_STARLTE
|
||||||
default 3200 if SAMSUNG_X1S
|
default 3200 if SAMSUNG_X1S
|
||||||
default 1280 if SAMSUNG_J5LTE
|
default 1280 if SAMSUNG_J5LTE
|
||||||
|
default 1280 if SAMSUNG_J4LTE
|
||||||
|
|
||||||
config FRAMEBUFFER_STRIDE
|
config FRAMEBUFFER_STRIDE
|
||||||
int "Framebuffer Stride (for SimpleFB)"
|
int "Framebuffer Stride (for SimpleFB)"
|
||||||
depends on SIMPLE_FB
|
depends on SIMPLE_FB
|
||||||
default 4 if APPLE_N61AP
|
default 4 if APPLE_N61AP
|
||||||
|
default 4 if SAMSUNG_C1S
|
||||||
default 4 if SAMSUNG_NOBLELTE
|
default 4 if SAMSUNG_NOBLELTE
|
||||||
default 4 if SAMSUNG_JACKPOTLTE
|
default 4 if SAMSUNG_JACKPOTLTE
|
||||||
default 4 if SAMSUNG_ZEROFLTE
|
default 4 if SAMSUNG_ZEROFLTE
|
||||||
@ -118,5 +141,6 @@ menu "Device Specific Addresses"
|
|||||||
default 4 if SAMSUNG_STARLTE
|
default 4 if SAMSUNG_STARLTE
|
||||||
default 4 if SAMSUNG_X1S
|
default 4 if SAMSUNG_X1S
|
||||||
default 3 if SAMSUNG_J5LTE
|
default 3 if SAMSUNG_J5LTE
|
||||||
|
default 4 if SAMSUNG_J4LTE
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
lib-$(CONFIG_APPLE_N61AP) += apple/board-n61ap.o
|
lib-$(CONFIG_APPLE_N61AP) += apple/board-n61ap.o
|
||||||
|
lib-$(CONFIG_SAMSUNG_C1S) += samsung/board-c1s.o
|
||||||
lib-$(CONFIG_SAMSUNG_NOBLELTE) += samsung/board-noblelte.o
|
lib-$(CONFIG_SAMSUNG_NOBLELTE) += samsung/board-noblelte.o
|
||||||
lib-$(CONFIG_SAMSUNG_JACKPOTLTE) += samsung/board-jackpotlte.o
|
lib-$(CONFIG_SAMSUNG_JACKPOTLTE) += samsung/board-jackpotlte.o
|
||||||
lib-$(CONFIG_SAMSUNG_ZEROFLTE) += samsung/board-zeroflte.o
|
lib-$(CONFIG_SAMSUNG_ZEROFLTE) += samsung/board-zeroflte.o
|
||||||
lib-$(CONFIG_SAMSUNG_DREAMLTE) += samsung/board-dreamlte.o
|
lib-$(CONFIG_SAMSUNG_DREAMLTE) += samsung/board-dreamlte.o
|
||||||
lib-$(CONFIG_SAMSUNG_STARLTE) += samsung/board-starlte.o
|
lib-$(CONFIG_SAMSUNG_STARLTE) += samsung/board-starlte.o
|
||||||
lib-$(CONFIG_SAMSUNG_X1S) += samsung/board-x1s.o
|
lib-$(CONFIG_SAMSUNG_X1S) += samsung/board-x1s.o
|
||||||
lib-$(CONFIG_SAMSUNG_J5LTE) += samsung/board-j5lte.o
|
lib-$(CONFIG_SAMSUNG_J5LTE) += samsung/board-j5lte.o
|
||||||
|
lib-$(CONFIG_SAMSUNG_J4LTE) += samsung/board-j4lte.o
|
9
board/samsung/board-c1s.c
Executable file
9
board/samsung/board-c1s.c
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
|
/*
|
||||||
|
* Copyright (c) BotchedRPR <thenxguy0@gmail.com>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
void board_init(void) {
|
||||||
|
|
||||||
|
}
|
8
board/samsung/board-j4lte.c
Normal file
8
board/samsung/board-j4lte.c
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, predefine <predefine@yandex.ru>
|
||||||
|
*/
|
||||||
|
|
||||||
|
void board_init(void) {
|
||||||
|
|
||||||
|
}
|
3
configs/c1s_defconfig
Executable file
3
configs/c1s_defconfig
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
CONFIG_CROSS_COMPILE="aarch64-linux-gnu-"
|
||||||
|
CONFIG_EXYNOS_990=y
|
||||||
|
CONFIG_SAMSUNG_C1S=y
|
3
configs/j4lte_defconfig
Normal file
3
configs/j4lte_defconfig
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
CONFIG_CROSS_COMPILE="aarch64-linux-gnu-"
|
||||||
|
CONFIG_EXYNOS_7570=y
|
||||||
|
CONFIG_SAMSUNG_J4LTE=y
|
12
include/soc/exynos7570.h
Normal file
12
include/soc/exynos7570.h
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, predefine <predefine@yandex.ru>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef EXYNOS7570_H_ /* Include guard */
|
||||||
|
#define EXYNOS7570_H_
|
||||||
|
|
||||||
|
#define DECON_F_BASE 0x14830000
|
||||||
|
#define HW_SW_TRIG_CONTROL 0x70
|
||||||
|
|
||||||
|
#endif // EXYNOS7570_H_
|
9
include/soc/t8010.h
Normal file
9
include/soc/t8010.h
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef T8010_H_ /* Include guard */
|
||||||
|
#define T8010_H_
|
||||||
|
|
||||||
|
#endif // T8010_H_
|
14
soc/Kconfig
14
soc/Kconfig
@ -20,6 +20,13 @@ config QUALCOMM
|
|||||||
help
|
help
|
||||||
Say Y if your device uses Apple T7000 SoC
|
Say Y if your device uses Apple T7000 SoC
|
||||||
|
|
||||||
|
config APPLE_T8010
|
||||||
|
bool "Support for Apple T8010"
|
||||||
|
default n
|
||||||
|
select APPLE_SILICON
|
||||||
|
help
|
||||||
|
Say Y if your device uses Apple T8010 SoC
|
||||||
|
|
||||||
config EXYNOS_7420
|
config EXYNOS_7420
|
||||||
bool "Support for Exynos 7420"
|
bool "Support for Exynos 7420"
|
||||||
default n
|
default n
|
||||||
@ -27,6 +34,13 @@ config QUALCOMM
|
|||||||
help
|
help
|
||||||
Say Y if your device uses Samsung Exynos7420 SoC
|
Say Y if your device uses Samsung Exynos7420 SoC
|
||||||
|
|
||||||
|
config EXYNOS_7570
|
||||||
|
bool "Support for Exynos 7570"
|
||||||
|
default n
|
||||||
|
select EXYNOS
|
||||||
|
help
|
||||||
|
Say Y if your device uses Samsung Exynos7570 SoC
|
||||||
|
|
||||||
config EXYNOS_7885
|
config EXYNOS_7885
|
||||||
bool "Support for Exynos 7885"
|
bool "Support for Exynos 7885"
|
||||||
default n
|
default n
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
lib-$(CONFIG_APPLE_T7000) += apple/t7000.o
|
lib-$(CONFIG_APPLE_T7000) += apple/t7000.o
|
||||||
|
lib-$(CONFIG_APPLE_T8010) += apple/t8010.o
|
||||||
lib-$(CONFIG_EXYNOS_7420) += exynos/exynos7420.o
|
lib-$(CONFIG_EXYNOS_7420) += exynos/exynos7420.o
|
||||||
|
lib-$(CONFIG_EXYNOS_7570) += exynos/exynos7570.o
|
||||||
lib-$(CONFIG_EXYNOS_7885) += exynos/exynos7885.o
|
lib-$(CONFIG_EXYNOS_7885) += exynos/exynos7885.o
|
||||||
lib-$(CONFIG_EXYNOS_8895) += exynos/exynos8895.o
|
lib-$(CONFIG_EXYNOS_8895) += exynos/exynos8895.o
|
||||||
lib-$(CONFIG_EXYNOS_9810) += exynos/exynos9810.o
|
lib-$(CONFIG_EXYNOS_9810) += exynos/exynos9810.o
|
||||||
lib-$(CONFIG_EXYNOS_990) += exynos/exynos990.o
|
lib-$(CONFIG_EXYNOS_990) += exynos/exynos990.o
|
||||||
lib-$(CONFIG_QC32_8916) += qualcomm/msm8916.o
|
lib-$(CONFIG_QC32_8916) += qualcomm/msm8916.o
|
||||||
|
10
soc/apple/t8010.c
Normal file
10
soc/apple/t8010.c
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <soc/t8010.h>
|
||||||
|
|
||||||
|
void soc_init(void) {
|
||||||
|
|
||||||
|
}
|
11
soc/exynos/exynos7570.c
Normal file
11
soc/exynos/exynos7570.c
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, predefine <predefine@yandex.ru>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <soc/exynos7570.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