Compare commits

...

6 Commits

Author SHA1 Message Date
Ivaylo Ivanov
7ed7b2b902 soc: apple: Add basic support for Apple T8010 (aka A10)
Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
2023-08-15 14:15:02 +03:00
Ivaylo Ivanov
f7906fff57
Merge pull request #8 from predefine/master
add Samsung Galaxy J4lte & Exynos 7570 support
2023-08-15 14:02:31 +03:00
Ivaylo Ivanov
c93df2826e
Merge branch 'master' into master 2023-08-15 14:01:46 +03:00
Ivaylo Ivanov
db0f9e4bfd
Merge pull request #7 from BotchedRPR/master
Add support for c1s (Samsung Galaxy Note20)
2023-08-15 14:01:00 +03:00
predefine
9d2a29835c add Samsung Galaxy J4lte & Exynos 7570 support 2023-08-12 01:35:57 +07:00
BotchedRPR
6f83a56d5e
Add support for c1s (Samsung Galaxy Note20) 2023-08-09 13:56:10 +02:00
12 changed files with 109 additions and 2 deletions

View File

@ -7,6 +7,13 @@ menu "Device Support"
help
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
bool "Support for Samsung Galaxy Note5"
default n
@ -55,6 +62,13 @@ menu "Device Support"
depends on QC32_8916
help
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
menu "Device Specific Addresses"
@ -62,6 +76,7 @@ menu "Device Specific Addresses"
config PAYLOAD_ENTRY
hex "Payload Entry Address"
default 0x830000000 if APPLE_N61AP
default 0x090000000 if SAMSUNG_C1S
default 0x050000000 if SAMSUNG_NOBLELTE
default 0x090000000 if SAMSUNG_JACKPOTLTE
default 0x090000000 if SAMSUNG_ZEROFLTE
@ -69,12 +84,14 @@ menu "Device Specific Addresses"
default 0x090000000 if SAMSUNG_STARLTE
default 0x090000000 if SAMSUNG_X1S
default 0x090000000 if SAMSUNG_J5LTE
default 0x040000000 if SAMSUNG_J4LTE
config FRAMEBUFFER_BASE
hex "Framebuffer Base Address (for SimpleFB)"
depends on SIMPLE_FB
default 0x83e900000 if APPLE_N61AP
default 0x0F1000000 if SAMSUNG_C1S
default 0x0e2a00000 if SAMSUNG_NOBLELTE
default 0x0ec000000 if SAMSUNG_JACKPOTLTE
default 0x0e2a00000 if SAMSUNG_ZEROFLTE
@ -82,11 +99,13 @@ menu "Device Specific Addresses"
default 0x0cc000000 if SAMSUNG_STARLTE
default 0x0F1000000 if SAMSUNG_X1S
default 0x08e000000 if SAMSUNG_J5LTE
default 0x067000000 if SAMSUNG_J4LTE
config FRAMEBUFFER_WIDTH
int "Framebuffer Width (for SimpleFB)"
depends on SIMPLE_FB
default 752 if APPLE_N61AP
default 1080 if SAMSUNG_C1S
default 1440 if SAMSUNG_NOBLELTE
default 1080 if SAMSUNG_JACKPOTLTE
default 1440 if SAMSUNG_ZEROFLTE
@ -94,11 +113,13 @@ menu "Device Specific Addresses"
default 1440 if SAMSUNG_STARLTE
default 1440 if SAMSUNG_X1S
default 720 if SAMSUNG_J5LTE
default 720 if SAMSUNG_J4LTE
config FRAMEBUFFER_HEIGHT
int "Framebuffer Height (for SimpleFB)"
depends on SIMPLE_FB
default 1334 if APPLE_N61AP
default 2400 if SAMSUNG_C1S
default 2560 if SAMSUNG_NOBLELTE
default 2220 if SAMSUNG_JACKPOTLTE
default 2560 if SAMSUNG_ZEROFLTE
@ -106,11 +127,13 @@ menu "Device Specific Addresses"
default 2960 if SAMSUNG_STARLTE
default 3200 if SAMSUNG_X1S
default 1280 if SAMSUNG_J5LTE
default 1280 if SAMSUNG_J4LTE
config FRAMEBUFFER_STRIDE
int "Framebuffer Stride (for SimpleFB)"
depends on SIMPLE_FB
default 4 if APPLE_N61AP
default 4 if SAMSUNG_C1S
default 4 if SAMSUNG_NOBLELTE
default 4 if SAMSUNG_JACKPOTLTE
default 4 if SAMSUNG_ZEROFLTE
@ -118,5 +141,6 @@ menu "Device Specific Addresses"
default 4 if SAMSUNG_STARLTE
default 4 if SAMSUNG_X1S
default 3 if SAMSUNG_J5LTE
default 4 if SAMSUNG_J4LTE
endmenu

View File

@ -1,4 +1,5 @@
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_JACKPOTLTE) += samsung/board-jackpotlte.o
lib-$(CONFIG_SAMSUNG_ZEROFLTE) += samsung/board-zeroflte.o
@ -6,3 +7,4 @@ lib-$(CONFIG_SAMSUNG_DREAMLTE) += samsung/board-dreamlte.o
lib-$(CONFIG_SAMSUNG_STARLTE) += samsung/board-starlte.o
lib-$(CONFIG_SAMSUNG_X1S) += samsung/board-x1s.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
View File

@ -0,0 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) BotchedRPR <thenxguy0@gmail.com>
*
*/
void board_init(void) {
}

View 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
View 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
View 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
View 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
View 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_

View File

@ -20,6 +20,13 @@ config QUALCOMM
help
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
bool "Support for Exynos 7420"
default n
@ -27,6 +34,13 @@ config QUALCOMM
help
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
bool "Support for Exynos 7885"
default n

View File

@ -1,5 +1,7 @@
lib-$(CONFIG_APPLE_T7000) += apple/t7000.o
lib-$(CONFIG_APPLE_T8010) += apple/t8010.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_8895) += exynos/exynos8895.o
lib-$(CONFIG_EXYNOS_9810) += exynos/exynos9810.o

10
soc/apple/t8010.c Normal file
View 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
View 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;
}