From 7dd7a2165d51642e59f8a5d9d7755b51a45d516e Mon Sep 17 00:00:00 2001 From: BotchedRPR Date: Sat, 12 Oct 2024 19:38:19 +0200 Subject: [PATCH 1/2] board: Commonize Exynos 990 platform The Exynos 990 platform shares both the same load addresses, ramdisk addresses and decon trigger offset. This commit commonizes the platform between x1s and c1s targets. Signed-off-by: Igor Belwon --- board/Kconfig | 9 +++------ board/samsung/board-c1s.c | 5 ++--- board/samsung/board-x1s.c | 4 +--- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/board/Kconfig b/board/Kconfig index 0a9d138..84ec716 100644 --- a/board/Kconfig +++ b/board/Kconfig @@ -86,13 +86,12 @@ menu "Device Specific Addresses" config PAYLOAD_ENTRY hex "Payload Entry Address" default 0x830000000 if APPLE_N61AP - default 0x090000000 if SAMSUNG_C1S + default 0x090000000 if EXYNOS_990 default 0x050000000 if SAMSUNG_NOBLELTE default 0x090000000 if SAMSUNG_JACKPOTLTE default 0x090000000 if SAMSUNG_ZEROFLTE default 0x090000000 if SAMSUNG_DREAMLTE default 0x090000000 if SAMSUNG_STARLTE - default 0x090000000 if SAMSUNG_X1S default 0x050000000 if SAMSUNG_J4LTE default 0x090000000 if SAMSUNG_J5LTE default 0x090000000 if SAMSUNG_GTA4XL @@ -105,13 +104,12 @@ menu "Device Specific Addresses" hex "Framebuffer Base Address (for SimpleFB)" depends on SIMPLE_FB default 0x83e900000 if APPLE_N61AP - default 0x0f1000000 if SAMSUNG_C1S + default 0x0f1000000 if EXYNOS_990 default 0x0e2a00000 if SAMSUNG_NOBLELTE default 0x0ec000000 if SAMSUNG_JACKPOTLTE default 0x0e2a00000 if SAMSUNG_ZEROFLTE default 0x0cc000000 if SAMSUNG_DREAMLTE default 0x0cc000000 if SAMSUNG_STARLTE - default 0x0f1000000 if SAMSUNG_X1S default 0x067000000 if SAMSUNG_J4LTE default 0x08e000000 if SAMSUNG_J5LTE default 0x0ca000000 if SAMSUNG_GTA4XL @@ -150,13 +148,12 @@ menu "Device Specific Addresses" int "Framebuffer Stride (for SimpleFB)" depends on SIMPLE_FB default 4 if APPLE_N61AP - default 4 if SAMSUNG_C1S + default 4 if EXYNOS_990 default 4 if SAMSUNG_NOBLELTE default 4 if SAMSUNG_JACKPOTLTE default 4 if SAMSUNG_ZEROFLTE default 4 if SAMSUNG_DREAMLTE default 4 if SAMSUNG_STARLTE - default 4 if SAMSUNG_X1S default 4 if SAMSUNG_J4LTE default 3 if SAMSUNG_J5LTE default 4 if SAMSUNG_GTA4XL diff --git a/board/samsung/board-c1s.c b/board/samsung/board-c1s.c index 7fbafb5..b9a1110 100755 --- a/board/samsung/board-c1s.c +++ b/board/samsung/board-c1s.c @@ -6,9 +6,7 @@ #include #include #include - -#define DECON_F_BASE 0x19050000 -#define HW_SW_TRIG_CONTROL 0x70 +#include void init_board_funcs(void *board) { @@ -29,6 +27,7 @@ int board_init(void) { /* Allow framebuffer to be written to */ *(int*) (DECON_F_BASE + HW_SW_TRIG_CONTROL) = 0x1281; + return 0; } diff --git a/board/samsung/board-x1s.c b/board/samsung/board-x1s.c index ecf09a8..ddd7c1d 100644 --- a/board/samsung/board-x1s.c +++ b/board/samsung/board-x1s.c @@ -6,9 +6,7 @@ #include #include #include - -#define DECON_F_BASE 0x19050000 -#define HW_SW_TRIG_CONTROL 0x70 +#include void init_board_funcs(void *board) { From b29cd0ea659fe8028ddd1cdb3d1d5dcf01323594 Mon Sep 17 00:00:00 2001 From: BotchedRPR Date: Sat, 12 Oct 2024 19:41:07 +0200 Subject: [PATCH 2/2] board: Kconfig: Add Exynos 990 ramdisk entry address This commit adds the entry address for the Exynos 990 platform. Signed-off-by: Igor Belwon --- board/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/board/Kconfig b/board/Kconfig index 84ec716..3ea37f0 100644 --- a/board/Kconfig +++ b/board/Kconfig @@ -98,6 +98,7 @@ menu "Device Specific Addresses" config RAMDISK_ENTRY hex "Ramdisk Entry Address" + default 0x082000000 if EXYNOS_990 default 0x082000000 if SAMSUNG_DREAMLTE config FRAMEBUFFER_BASE