From 2ebd7ac7a5fa909c52cecd14de7e9c17beb95376 Mon Sep 17 00:00:00 2001 From: Ivaylo Ivanov Date: Wed, 9 Jul 2025 12:04:02 +0300 Subject: [PATCH] board: move a336b device specific addresses to defconfig This is done with the idea of uncluttering the Kconfig --- board/Kconfig | 6 ------ configs/a336b_defconfig | 8 ++++++++ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 configs/a336b_defconfig diff --git a/board/Kconfig b/board/Kconfig index 24feac4..b6f716d 100644 --- a/board/Kconfig +++ b/board/Kconfig @@ -135,7 +135,6 @@ menu "Device Specific Addresses" config PAYLOAD_ENTRY hex "Payload Entry Address" - default 0x090000000 if SAMSUNG_A336B default 0x090000000 if SAMSUNG_C1S default 0x090000000 if SAMSUNG_G0S default 0x050000000 if SAMSUNG_NOBLELTE @@ -151,7 +150,6 @@ menu "Device Specific Addresses" config RAMDISK_ENTRY hex "Ramdisk Entry Address" - default 0x084000000 if SAMSUNG_A336B default 0x084000000 if SAMSUNG_C1S default 0x084000000 if SAMSUNG_G0S default 0x084000000 if SAMSUNG_X1S @@ -162,7 +160,6 @@ menu "Device Specific Addresses" config FRAMEBUFFER_BASE hex "Framebuffer Base Address (for SimpleFB)" depends on SIMPLE_FB - default 0x0fa200000 if SAMSUNG_A336B default 0x0f1000000 if SAMSUNG_C1S default 0x0f6200000 if SAMSUNG_G0S default 0x0e2a00000 if SAMSUNG_NOBLELTE @@ -179,7 +176,6 @@ menu "Device Specific Addresses" config FRAMEBUFFER_WIDTH int "Framebuffer Width (for SimpleFB)" depends on SIMPLE_FB - default 1080 if SAMSUNG_A336B default 1080 if SAMSUNG_C1S default 1080 if SAMSUNG_G0S default 1440 if SAMSUNG_NOBLELTE @@ -196,7 +192,6 @@ menu "Device Specific Addresses" config FRAMEBUFFER_HEIGHT int "Framebuffer Height (for SimpleFB)" depends on SIMPLE_FB - default 2400 if SAMSUNG_A336B default 2400 if SAMSUNG_C1S default 2340 if SAMSUNG_G0S default 2560 if SAMSUNG_NOBLELTE @@ -213,7 +208,6 @@ menu "Device Specific Addresses" config FRAMEBUFFER_STRIDE int "Framebuffer Stride (for SimpleFB)" depends on SIMPLE_FB - default 4 if SAMSUNG_A336B default 4 if SAMSUNG_C1S default 4 if SAMSUNG_G0S default 4 if SAMSUNG_NOBLELTE diff --git a/configs/a336b_defconfig b/configs/a336b_defconfig new file mode 100644 index 0000000..567e253 --- /dev/null +++ b/configs/a336b_defconfig @@ -0,0 +1,8 @@ +CONFIG_EXYNOS_1280=y +CONFIG_SAMSUNG_A336B=y +CONFIG_PAYLOAD_ENTRY=0x90000000 +CONFIG_RAMDISK_ENTRY=0x84000000 +CONFIG_FRAMEBUFFER_BASE=0xfa200000 +CONFIG_FRAMEBUFFER_WIDTH=1080 +CONFIG_FRAMEBUFFER_HEIGHT=2400 +CONFIG_FRAMEBUFFER_STRIDE=4