board: add support for Samsung Galaxy A30

This commit is contained in:
faveoled authored and Ивайло Иванов committed 2026-01-02 11:11:03 +02:00
1 parent 6cd8dfd0d0
commit cf4c76be24
5 files changed
+66

No files matched your search

+1
View File
@@ -38,6 +38,7 @@ environment in case of a forced and buggy bootloader.
### Samsung
- A105F
- A127F
- A305F
- A3XELTE
- C1S
- HEROLTE
+7
View File
@@ -67,6 +67,13 @@ menu "Device Support"
help
Say Y if you want to include support for Samsung Galaxy A12 Nacho
config SAMSUNG_A305F
bool "Support for Samsung Galaxy A30"
default n
depends on EXYNOS_7885
help
Say Y if you want to include support for Samsung Galaxy A30
config SAMSUNG_A3XELTE
bool "Support for Samsung Galaxy A3 2016"
default n
+1
View File
@@ -6,6 +6,7 @@ lib-$(CONFIG_NOTHING_TETRIS) += nothing/board-tetris.o
lib-$(CONFIG_QEMU_BOARD_VIRT) += qemu/board-virt.o
lib-$(CONFIG_SAMSUNG_A105F) += samsung/board-a105f.o
lib-$(CONFIG_SAMSUNG_A127F) += samsung/board-a127f.o
lib-$(CONFIG_SAMSUNG_A305F) += samsung/board-a305f.o
lib-$(CONFIG_SAMSUNG_A3XELTE) += samsung/board-a3xelte.o
lib-$(CONFIG_SAMSUNG_C1S) += samsung/board-c1s.o
lib-$(CONFIG_SAMSUNG_HEROLTE) += samsung/board-herolte.o
+46
View File
@@ -0,0 +1,46 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, David Wronek <w.david0@protonmail.com>
* Copyright (c) 2024, Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
* Copyright (c) 2026, faveoled <faveoled@yandex.com>
*/
#include <board.h>
#include <drivers/framework.h>
#include <lib/simplefb.h>
#include <soc/exynos7885.h>
// Early initialization
int a305f_init(void)
{
/* Allow framebuffer to be written to */
*(int*) (DECON_F_BASE + HW_SW_TRIG_CONTROL) = 0x1281;
return 0;
}
#ifdef CONFIG_SIMPLE_FB
static struct video_info a305f_fb = {
.format = FB_FORMAT_ARGB8888,
.width = 1080,
.height = 2340,
.stride = 4,
.address = (void *)0xec000000
};
#endif
int a305f_drv(void)
{
#ifdef CONFIG_SIMPLE_FB
REGISTER_DRIVER("simplefb", simplefb_probe, &a305f_fb);
#endif
return 0;
}
struct board_data board_ops = {
.name = "samsung-a305f",
.ops = {
.early_init = a305f_init,
.drivers_init = a305f_drv,
},
.quirks = 0
};
+11
View File
@@ -0,0 +1,11 @@
CONFIG_POSITION_INDEPENDENT=y
CONFIG_SIMPLE_FB=y
CONFIG_EXYNOS_7885=y
CONFIG_SAMSUNG_A305F=y
CONFIG_TEXT_BASE=0x87000000
CONFIG_PAYLOAD_ENTRY=0x90000000
CONFIG_RAMDISK_ENTRY=0x89000000
CONFIG_FRAMEBUFFER_BASE=0xec000000
CONFIG_FRAMEBUFFER_WIDTH=1080
CONFIG_FRAMEBUFFER_HEIGHT=2340
CONFIG_FRAMEBUFFER_STRIDE=4